Profile Picture

Axis size

Posted By Massimiliano Francario 8 Years Ago
Author
Message
Massimiliano Francario
Problem Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 4, Visits: 36
Hi,
I've a chart using automatic axis labels and at the same time also custom labels. Custom labels text changes at runtime with a realtime datafeed providing values to display.
The chart works fine when the custom labels text is shorter or equally long than the automatic labels, but when the custom labels have longer text, the axis is resized to fit the longer text. As explained, the values changes in realtime, and thus I continually have an axis that gets resized.
I would like to know if there's a way to set a minimum size for an axis (in my case Primary Y width).
I attach here two images explaining the problem.

Thank you
https://www.nevron.com/forum/uploads/images/5c523bab-94d3-4521-921a-5c52.png

Nevron Support
Posted 7 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 Massimiliano,

You can specify min axis dock zone size - for example the following code sets the minimum left axis dock zone size to 50 points:

NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
chart.MinDockZoneMargins = new NMarginsL(50, 0, 0, 0);

That way if you provide a sufficiently large number the axis size will not change when the data changes. Hope this helps - let us know if you meet any problems or have any questions.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic