Page 1 of 1

Keeping Aspect Ration: Going wrong

Posted: Thu Apr 10, 2014 10:11 am
by 15668832
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.

Re: Keeping Aspect Ration: Going wrong

Posted: Thu Apr 10, 2014 2:19 pm
by 15668832
Any help will be appreciated...

Re: Keeping Aspect Ration: Going wrong

Posted: Thu Apr 10, 2014 3:11 pm
by Christopher
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 10751 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.

Re: Keeping Aspect Ration: Going wrong

Posted: Thu Apr 10, 2014 3:27 pm
by 15668832
Wonderful, that worked like a charm. :D :D :D :D

Re: Keeping Aspect Ratio: Going wrong

Posted: Fri Apr 11, 2014 9:30 am
by 15668832
I have one more problem, that aspect ratio is not kept when I press maximize button.

Re: Keeping Aspect Ration: Going wrong

Posted: Fri Apr 11, 2014 12:53 pm
by 15668832
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.

Re: Keeping Aspect Ratio: Going wrong

Posted: Mon Apr 14, 2014 8:23 am
by Christopher
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.

Re: Keeping Aspect Ration: Going wrong

Posted: Mon Apr 14, 2014 8:25 am
by Christopher
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.

Re: Keeping Aspect Ration: Going wrong

Posted: Mon Apr 14, 2014 8:40 am
by 15668832
Good Morning,

Thank you very much indeed.