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

ChartSymbolShape.Circle for chart series

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.


1 Reply

SK Sanjith Kesavan Syncfusion Team 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.


Loader.
Up arrow icon