Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1730
how to change line color
posted

Hi,

I am plotting multiple scatterLine series. By default igDataChart is rendering multiple series with different shades.

series.ScatterLine("Series", Model.Data)

.XAxis("xAxis").YAxis("yAxis")
.MarkerBrush("Blue")
.XMemberPath(data => data.XVal)
.YMemberPath(data => data.YVal);

I tried changing MarkerBrush, but that doesn't work.  

Is there any way I can specify the color to use for plotting series ??

Parents
No Data
Reply
  • 1775
    Verified Answer
    posted

    Hi, sanjaysutar

    You have to use the Brush() method of the chart MVC helper in order to change the color of the scatter line series.

    In general, our data visualization controls use Brush() for the fill color of series and Outline() for border color if applicable (for example, for area type series). Correspondingly, MarkerBrush() is used for marker fill color and MarkerOutline() for marker border color if applicable.

    In your example, if you enable markers with MarkerType() you will be able to display markers for each data point and control marker color with MarkerBrush().

    Cheers, Lazar

Children
No Data