Hello!
I use a Chart of many different line series and I want to take advantage of multiple Y Axis in my chart but it's kind of confusing at some point because you could not tell which axes is related to which line series. It would be very helpful if I could somehow bind the color of the line series with the color of the Y axis label or line label, but it seams that I cannot find a way.
Right now I am trying to create a style for the AxisTitle that uses the same SolidColorBrush that the line series has (guess what - this is null when I'm trying to get it).
Maybe I'm not taking the right approach. Help would be welcomed at this point.
Thank you!
Roxana
I use a Chart of many different line series and I want to take advantage of multiple Y Axis in my chart but it's kind of confusing at some point because you could not tell which axes is related to which line series. It would be very helpful if I could somehow bind the color of the line series with the color of the Y axis label or line label, but it seams that I cannot find a way.
Right now I am trying to create a style for the AxisTitle that uses the same SolidColorBrush that the line series has (guess what - this is null when I'm trying to get it).
Style axisTitleStyleItem = new Style( typeof( AxisTitle ) ); axisTitleStyleItem.Setters.Add( new Setter { Property = Control.ForegroundProperty, Value = (SolidColorBrush)secondaryLineSeries.Appearance.Stroke } ); |
Maybe I'm not taking the right approach. Help would be welcomed at this point.
Thank you!
Roxana