You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was wondering if there was a way to programmatically "touch" points, so the point would show up as if one touched it. I would like to use a seek bar with the graph. I was trying a motion event to trigger the touch. Would that be the way to go?
Cheers.
The text was updated successfully, but these errors were encountered:
Hi, I've just pushed fix for this, now you should be able to select value(point) from code using method:
SelectedValuesv = newnewSelectedValue(lineIndex, pointIndex, SelectedValueType.NONE);
chart.selectValue(sv);
//deselect value by setting empty selected value, for example inside handler.postDelay() methodsv.clear();
chart.selectValue(sv)
Just be careful creating SelectedValue objects, first and second index have to point to value that exists in you dataset, otherwise ArrayIndexOutOfBounds will be thrown. So if you want to select the second point on the first line you should use:
newSelectedValue(0, 1, SelectedValueType.NONE);
Because lines and values are indexed starting from 0.
For other chart types it looks similar, for ColumnChart first index selects column, second index selects sub-column. For PieChart first index selects ArcValue, second index should have the same value as first index.
SelectValueType.NONE can be used for all chart type beside ComboLineColumnChart, for combo chart use SelectValueType.LINE if you want to select point, or use SelectValueType.COLUMN if you want to select sub-column value.
Hello, I was wondering if there was a way to programmatically "touch" points, so the point would show up as if one touched it. I would like to use a seek bar with the graph. I was trying a motion event to trigger the touch. Would that be the way to go?
Cheers.
The text was updated successfully, but these errors were encountered: