Profile Picture

Ticks that end up outside of the NChartControl

Posted By Fabio Olcese 8 Years Ago
Author
Message
Nevron Support
Posted 8 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: Yesterday @ 1:38 AM
Posts: 3,054, Visits: 4,006
Hi Fabio,
You can workaround this in two ways:
1. Tell the Y axis to always place the labels inside its ruler range - this is achieved by the following code:
NLinearScaleConfigurator scaleY = (NLinearScaleConfigurator)chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator;    
scaleY.LabelStyle.KeepInsideRuler = true;
2. Specify some top margin:
chart.Margins = new NMarginsL(0, 7, 0, 0);

Hope this helps - let us know if you meet any problems or have any questions.




Best Regards,
Nevron Support Team



Fabio Olcese
Question Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 11, Visits: 40
I wanted to have the chart fill up the whole NChartControl so I have set its properties like this:

Chart.Bounds = Bounds.Stretch
Chart.DockMode = PanelDockMode.Fill

That works nicely but some of the ticks' label are not showed completely. I was wondering if there is a property or a way that adjusts the tick's label so that is ends up inside the NChartControl. 

As you can see in the picture below the tick label isn't showed completely.
https://www.nevron.com/forum/uploads/images/351a9a69-c843-4ea4-b502-f854.png

Tags


Similar Topics


Reading This Topic