Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Label alignment on chart
Label alignment on chart
Post Reply
Label alignment on chart
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 10 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Gregg,
The problem in this case is that you're using an ordinal (categorical) scale which by default displays the labels between the tick marks. To fix this you have two options:
1. Switch to numeric scale:
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NLinearScaleConfigurator();
2. Display the ticks aligned to the labels on the ordinal scale:
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
((NOrdinalScaleConfigurator)chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator).DisplayDataPointsBetweenTicks = false;
Hope this helps - let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team
Reply
Like
0
Greg Hupp
Greg Hupp
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 0,
Visits: 4
I am trying to create a linear plot as shown below. However, I would like to align the X-axis labels(value labels) with the tick marks instead of between the marks (for clarity). Can someone provide some guidance for doing this? Probably not a hard problem, just can't find the correct settings.
Tags
aligment
label
line chart
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
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search