Keeping Aspect Ration: Going wrong

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Raavi
Newbie
Newbie
Posts: 36
Joined: Tue Apr 01, 2014 12:00 am

Keeping Aspect Ration: Going wrong

Post by Raavi » Thu Apr 10, 2014 10:11 am

I have problem in keeping aspect ratio whenever the size of client changes.

The attached solution works partly and I do not know what mistake I made there...

Any help will be greatly appreciated.
Attachments
TestingTeeChartScaling.zip
(43.7 KiB) Downloaded 485 times

Raavi
Newbie
Newbie
Posts: 36
Joined: Tue Apr 01, 2014 12:00 am

Re: Keeping Aspect Ration: Going wrong

Post by Raavi » Thu Apr 10, 2014 2:19 pm

Any help will be appreciated...

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Keeping Aspect Ration: Going wrong

Post by Christopher » Thu Apr 10, 2014 3:11 pm

Hello Raavi,

As an alternative, you can use one of the Series.IsoHorizAxes or Series.IsoVertAxes, e.g.
isoaxis.PNG
isoaxis.PNG (16.47 KiB) Viewed 10790 times
if you use both at the same time you will get the effect that your code gets - this effect is unavoidable, I'm afraid, the isoaxes can only be for horizontal or vertical directions, not both.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Raavi
Newbie
Newbie
Posts: 36
Joined: Tue Apr 01, 2014 12:00 am

Re: Keeping Aspect Ration: Going wrong

Post by Raavi » Thu Apr 10, 2014 3:27 pm

Wonderful, that worked like a charm. :D :D :D :D

Raavi
Newbie
Newbie
Posts: 36
Joined: Tue Apr 01, 2014 12:00 am

Re: Keeping Aspect Ratio: Going wrong

Post by Raavi » Fri Apr 11, 2014 9:30 am

I have one more problem, that aspect ratio is not kept when I press maximize button.

Raavi
Newbie
Newbie
Posts: 36
Joined: Tue Apr 01, 2014 12:00 am

Re: Keeping Aspect Ration: Going wrong

Post by Raavi » Fri Apr 11, 2014 12:53 pm

May I know whether it is possible to set IsoHorizAxes or IsoVertAxes to a Chart than a Series?

Right now, I add series with 'IsoHorizAxes = true' to a Chart and set Chart.Dock to Dockfill.

This way does not set the IsoHorizAxes until I change the size of the Chart or Pan the Chart.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Keeping Aspect Ratio: Going wrong

Post by Christopher » Mon Apr 14, 2014 8:23 am

Raavi wrote:I have one more problem, that aspect ratio is not kept when I press maximize button.
I've been able to reproduce this here and have added it to our bug database with id=721. I've spent some time trying to find a workaround to this problem, but unfortunately without success.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Keeping Aspect Ration: Going wrong

Post by Christopher » Mon Apr 14, 2014 8:25 am

Raavi wrote:May I know whether it is possible to set IsoHorizAxes or IsoVertAxes to a Chart than a Series?
No, at the moment these properties only belong to the Series class, enabling some series to render "Iso" while others render normally.
Raavi wrote:Right now, I add series with 'IsoHorizAxes = true' to a Chart and set Chart.Dock to Dockfill.

This way does not set the IsoHorizAxes until I change the size of the Chart or Pan the Chart.
This problem is doubtless related to the id=721 bug I mentioned in my last post. Again, I'm afraid I haven't been able to find a workaround to this issue.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Raavi
Newbie
Newbie
Posts: 36
Joined: Tue Apr 01, 2014 12:00 am

Re: Keeping Aspect Ration: Going wrong

Post by Raavi » Mon Apr 14, 2014 8:40 am

Good Morning,

Thank you very much indeed.

Post Reply