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
570
setting the color for line series
posted

I just want to change the color for the lineseries (up to 8 can show up on my chart) to map to the color in a listbox used to turn the series on or off so that it can act as a legend. I used the SeriesAddingWithCommand2 as the way to add in my series. This works fine but is useless to send to anything that can be captured for print as there is no legend.

In my SelectedItemsToSeriesConverter which is sort of code behind for setting up these series I tried the below and this only changes the color of the point not the line stroke. THe line is still coming out in that random pattern of color that changes for up to 5 series. How do I get to the stroke color for the line to set it? Seems like it should be more exposed obvious settable.

 

LineSeries series = new LineSeries();                    

 series.ValueMemberPath ="TotCount";

series.Thickness = 4;

series.MarkerBrush = (SolidColorBrush)new BrushConverter().ConvertFromString("#76EB7E");