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.
Unfortunately, activation email could not send to your email. Please try again.

DataMarkers on edge when zooming in

Thread ID:

Created:

Updated:

Platform:

Replies:

125033 Jul 15,2016 12:22 PM Jul 19,2016 09:14 AM Xamarin.Forms 3
loading
Tags: SfChart
Amplicade
Asked On July 15, 2016 12:22 PM

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

Yuvaraj Palanisamy [Syncfusion]
Replied On July 18, 2016 02:12 PM

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


Amplicade
Replied On July 18, 2016 05:05 PM

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

Yuvaraj Palanisamy [Syncfusion]
Replied On July 19, 2016 09:14 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;