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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Does sfchart have dotted series?

Thread ID:

Created:

Updated:

Platform:

Replies:

144405 May 5,2019 11:54 AM UTC May 20,2019 10:15 AM UTC Xamarin.Forms 5
loading
Tags: SfChart
Reihaneh Khaksaran
Asked On May 5, 2019 11:54 AM UTC

Hi,

I'm looking for a dotted series, something like the image I have attached, the closest thing I could find was scatter series, but since the number of points in my chart are too much, the series become like a straight line. In the images I have attached, I have used scatter series for the Green line, but as you see it's just a straight line and not like the desired image (I've attached). Is there any way to have a series like that in sfchart? thank you so much in advance.

Best regards,
Reihaneh

Attachment: Images_b89d1a0f.zip

Bharathiraja K [Syncfusion]
Replied On May 6, 2019 12:52 PM UTC

Hi Khaksaran, 
 
As by your screenshot we noticed that you are added each data point with in the interval of 0.01, So we need to set interval as 0.02 for primary axis   
 
And AutoScrollingDelta property of ChartAxis class is used to specify the range of data is always visible in chart.  
 
Code Snippet [XAML] 
  <chart:SfChart.PrimaryAxis> 
                    <chart:NumericalAxis Interval="0.02" AutoScrollingDelta="0.2" AutoScrollingMode="Start" > 
                    </chart:NumericalAxis> 
</chart:SfChart.PrimaryAxis> 
 
 
 
And we have suggested to use FastScatterSeries for better performance with huge amount of data.  
 
[XAML] 
. . . 
<chart:FastScatterSeries ItemsSource="{Binding DataSource}" XBindingPath="XValue"  YBindingPath="YValue"/> 
. . . 
 
We have prepared the sample based on your requirement, that can be downloaded from below link. 
 
 
Output: 
 
 
Regards, 
Bharathi. 


Reihaneh Khaksaran
Replied On May 9, 2019 12:28 PM UTC

Hi,

Thanks for the reply, I set the interval to 0.02, still no luck

Bharathiraja K [Syncfusion]
Replied On May 10, 2019 06:53 AM UTC

Hi Khaksaran,  
 
Since we are not aware of your samples and application scenario, we are unable to provide exact solution for your requirement. So, could you please share your sample code snippet with dummy data which bound to chart. It will be more helpful to understand your requirement and provide solution. 
 
Regards, 
Bharathi. 


Reihaneh Khaksaran
Replied On May 19, 2019 11:35 AM UTC

Hi,

Can you please check out the sample I have attached? as you see, if you click on "draw chart" button, you'll see a straight line not a dotted line! unless you zoom in, but this is not the behavior I'm looking for, I want the user to see a dotted line not a straight one, can you please help me to achieve this? 

Thank you so much in advance

Attachment: ScatterSeriesExample_2e3e3213.zip

Bharathiraja K [Syncfusion]
Replied On May 20, 2019 10:15 AM UTC

Hi Khaksaran, 
 
We would like to let you know that AutoScrollingDelta property used to show specified range of data always visible in the chart.  
 
In your case, you have added every data point at the interval of 0.001, so the AutoScrollingDelta = “0.2” is very larger range for your series. We can achieve your requirement by setting the value as 0.003 or below.  
 
Code Snippet [XAML]: 
   <chart:SfChart.PrimaryAxis> 
                    <chart:NumericalAxis ShowTrackballInfo="True" x:Name="primaryAxis" Interval="0.001" AutoScrollingDelta="0.002" AutoScrollingMode="Start" Minimum="0" Maximum="0.3"> 
                        <chart:NumericalAxis.Title> 
                            <chart:ChartAxisTitle Text="t/s" TextColor="Black" FontSize="10"/> 
                        </chart:NumericalAxis.Title> 
                    </chart:NumericalAxis> 
                </chart:SfChart.PrimaryAxis> 
 
Please refer the help document for more details regarding AutoScrollingDelta. 
 
Output: 
 
 
Regards, 
Bharathi. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon