Page 1 of 1

Line/FastLine to XAML Bug

Posted: Mon Jun 18, 2012 9:46 am
by 15662639
Hi Steema people!
We have the same bug, that was described in topic http://www.teechart.net/support/viewtop ... =4&t=12550, with Line and FastLine series in WPF TeeChart.
The following code reproduces the problem:

Code: Select all

MyTChart.Aspect.View3D = false;
MyTChart.Width = 300;
MyTChart.Height = 200;
Steema.TeeChart.WPF.Styles.Line line = new Steema.TeeChart.WPF.Styles.Line();
line.Add(0);
line.Add(1000);
line.Add(0);
MyTChart.Series.Add(line);
MyTChart.Axes.Left.Maximum = 200;
MyTChart.Axes.Left.AutomaticMaximum = false;
and then

Code: Select all

Microsoft.Win32.SaveFileDialog saveDialog = new Microsoft.Win32.SaveFileDialog();
if (saveDialog.ShowDialog() == true) 
    MyTChart.Export.Image.XAML.Save(saveDialog.FileName);
As you can see, the source TChart and the XAML TChart version are different. XAML is wrong (Line is out of bounds).
TChartLine.jpg
source TChart
TChartLine.jpg (27.24 KiB) Viewed 4165 times
TChartExportLine.jpg
Exported to XAML
TChartExportLine.jpg (30.52 KiB) Viewed 4156 times

Re: Line/FastLine to XAML Bug

Posted: Mon Jun 18, 2012 3:23 pm
by 10050769
Hello neurosoft,

Thanks for your information. I have added it as bug with number [TW16016225]. We will try to fix it for next maintenance releases of TeeChartWPF.

Thanks,