I want to implement a bar chart that has clickable bars. To create a custom bar chart I created a class that extends BarChart. Class BarChart has a method that might be useful:
clickableAreasForPoints(java.util.List<java.lang.Float> points, java.util.List<java.lang.Double> values, float yAxisValue, int seriesIndex, int startIndex)
I would like an explanation for the parameters. The doc. is a bit confusing to me.
Parameters:
points - the array of points
values - the array of values of each point
yAxisValue - the minimum value of the y axis
seriesIndex - the index of the series to which the points belong
startIndex - the start index of the rendering points
Are "points" x values and "values" the y values? What is startIndex exactly?
EDIT: All my data is stored in an ArrayList where the indexes represent X values and the value at an specific index is the Y value.