Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Prevent data point label from overlapping line on chart

$
0
0
Hi Raga,

Thanks for writing and for the provided screenshot.

With a custom label renderer you will have to calculate this behavior by yourself. For example, you could make the following estimation:

1. If the neighbouring data points of the current data point have a bigger Y axis value of the current data point - draw the label below the data point.

2. If the neighbouring data points of the current data point have a smaller Y axis value of the current data point - draw the label above the data point.

3. If the left/right data point's value is bigger/smaller draw the current data point's label floating to the right/left of the data point itself.


I hope this is helpful.

Regards,
Deyan
Telerik by Progress
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

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>