Profile Picture

Rotate Chart Label

Posted By Stilianos Roussis 6 Years Ago
Author
Message
Stilianos Roussis
Question Posted 6 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
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


Nevron Support
Posted 6 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: 3 hours ago
Posts: 3,054, Visits: 4,009

Hi Stilianos,

We would recommend you to use docking for both the chart and the label (we guess that you want to achieve a label on the left side of the chart that does not overlap the chart contents and does not get cut off). The following code shows how to achieve this:

  NChartControl1.Panels.Clear()
  Dim label As New NLabel("This is docked label to the right")
  label.DockMode = PanelDockMode.Left
  label.TextStyle.Orientation = -90
  label.Location = New NPointL(70, 10)
  label.Margins = New NMarginsL(10)
  NChartControl1.Panels.Add(label)

  Dim chart As New NCartesianChart()
  chart.Margins = New NMarginsL(10)
  chart.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)
  chart.BoundsMode = BoundsMode.Stretch
  chart.DockMode = PanelDockMode.Fill
  NChartControl1.Panels.Add(chart)

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



Best Regards,
Nevron Support Team



Stilianos Roussis
Posted 6 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 3, Visits: 48
Hello,

Thank you for your reply. Yes, it is much better now. I still have a problem however with a second label I want to place at the other end of the chart header (bottom of the chart).  The second label is not shown properly and for whatever reason is not on the same line as the first label (see chart below). Can you please provide some assistance?

Thank you,
Stilianos

NChartControl3.Panels.Clear()  
chart3 = New NCartesianChart()  
chart3.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)  
chart3.BoundsMode = BoundsMode.Stretch  
chart3.DockMode = PanelDockMode.Left
chart3.Margins = New NMarginsL(5)

X2Cursor = CStr(xCursor.Value.ToString("0"))  
TextBox2.Text = X2Cursor 
 
NChartControl3.Labels.Clear()  
Dim label1 As NLabel = New NLabel("label1")  
label1.DockMode = PanelDockMode.Right  
label1.TextStyle.Orientation = -90  
label1.FitAlignment = ContentAlignment.TopRight  
label1.Location = New NPointL(70, 10)  
label1.Margins = New NMarginsL(0)  
NChartControl3.Panels.Add(label1)   

Dim label2 As NLabel = New NLabel()  
label2.Text = "Cursor:" & X2Cursor  
label2.DockMode = PanelDockMode.Right  
label2.TextStyle.Orientation = -90  
label2.FitAlignment = ContentAlignment.BottomRight  
'label2.Location = New NPointL(70, 160)  
label2.Margins = New NMarginsL(0)  
NChartControl3.Panels.Add(label2)

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAAFKCAYAAAB1pT9DAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABqWSURBVHhe7Z1PaFRX9MdPfpu6+EHsqgqFSZguRgjornblBIS+4EIXAe3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Q+MZqBsWWf5uwyP+EJJH+H5C5Tc7cLAdDtQdHfMzwvQTOn+G13dzC92yit1fqB/+DMtPKF4nU4SM5YiV5ZA3VgfqYVlFu+PaWYSMvu826DMcvtt+tSM64e41X6Wifp9e+HdbIkQoV47gpcJpuXnOT0pgXg4015nD0Adb5EKA8nXKrGMwPOrcOt85qdkyVsfPhgxEmDdcT/nsR536GTIQYd5wPeWzH7XyEjIQYW6wejW/q0L22MNwgWGSK1hYZkyhf4QZL+aQuoFhklvM5byOSgPiykFwq34B9oOeEMQCekKQKCBCEDsQIYgdiBDEDkQIYkdax+ZLAKLFso7HOJRGvgIgJjAcg9iBCEHsQIQgdiBCEDNE/w9fk3QXTk8juwAAAABJRU5ErkJggg==




Nevron Support
Posted 6 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: 3 hours ago
Posts: 3,054, Visits: 4,009
Hi Stilianos,
We would recommend you to use Fill docking for the chart and a relative position for the second label so that it is attached to the right side of the first label docked to the right. In order for this to work you need to add the chart after you add the labels. The following code shows how to achieve this:

  NChartControl1.Panels.Clear()

  Dim label1 As NLabel = New NLabel("Label 1 Text")
  label1.DockMode = PanelDockMode.Right
  label1.TextStyle.Orientation = -90
  label1.FitAlignment = ContentAlignment.TopRight
  label1.Margins = New NMarginsL(0)
  NChartControl1.Panels.Add(label1)

  Dim label2 As NLabel = New NLabel()
  label2.Text = "Label 2 Text"
  label2.Location = New NPointL(New NLength(100, NRelativeUnit.ParentPercentage), New NLength(100, NRelativeUnit.ParentPercentage))
  label2.TextStyle.Orientation = -90
  'label2.FitAlignment = ContentAlignment.BottomRight
  label2.ContentAlignment = ContentAlignment.TopLeft
  label2.FitMode = TitleFitMode.Clip
  label2.Margins = New NMarginsL(0)
  label1.ChildPanels.Add(label2)

  Dim chart3 As New NCartesianChart()
  chart3.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)

  Dim barSeries As New NBarSeries
  barSeries.Values.Add(10)
  barSeries.Values.Add(20)
  chart3.Series.Add(barSeries)
  chart3.BoundsMode = BoundsMode.Stretch
  chart3.DockMode = PanelDockMode.Fill
  chart3.Margins = New NMarginsL(5)
  NChartControl1.Panels.Add(chart3)

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


Best Regards,
Nevron Support Team



Stilianos Roussis
Posted 6 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 3, Visits: 48
Hello,

Thank you for your help. I will try your suggestions. In the meantime, another, hopefully simpler problem, surfaced. When I use the code below the axis ticks and the axis labels do not align. I was able to change the number or the length between ticks but I was not successful in aligning them with the labels.

NChartControl3.Panels.Clear()  
chart3 = New NCartesianChart()  
chart3.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)   
chart3.BoundsMode = BoundsMode.Stretch

lineSeries = New NLineSeries()   
lineSeries.DataLabelStyle.Visible = False
chart3.Margins = New NMarginsL(5)

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMcAAAFZCAYAAAAsHjtBAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABFzSURBVHhe7d1PaFxVG8fxZ14Q3JmFCwvCJBQkhYB2Z1dmoIsJXWgxoK6qJGCFQitMUFfqSmsGrFAwiwTtyi4C1kXJLAIzrnTXCgPNJiSzqgsXcSeIzHufO+dO7iR5JvPnTnrPvd8PDJ1MYt93mvxyz3mec84tHBwctAXAMf9zfwI4gnAABsIBGAgHYC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+l3paj/+xn8X3R6h77OYATjBqOHFergP4IB2AgHICBcAAGwgEYCAdgIByAgXAABsIBGAgHYCAcgIFwAAbCARgIB2AgHICBcAAGwgEYCAdgIByAgXAABsIBGAgHYCAcgIFwAAbCARgIB2AgHICBcAAGwgEYCAdgIByAgXAABsIBGAgHYCAcgIFwAAbCARgIB2AgHICBcAAGwgEYCAdgIByAgXAABsIBGAoHBwdt97yvqakp9wzwT/Bz7p4NbuBwAHnDsAowEA7AQDgAA+EADIQDMBAOwEA4AAPhAAyEAzAQDsBAOIATifwfLu+iUSnDE2gAAAAASUVORK5CYII=

When I remove the: "chart3.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)" rotation, the ticks and labels show up aligned properly.

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAAFUCAYAAAB2qePbAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABRZSURBVHhe7d0/bBtlGMfxJxESbO1WtjjKQBRFKgMSbMSogyMGlkxMoHgoqBIgOaoYOiAxUMVjBR0SJAbUCiLRDlU8RLIZkKi6AMlQBqvxRreysYX3Ob+XXFzb8Z9733vP9/1IVu0DKnK5n9/3ed+795178eLFiQAFN2//BAqNIAAGQQAMggAYBAEwCAJgEATAGDqPcPnyZfsOyB9zbdt3F7swCCcnzLchf+bm5sYKAl0jwCAIgEEQAIMgAAZBAAyCABgEAYFoydbcXDTsOfZrfVc69m+ZFEFA/q0uyYJ9OymCgECsyfbJSTSBe/HrWHYq9j8zKsuL9t3kCAJyobO7nugOlaTa0KM1aZpg7G9O2x4QBATrfM1Q6l755tpvJlqGbdOOpIMgIBitrbMLf26uLHV7vNZMdIu207r0zyMICERLHsVXfmVHjk+/9U/E0bV/DkFAIEyxfLwjUQ3cqErptGVYl91px0ZHQBAQjoVN2T9tCeKRoYZUS2ddpq1W9G+mjiAgUAuyuX/WPTq246X1sptQEATkwsLm/mkoTk6aUjPH4lCsp9B3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ZEb/SrfhU25q1d9/dHU3/79hBmEhSVZnfDb/6y5PHsNOp58addocXGx7z8L4dX7M3zzzTfy5ZdfnjsW+uvDDz+Mfo6hVpfM9/8ww7pMkwu0RViUZRP+o+RP/OypNCobcu2CbZaTky2z9JqFn+3x48fRz9Ff93dufukDRwaf6QiKI4EGYUGubVSkUb1jm0FTRJXrUtm4dsG3BfKr+zs3v3S53m9IqLMrt6MC4maidkhPsDWC7r7frNWlHDWrpogyRZKPXfeRne7vXLNQeqlbNVeqms5yTZpTTsANMmeKxG6724cWj9qkIXt6MRTmd2G+/dejCz9BR4vGCIGer3GGlwlCThQqCCkYNwg5Gz4tLkLgFkFARuyDOVPeVdy9Q5kHc4BUEARkq16O+vOTvso6pJqCQgXB54M+xdO9Q7Tfac3DeS9MEHw/6FM0ra34rtHzBp93+2BOKq+ZfTAnbf4f9CmObtFbPqp07w49Jz/nvSBB8P+gT2G0HkWz/if7N2XVHjqTn/NejCBk8KBPYaxtD57xzdF5L1Sx/DJ3D/pgmPDOe8GDQCuRjfDOezGCMMWDPphCjs57QVqEyR/0wTTyc94LEgQe9MlGfs57oW7D1hnO0yn5Me9vx0V0PqEs0jyR3tOaxXnXWWyeR0DhjRuEgo8aAV0EATAIAmAQBMAgCIBBEACDIAAGQQAMggAYBAEwCAJgEATAIAiAQRAAgyAABkEADIIAGAQBMAgCYBAEwCAIgEEQAIMgAAZBAAyCABgEATAIAmAQBMAgCIBBEACDIAAGQQAMggAYBAEwCAJgEATAIAiAQRAAgyAABkEADIIAGAQBMAgCYBAEwCAIgDH34sWLE/v+JZcvX7bvgPwx17Z9d7GhQQCKgq4RYBAEwCAIgEEQAIMgAAZBAAyCAIjI/2NTAMeNsq7OAAAAAElFTkSuQmCC

Is there a way to ensure that the axis ticks and labels align when the chart is rotated?

Thank you for your help!
Stilianos



Nevron Support
Posted 6 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: 3 hours ago
Posts: 3,054, Visits: 4,009
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





Similar Topics


Reading This Topic