Nevron Forum
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Ticks that end up outside of the NChartControl
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Ticks that end up outside of the NChartControl
Ticks that end up outside of the NChartControl
Post Reply
Ticks that end up outside of the NChartControl
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Fabio Olcese
Fabio Olcese
posted 9 Years Ago
ANSWER
Topic Details
Group: Forum Members
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.
Tags
Ticks
WPF
Reply
Like
0
Nevron Support
Nevron Support
posted 9 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
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
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search