Profile Picture

How to obtain the height of Y axis?

Posted By peck 110 11 Years Ago
Author
Message
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi,

In general you can access properties that are calculated at layout time either after a redraw or after you force the control to layout:

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



Best Regards,
Nevron Support Team



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
Hi,

I got a reply for one of my questions where I have some relevant information.
If you use this two lines:

NPointF p1 = nChartControl1.Charts[0].PlotArea.LeftBottom;
NPointF p2 = nChartControl1.Charts[0].PlotArea.RightTop;

it should give you the 2 opposite corners of the graph, from that you should be able to calculate the height of the Y axes. There are some restrictions what I trying to sort out just now (the graph need to be redraw before you can take those points). Please find a link of my question/answer it might help.
http://forum.nevron.com/shwmessage.aspx?ForumID=1&MessageID=7936

Regards
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
I would be interested in that too, as I am trying to place an object under the X axis but I could not figure out how to calculate the ration.

Regards
Daniel

peck 110
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 5, Visits: 1

Hello Nevron Expert,

I want to use the height of Y axis, but i found no such property of the NAxis object,can anyong give some some help?





Similar Topics


Reading This Topic