Data marker color

Is there any way to set same color to data marker shape (ellipse, rectangle,...) as series (line, column, etc.)? Currently it's always blue for all series.

3 Replies

PS Parthiban Sundaram Syncfusion Team November 14, 2017 01:03 PM UTC

Hi Xetel, 
 
Thanks for using Syncfusion products. 
 
You can achieve this requirement with the help of MarkerColor property in chart data marker. Please refer the following code snippet for more details. 
 
Code snippet: 
 
 
<chart:LineSeries.DataMarker> 
    <chart:ChartDataMarker  ShowMarker="True" MarkerColor="Red" /> 
</chart:LineSeries.DataMarker> 
 
 
 
Please let us know, if you need further assistance on this. 
 
Regards, 
Parthiban S. 



XE Xetal November 14, 2017 01:35 PM UTC

Yeah, I know. But if I have multiple series in same chart I would like to set different color for every data marker shape and that color should be same as series. The color for the series comes automatically from color palette and that's why I'm not able to specify the color explicitly.

On data marker label I already get the same color.


Attachment: 20171114_153242_a02bba6c.zip


PS Parthiban Sundaram Syncfusion Team November 16, 2017 03:43 AM UTC

Hi Xetel, 
 
We would like to inform you that series color can be applied based on color palate (Metro) to chart series. Please refer the following color code to set the marker color. 
 
Color Codes: 
 
 
1. #FFFEBE17 
2. #FF4F4838 
3. #FFC15146 
4. #FF90A74F 
5. #FFD0B388 
6. #FF4BA992 
7. #FF076668 
8. #FF5E508A 
9. #FF8E4C8B 
10.#FF2D9AB5 
 
 
Note: The above color codes can be iterating to every 10 series respectively.   
  
We have also prepared the sample for your reference. Please download from following location. 
 
 
Please let us know, if you need further assistance on this. 
 
Regards, 
Parthiban S. 


Loader.
Up arrow icon