The DataMarker on the BarSeries once over ~90% get cutoff on the side or top when using the Outer DataMarkerPosition. 100% moves inside the bar which is also not desired. I've attempted to change the margin or size of the chart, but that does not seem to affect it. This is also shown in the SyncFusion DataMarker documentation. How can this be resolved?
Thanks,
David
Hi David Bauer,
Query: DataMarker on the BarSeries once over ~90% get cutoff on the side or top when using the Outer DataMarkerPosition.
We would like to let you know that when you set the DataMarkerPoistion as Top and the data marker LabelStyle LabelPosition as Outer it will place data label at the top and if not have enough space, then it will crop.
Solution 1:
We can show the top label by using the axis PlotOffsetEnd feature to add an additional offset at end on the chart secondary axis as per in the below code example.
<chart:SfChart.SecondaryAxis> <chart:NumericalAxis PlotOffsetEnd="50" ShowMajorGridLines="False"/> </chart:SfChart.SecondaryAxis> |
Solution 2:
We can also add an additional range for axis to show data marker label by setting the axis RangePadding as AppendInterval to add additional range on top as per in the below code.
<chart:SfChart.SecondaryAxis > <chart:NumericalAxis RangePadding="AppendInterval"/> </chart:SfChart.SecondaryAxis> |
Please refer below link for more details
https://help.syncfusion.com/xamarin/charts/axis#offset-the-rendering
https://help.syncfusion.com/xamarin/charts/axis#plotoffsetend
https://help.syncfusion.com/xamarin/charts/axis#apply-padding-to-the-range
https://help.syncfusion.com/xamarin/charts/datamarker#datamarker-position
https://help.syncfusion.com/xamarin/charts/datamarker#label-position
Please find the example sample in the attachment below and let us know if you need any further assistance.
Regards,
Devakumar D
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Thank you the PlotOffSetEnd in addition to a RangePadding of Additional was able to resolve this issue.
Thanks,
David
Hi David Bauer,
We are glad to know that the provided solution works.
Please let us know if you need any further assistance.
Regards,
Devakumar D
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.