This is a migrated thread and some comments may be shown as answers.

show big data point smartly

1 Answer 99 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
jzhou
Top achievements
Rank 1
jzhou asked on 27 Aug 2015, 06:00 AM

Hello, 

I create a datatemplate for PointTemplate of LineSeries, each point will be displayed as a small image, it works and show the image.

The problem is if there are a lot of points in a small area, all images are overlapped, see image1.

Is it possible to hide the images when the points are too close, and show the image when zoom + and the points have a enough space to show (see image2)

Thanks

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 31 Aug 2015, 07:27 AM
Hello,

There is no such a built-in feature that will allow you to do that.

You can use custom logic to hide some of the point visuals. You can use a combination of the SizeChanged, ZoomChanged, PanOffsetChanged and DataBindingComplete events to run a custom method. In the method you can iterate all data points and check their LayoutSlots to see if they overlap. You can them set Opacity 0 to some of the data point visuals (GetDataPointVisual method of the series).

Regards,
Petar Marchev
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
Tags
ChartView
Asked by
jzhou
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or