Calculate Aspect Ratio Chart

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

Calculate Aspect Ratio Chart

Post by Felix » Tue Nov 19, 2013 1:54 pm

Hi Pasi,

I would like to calculate in my chart "IntensityGridSeries" aspect ratio. Since my display area is rectangular, I have to make sure that the chart object is never shown distorted. I will need the height and width of the area shown in pixels.

About what property I can get the values​​?

Or do you know a better method?

The chart is filled with a two-dimensional array and the distance between the values is 0.5 mm. This must be shown undistorted even with variable scaling, by the user.
Chart normal
Chart normal
Chart.PNG (179.2 KiB) Viewed 5635 times
Chart distorted
Chart distorted
Chart distorted.jpg (175.3 KiB) Viewed 5635 times

User avatar
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: Calculate Aspect Ratio Chart

Post by ArctionPasi » Tue Nov 19, 2013 5:06 pm

Hi Felix,

set ViewXY.ZoomPanOptions.AspectRatioOptions.AspectRatio = Manual
ViewXY.ZoomPanOptions.AspectRatioOptions.ManualAspectRatioWH = 1.

Ensure you are running with the latest version 5.3.4. :ugeek:
LightningChart Support Team, PT