Page 1 of 1
tchart export - straight lines issue
Posted: Wed May 01, 2013 3:43 pm
by 15662946
Hi,
I'm using latest version of TeeChart.WPF.
I have added Steema.TeeChart.WPF.Styles.Line series to the teechart which appears fine at first.
However when using export (Export.Image.XAML) the straight lines are not visible while everything else is.
Please advise.
Re: tchart export - straight lines issue
Posted: Fri May 03, 2013 8:47 am
by 10050769
Hello MVUser6,
I can not reproduce your problem using last version of TeeChartFor.Net and next code:
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.WPF.Styles.Line line = new Steema.TeeChart.WPF.Styles.Line(tChart1.Chart);
line.FillSampleValues();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
tChart1.Export.Image.XAML.Save(@"C:\Tchart1.xaml");
}
Could you please modify my code because I can reproduce your problem here?
Thanks,
Re: tchart export - straight lines issue
Posted: Sun May 05, 2013 6:34 am
by 15662946
Hi,
Please note this is for teeChart WPF. Also the sample lines do no contain the problematic scenario.
When the line is parallel to x or y axis it doesn't show on export, try this to reproduce both scenarios:
Code: Select all
tChart1.Aspect.View3D = false;
Steema.TeeChart.WPF.Styles.Line line = new Steema.TeeChart.WPF.Styles.Line(tChart1.Chart);
line.Add(12, 7);
line.Add(12, 20);
line.Add(1, 3);
line.Add(10, 3);
line.Add(8, 16);
line.Add(15, 16);
line.Add(5, 3);
line.Add(15, 2);
Thanks.
Re: tchart export - straight lines issue
Posted: Mon May 06, 2013 8:20 am
by 10050769
Hello MVUser6,
Thanks for your code. Seems the problem when you have some values X or Y equal. I have added your request in bug list report with number [TF02016563]. We will try to fix it to upcoming maintenance release of TeeChartFor.Net.
Thanks,