问题
I have created a graph with a series of data. Now I'm trying to add a slider / line marker to the chart like the one below.
I created the graph/charts using the MPAndroidChart library provided here https://github.com/PhilJay/MPAndroidChart.
The graph seems to be working fine and good but i need a line slider like below so that when i touch on the graph the line slides and provides the values of the line intersecting the graph. Could anyone help me figure out this problem or do i have to use a different library to achieve this.
回答1:
This feature just became available: https://github.com/PhilJay/MPAndroidChart/commits/master
However, it is not available as a release yet, so you cannot get it via gradle or maven, only via cloning the repository.
It will be in the next release v2.1.0 which will be available within the next week.
来源:https://stackoverflow.com/questions/29743092/creating-a-line-slider-on-a-graph-in-android