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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ChartSymbolShape.Circle for chart series

Thread ID:

Created:

Updated:

Platform:

Replies:

123361 Mar 10,2016 11:48 AM UTC Mar 11,2016 12:29 PM UTC WinForms 1
loading
Tags: Chart
Matan Livne
Asked On March 10, 2016 11:48 AM UTC

Hello,

I try to draw a scatter graph were the data points are marked as crosses.

The following works perfectly:


ChartSeries extrema = new ChartSeries("Extrema");

extrema.Type = ChartSeriesType.Scatter;


but when I add the following line:


extrema.Style.Symbol.Shape = ChartSymbolShape.Cross;


the points become invisible.

If I use Circle or Diamond instead of Cross, everything works as expected.

How should I tackle this issue?

Thanks.


Sanjith Kesavan [Syncfusion]
Replied On March 11, 2016 12:29 PM UTC

Hi Matan,

Thanks for contacting Syncfusion support.


The default color for the shapes is white and border will be available for the shapes like circle, diamond. If we don’t set any color for the symbol, then we can view the symbol with white color and default border. But for the cross symbol we don’t have border support. So, we have to set color for the symbol. Please find the below code example.

[CS]

extrema.Style.Symbol.Color = Color.Red;




In the above code, we have set symbol color as “Red”. Now, the cross symbol will be visible in the red color. Please find the below screenshot.
.

  

We have prepared the sample and it can be downloaded from the below link,
Sample link: http://www.syncfusion.com/downloads/support/forum/123361/ze/Cross-1522334327



Regards,
Sanjith.


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.

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

;