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");
How can I set the colr of series Dynamically without using the brush: "xxxx" attribute. I want to achieve this in my .js file
Hi Alex,
The series and the markers can be colored separately. The series has the Brush property and the marker uses the MarkerBrush property.
http://help.infragistics.com/doc/WPF/2013.2/CLR4.0/?page=InfragisticsWPF4.Controls.Charts.XamDataChart.v13.2~Infragistics.Controls.Charts.MarkerSeries~MarkerBrush.html
Hi Rob,
Setting the Brush of the series is working well. But this will make markers appear in the same color. What I want to have is a line color which different from the marker. Can you give me a hint please?
Regards,
Alex
Hi thomcat,
You're very welcome. Let me know if you have any further questions on this.
Doh! thanks that was it. Was looking too far afield.