Profile Picture

Get Y axis Min and Max

Posted By Daniel Csimszi 11 Years Ago
Author
Message
Daniel Csimszi
questionmark Posted 11 Years Ago
View Quick Profile
Forum Guru

Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 61, Visits: 35
Hi,

I try to get the min and the max value of my Y axis because I need to set the custom major ticks to be the "same". The lines should be on each other.

I used this method before: m_Chart.Axis(axisList[i].AxisId).PageRange.Begin/.End but it does not seems to be working, it gives be back just 0s. any other way to retrieve those data?

This is how I set the axis range: m_Chart.Axis(axis.AxisId).View = new NRangeAxisView(new NRange1DD(X,Y));

Daniel

Daniel Csimszi
Posted 11 Years Ago
View Quick Profile
Forum Guru

Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 61, Visits: 35
Some one helped me at the support team, here is there answer:

The pagerange is calculated when the control layouts (usually before repaint) – that’s why it’s initially zero – you can force control layout recalculation using:

nChartControl1.Document.Calculate();
nChartControl1.Document.RecalcLayout(nChartControl1.View.Context);



Similar Topics


Reading This Topic