Page 1 of 1

SVG image from invertet stairs series

Posted: Tue Dec 14, 2010 3:53 pm
by 15656738
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

Re: SVG image from invertet stairs series

Posted: Wed Dec 15, 2010 4:38 pm
by 10050769
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,

Re: SVG image from invertet stairs series

Posted: Thu Dec 16, 2010 10:47 am
by 15656738
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

Re: SVG image from invertet stairs series

Posted: Thu Dec 16, 2010 12:06 pm
by 10050769
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

Re: SVG image from invertet stairs series

Posted: Fri Jun 10, 2011 4:11 pm
by 15656738
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

Re: SVG image from invertet stairs series

Posted: Tue Jun 14, 2011 4:36 pm
by 10050769
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,

Re: SVG image from invertet stairs series

Posted: Wed Jun 15, 2011 10:09 am
by 15656738
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

Re: SVG image from invertet stairs series

Posted: Wed Jun 15, 2011 3:54 pm
by 10050769
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,