tchart export - straight lines issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MVUser6
Newbie
Newbie
Posts: 30
Joined: Wed Jul 11, 2012 12:00 am

tchart export - straight lines issue

Post by MVUser6 » Wed May 01, 2013 3:43 pm

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: tchart export - straight lines issue

Post by Sandra » Fri May 03, 2013 8:47 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MVUser6
Newbie
Newbie
Posts: 30
Joined: Wed Jul 11, 2012 12:00 am

Re: tchart export - straight lines issue

Post by MVUser6 » Sun May 05, 2013 6:34 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: tchart export - straight lines issue

Post by Sandra » Mon May 06, 2013 8:20 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply