How to dynamically position labels to avoid overlapping?

Good morning, I have an SfListView with a number of SfChart controls like in the attached image.

As you can see, labels are overlapping markers. Unfortunately, I cannot enlarge the chart size due to the app requirements, so I need to find a way to re-position labels below or above the marker based on its position.

I have tried to set a value for the OffsetY property of the marker, but it is not helpful since it makes an absolute calculation, not a relative calculation (below or above) based on the marker position.

Is there a way to achieve this, please?

Thanks in advance for any help.


Attachment: SfChart_7c2b15ce.zip

1 Reply

DV Divya Venkatesan Syncfusion Team February 16, 2018 03:44 AM UTC

Hi Alessandro,

Thanks for using Syncfusion products.

We have prepared a sample to place the DataMarker label at top and bottom of the marker alternatively using Converter. Please download the sample from the below link.

Sample: https://www.syncfusion.com/downloads/support/forum/135925/ze/ChartSample-109155676

Please let us know, if you need any further assistance.

Regards,
Divya Venkatesan


Loader.
Up arrow icon