Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
NDateTimeScaleConfigurator centering labels
NDateTimeScaleConfigurator centering labels
Post Reply
NDateTimeScaleConfigurator centering labels
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Craig Swearingen
Craig Swearingen
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 99,
Visits: 654
Is what my axes looks like with this code:
NDateTimeScaleConfigurator dateTimeScale = new NDateTimeScaleConfigurator();
dateTimeScale.LabelStyle.ContentAlignment = ContentAlignment.TopLeft;
dateTimeScale.LabelStyle.Offset = new NLength(-7);
dateTimeScale.LabelValueFormatter = new NDateTimeValueFormatter(" yyyy");
dateTimeScale.EnableUnitSensitiveFormatting = false;
dateTimeScale.AutoDateTimeUnits = new NDateTimeUnit[] { NDateTimeUnit.Year };
dateTimeScale.OuterMajorTickStyle.Length = new NLength(10);
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = dateTimeScale;
I would prefer to have my year label centered between the two major ticks instead of justified near the tick. I've been trying several things but I can't seem to find a way to do this. Is there another approach where I can center this label?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
NDateTimeScaleConfigurator centering labels
Craig Swearingen
-
10 Years Ago
Hi Craig, You can use a range timeline scale with hidden second /...
Nevron Support
-
10 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search