Axis size


Author
Message
Massimiliano Francario
Massimiliano Francario
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search