Page 1 of 1

HatchStyle of Legend in WPF TChart

Posted: Fri Feb 25, 2011 3:12 pm
by 15656109
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:

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);
But image in the Legend (BackwardDiagonal) does not correspond to brush of Bar (DiagonalCross). You can see it on the attached picture:
TChartHatchStyle.jpg
TChartHatchStyle.jpg (48.24 KiB) Viewed 6601 times
The question is how can I set correct Legend HatchStyle?
Thanks.

Re: HatchStyle of Legend in WPF TChart

Posted: Mon Feb 28, 2011 12:25 pm
by 10050769
Hello neurosoft,

I could reproduce your problem here and I have added your requests in bug list report with number [TW16015422]. We will try to fix it to next maintenance releases of TeeChart.Net.

Thanks,

Re: HatchStyle of Legend in WPF TChart

Posted: Wed Apr 20, 2011 10:40 am
by 15656109
Hi steema!
We have downloaded latest release of TeeChart (TeeChart.NET version 2011Build 4.1.2011.04193). Bug [TW16015422] in Release.txt is marked as Fixed. But I reproduce this bug by using code posted above.

Re: HatchStyle of Legend in WPF TChart

Posted: Wed Apr 20, 2011 2:23 pm
by 10050769
Hello neurosft,

I can reproduce your problem and we are working with it. We have inform you asap.

Thanks,

Re: HatchStyle of Legend in WPF TChart

Posted: Thu Apr 21, 2011 8:10 am
by 10050769
Hello neurosoft,

For some reason the bug doesn't fixed, but now it is fixed. And it would be available to next maintenance release. On the other hand; can you tell us if you have source code of TeeChart.Net? So if you have source code and you need fix of this bug, yet we can give you the fix.

Thanks,