We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DataMarkers on edge when zooming in

Hi,

when zooming, the data markers for the first and the last data point of the graph are on the edge and only visible to a half, see screenshots. How to get the data markers "inside" of the graph area?

Thanks!
Tac

Attachment: Archive_ae57d36a.zip

3 Replies

YP Yuvaraj Palanisamy Syncfusion Team July 18, 2016 06:12 PM UTC

Hi Customer, 
 
Currently we do not have this support in SfChart and we have logged this as a feature. We will implement it in our Volume 3, 2016 release which is scheduled to be rolled out by the end of September.
As of now, you can set the PlotOffset property of ChartAxis for primary axis and secondary axis to view all the DataMarker labels while zooming.
 
Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.
 
Thanks,
Yuvaraj



AM Amplicade July 18, 2016 09:05 PM UTC

I believe this is a bug rather than a feature, as the combination of the having data markers and being able to zoom doesn't work together.

However, would you mind providing an example for how to implement the suggested PlotOffset?

Thank you,
Tac


YP Yuvaraj Palanisamy Syncfusion Team July 19, 2016 01:14 PM UTC

Hi Tac, 
  
You can refer the following code snippet to set the PlotOffset for axis. Also we have prepared a sample for your reference. Please find the sample from the below link.
 
   
Code :                                    
 
C#:
chart.PrimaryAxis.PlotOffset = 20;
chart.SecondaryAxis.PlotOffset = 20;
 
XAML:
<chart:SfChart.PrimaryAxis>
   <chart:DateTimeAxis PlotOffset="20"/>          
</chart:SfChart.PrimaryAxis>
 
<chart:SfChart.SecondaryAxis>
        <chart:NumericalAxisPlotOffset="20"/>     
</chart:SfChart.SecondaryAxis>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Regarding “I believe this is a bug rather than a feature
 
Currently this is our expected behavior and hence we consider this as an enhancement in our current behavior.
 
Please let us know if you have any queries.
 
Thanks,
Yuvaraj


Loader.
Live Chat Icon For mobile
Up arrow icon