Hi Team,
I have a scenario in which series should be added for the radar chart with markers.
I’m able to add the series.
I want to set the color for the series.
Could you please help me with some sample jave code to do the same.
Thanks,
Sanjeev
Hi,
See the sample code segment for your reference:
e.g
Sample code:
…
//Set the first series and its markers attributes.
Series series = chart.getNSeries().get(0);
//Set the series line color
series.getBorder().setColor(Color.getBlue());
series.getBorder().setStyle(LineType.SOLID);
//Specify marker attributes
series.getMarker().setMarkerStyle(ChartMarkerType.CIRCLE);
series.getMarker().setMarkerSize(10);
series.getMarker().getArea().setForegroundColor(Color.getGreen());
series.getMarker().getBorder().setColor(Color.getRed());
…
Hope, this helps a bit.
Thank you.