| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Style examples > Angled labels - label placement Angled labels – label placementFor simple XY plots you can have the X-axis labels drawn at an angle to the axis, with the angle set as you choose. The default is 34 degrees which looks reasonable for most charts and text. For 3D charts either X labels or Y labels may be angled. In this case the labels are always drawn midlined along the projection of the corresponding tickmark or gridline. sp.SetXLabels(new string[]{"Fat","Cat","Sat on mat"}); sp.SetYLabels(new string[]{"Here","we","go","Again"}); sp.XAxisStyle = XAxisStyles.AngledLabels; sp.YAxisStyle = YAxisStyles.AngledLabels; You cannot set the angle explicitly here – SharpPlot will choose the alignment for you depending on the perspective and viewpoint used. See also ...Perspective Property | SetViewpoint Method |