HatchStyle of Legend in WPF TChart
Posted: Fri Feb 25, 2011 3:12 pm
Hi Steema people!
I want to add Bars with hatch styled brush to my WPF TChart. And I want to show Legend of Bar. I use following simple code:
But image in the Legend (BackwardDiagonal) does not correspond to brush of Bar (DiagonalCross). You can see it on the attached picture:
The question is how can I set correct Legend HatchStyle?
Thanks.
I want to add Bars with hatch styled brush to my WPF TChart. And I want to show Legend of Bar. I use following simple code:
Code: Select all
MyTChart.Aspect.View3D = false;
Bar bar = new Bar();
bar.Add(10);
bar.Brush.Style = Steema.TeeChart.WPF.Drawing.HatchStyle.DiagonalCross;
bar.Brush.Color = Colors.LightGray;
bar.Brush.ForegroundColor = Colors.Blue;
MyTChart.Series.Add(bar);
Thanks.