android - How to implement multiple highlight line sliders in line chart -


i want implement single , multiple highlight line sliders in line chart. able single highlight line slider mpandroidchart (https://github.com/philjay/mpandroidchart) library. need 2 highlight line sliders allow user select range of values(min , max values) on chart. please refer below image more information:

desired line chart multiple highlight line sliders

can achieve above requirement library or need draw custom view? or guidance appreciated.

in terms of shinobicharts, while crosshair customised act 1 of sliders, in order have 2 sliders you'd want make use of annotations feature.

you can create annotations custom views , add them @ x, y point (in data terms). can convert between data values , pixel values via axes. therefore possible make annotation follow user's finger drag across screen.

the trickiest part placing circle on lineseries @ right y-value. mentioned above can convert pixel values (e.g. user gesture) data values x value api leave quite bit of work in order correct y value.

this kind of feature requested quite , looking @ providing in future now, while possible, isn't available out-of-the-box.

disclaimer: work shinobicontrols


Comments