SVG image from invertet stairs series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
FT_GIAG_Old
Newbie
Newbie
Posts: 4
Joined: Tue Aug 17, 2010 12:00 am

SVG image from invertet stairs series

Post by FT_GIAG_Old » Tue Dec 14, 2010 3:53 pm

Hello

I’ve got a problem generating an SVG image from a chart. It works fine, as long as I haven’t got a series with line mode "stairs" and "inverted". As you can see in the attached SVG file, only the vertical line of the stairs and the curve itself are painted. If I try it with normal "stairs" it's painted correctly.

Thanks for your help

Regards
Florian Treier
Attachments
InvertedStairs.zip
(3.57 KiB) Downloaded 289 times

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

Re: SVG image from invertet stairs series

Post by Sandra » Wed Dec 15, 2010 4:38 pm

Hello FT_GIAG,

Ok. I could reproduce your problem. I have added your request in bug list report with number [TF02015323]. We will try to fix it, for next maintenance releases of TeeChart.Net.

On the other hand, I suggest you for now, you use a FastLine series as a workaround, so it exports image correctly in format SVG.


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

FT_GIAG_Old
Newbie
Newbie
Posts: 4
Joined: Tue Aug 17, 2010 12:00 am

Re: SVG image from invertet stairs series

Post by FT_GIAG_Old » Thu Dec 16, 2010 10:47 am

Hello Sandra

Thanks for your quick reply. It would be great if it were fixed in the next version. Btw, any idea when that's going to be?

About your workaround: what are the differences between Line and FastLine, apart from the obvious that FastLine should be faster?

Regards
Florian Treier

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

Re: SVG image from invertet stairs series

Post by Sandra » Thu Dec 16, 2010 12:06 pm

Hello FT_GIAG,
Thanks for your quick reply. It would be great if it were fixed in the next version. Btw, any idea when that's going to be?
I can't still provide an estimate date. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
what are the differences between Line and FastLine, apart from the obvious that FastLine should be faster?
FastLine is similar to a Line but stripped down to the very basics for performance purposes. There it doesn't have some Line series properties or objects like Pointers, for example. You also can take a look in the Help for see all both properties and methods.

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

FT_GIAG_Old
Newbie
Newbie
Posts: 4
Joined: Tue Aug 17, 2010 12:00 am

Re: SVG image from invertet stairs series

Post by FT_GIAG_Old » Fri Jun 10, 2011 4:11 pm

Hello Sandra

I finally got some time to try the new TeeChart Version (4.1.2011.04192)... Unfortunately, this bug is now "reversed": It works perfectly for "stairs" and "inverted", but if I just set "stairs", I get an image similar to the one attached to my first post...

Could you look into that?
Thanks

Florian Treier

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

Re: SVG image from invertet stairs series

Post by Sandra » Tue Jun 14, 2011 4:36 pm

Hello Florian Treier,

I couldn't reproduce your problem using last version of TeeChart.Net and next code:

Code: Select all

 public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        private void InitializeChart()
        {
            Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            tChart1.Aspect.View3D = false;
            line.FillSampleValues();
            line.Stairs = true;
            line.InvertedStairs = false;// false;
            tChart1.Draw();
            tChart1.Export.ShowExportDialog();
        }
Please, can you tell us if using previous code you can reproduce your problem? If you don't reproduce your problem with my code, please modify it or send us a simple project, so we can reproduce exactly your problem.

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

FT_GIAG_Old
Newbie
Newbie
Posts: 4
Joined: Tue Aug 17, 2010 12:00 am

Re: SVG image from invertet stairs series

Post by FT_GIAG_Old » Wed Jun 15, 2011 10:09 am

Hello Sandra

I could reproduce it with your code...
Still, I edited the code a bit, so I could compare inverted and normal stairs in one diagram

Code: Select all

private void InitializeChart()
{
	Line line1 = new Line(tChart1.Chart);
	tChart1.Aspect.View3D = false;
	line1.FillSampleValues();
	line1.Stairs = true;
	line1.InvertedStairs = true;
	line1.Title = "Inverted Stairs";
	line1.Color = Color.Red;
	Line line2 = new Line(tChart1.Chart);
	line2.FillSampleValues();
	line2.Stairs = true;
	line2.InvertedStairs = false;
	line2.Color = Color.Green;
	line2.Title = "Normal Stairs";
	tChart1.Draw();
	tChart1.Export.ShowExportDialog();
}
And with these changes I got the attached image.

What I didn't mention in my last post is that we use .NET 3.5, and we solely compile a 32Bit version. The file version of TeeChart.dll is 4.1.2011.4192.

Hope this helps

Regards
Florian Treier
Attachments
Result.zip
(3.2 KiB) Downloaded 267 times

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

Re: SVG image from invertet stairs series

Post by Sandra » Wed Jun 15, 2011 3:54 pm

Hello FT_GAIG,

Thank you, you are right. I have added back it in bug list report with number[TF02015615]to be try to fix for next maintenance releases of TeeChart.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