Group: Forum Members
Last Active: 11 Years Ago
Posts: 9,
Visits: 1
|
There is any property to set my both X,Y axes the same size? Some kind of EqualAxes = true?
I would like to have the same size and same scale!
Thanks
|
Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054,
Visits: 4,009
|
Hi Andre, The example located at: All Examples\Panels\Chart\Aspect shows how to make the axes equal in size. In order to have the same scale you can assign a custom view object to each axis: chart.Axis( StandardAxis.PrimaryY).View = new NRangeAxisView(new NRange1DD(0, 100), true, true); NStandardScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NStandardScaleConfigurator;if (scale != null) { scale.RoundToTickMax = false; scale.RoundToTickMin = false; }
The above code specifies that the axis range will be [0, 100] and disables tick rounding. Hope this helps - let us know if you meet any problems.
Best Regards, Nevron Support Team
|