SfChart: how to control the color of individual ChartMarker?

I need to display a SfChart. I have 2 or 3 series of data. Each series marker is visually identifiable by its shape.

I need to display the color of each marker based on each data point Status property (for example, green for Status.Passed, red for Status.Failed).

By default, it seems each ChartSeries gets its own color. And the markers are displayed with the ChartSeries color. 

I tried controlling the color with the ChartSeries.PointColorMapping, but it has no effect.

I also tried setting to Fill on each ChartSeries, but this needs to be a constant for the whole ChartSeries.

I also tried setting the Fill property on the ChartMarker, but had no success.


Is there any way to achieve my requirement?



1 Reply

SM Srihari Muthukaruppan Syncfusion Team February 9, 2021 11:14 AM UTC

Hi Patrice, 
 
We have analyzed your query. From that we would like to let you know that the pointColorMapping property is working fine for marker too. Unfortunately we are unable to reproduce the reported scenario in our latest version 18.4.41. We have also attached the sample used for testing for your reference. Please find the sample and screeshot below. 
 
 
Screenshot: 
 
 
If you still face this issue. kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner. 

1.           Try to reproduce the reported scenario in the provided sample.   

2.           Share the details if you have done any other customizations in your sample. 


Regards,  
Srihari M 


Loader.
Up arrow icon