Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Rotate Chart Label
Rotate Chart Label
Post Reply
Rotate Chart Label
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Stilianos Roussis
Stilianos Roussis
posted 7 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 3,
Visits: 48
Hello,
I am new to the Nervon Chart.
I am using the code below to rotate a chart label clockwise but the label is only partly shown.
label1.TextStyle.Orientation = -90
label1.Location = New NPointL(70, 10)
NChartControl3.Panels.Add(label1)
chart3 = New NCartesianChart()
chart3.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)
chart3.BoundsMode = BoundsMode.Stretch
Can you please provide some assistance as to what I am doing wrong?
Thank you
Tags
horizontalleft
label
orientation
rotate
Reply
Like
0
Reply
Nevron Support
Nevron Support
posted 7 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Stilianos,
This is because the X axis used an ordinal scale (which is suited for categorical data). If you want the labels to display below the ticks you need to set the DisplayDataPointsBetweenTicks property to false:
NOrdinalScaleConfigurator ordinalScale = chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NOrdinalScaleConfigurator;
ordinalScale.DisplayDataPointsBetweenTicks = false;
You can also specify a custom step if the automatically computed one is not good enough:
ordinalScale.MajorTickMode = MajorTickMode.CustomStep;
ordinalScale.CustomStep = 1;
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
Threaded View
Threaded View
Rotate Chart Label
Stilianos Roussis
-
7 Years Ago
Hi Stilianos, We would recommend you to use docking for both the...
Nevron Support
-
7 Years Ago
Hello, Thank you foryour reply. Yes, it is much better now. I still...
Stilianos Roussis
-
7 Years Ago
HiStilianos, We would recommend you to use Fill docking for the chart...
Nevron Support
-
7 Years Ago
Hello, Thank you for your help. I will try your suggestions. In the...
Stilianos Roussis
-
7 Years Ago
Hi Stilianos, This is because the X axis used an ordinal scale (which...
Nevron Support
-
7 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