Hi Reghardt,
Thanks for writing.
I can't see any images on the second post as well. Anyway...
To clear the chart area you have two options. You can either clear the chart series collection by calling
chart.getSeries().clear(); or you can iterate over the series collection and call series.setData(null); on each series.
Currently the trackball does not work well with the scatter series because on the scatter chart the points rarely have the exact same value. Even if they differ by 0.00001 the trackball will think the points are different and will not show them at all. When you move your finger around, the finger position rarely matches a point due to this exact matching. Even if it looks like a point is in the path of the trackball it won't be shown because of a tiny difference in values.
We have plans to extend ChartTrackBallBehavior to search for points in a range of values instead of exact matching but it is not implemented yet.
Finally, to show custom labels and to customize the tooltip in general, you need to create a tooltip content adapter. Please take a look at this sample implementation and continue from there:
And you use it like so:
tooltipBehavior.setContentAdapter(new CustomContentAdapter(this));
Write again if you need further assistance.
Regards,
Victor
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items