In the {DataChartName}™ control, you can change the location, rotation angle, margin, horizontal/vertical alignment, visibility, and appearance of the axis label using the following properties of an Axis objects.
Property Name | Property Type | Description |
---|---|---|
String |
Determines data mapping (category axis) and formating (all axis) of labels |
|
pick:[sl,wpf,win-universal=" LabelSettings.Angle"] pick:[xamarin,win-forms,android=" LabelAngle"] |
double |
Determines angle rotation of axis labels |
pick:[sl,wpf,win-universal=" LabelSettings.Extent"] pick:[xamarin,win-forms,android=" LabelExtent"] |
double |
Determines empty space that extents between axis labels and the axis main line |
pick:[sl,wpf,win-universal=" LabelSettings.FontFamily"] pick:[xamarin,win-forms,android=" LabelFontFamily"] |
|
Determines font of axis labels |
pick:[sl,wpf,win-universal=" LabelSettings.HorizontalAlignment"] pick:[xamarin,win-forms,android=" LabelHorizontalAlignment"] |
HorizontalAlignment |
Determines horizontal alignment of labels on CategoryYAxis and NumericYAxis only |
pick:[sl,wpf,win-universal=" LabelSettings.VerticalAlignment"] pick:[xamarin,win-forms,android=" LabelVerticalAlignment"] |
VerticalAlignment |
Determines vertical alignment of labels on CategoryXAxis and NumericXAxis only |
pick:[sl,wpf,win-universal=" LabelSettings.Location"] pick:[xamarin,win-forms,android=" LabelLocation"] |
Determines location of axis labels in relation to axis main line and chart plot area |
|
pick:[sl,wpf,win-universal=" LabelSettings.Visibility"] pick:[xamarin,win-forms,android=" LabelsVisible"] |
|
Determines whether or not axis labels are visible |
pick:[sl,wpf,win-universal=" LabelSettings.Foreground"] pick:[xamarin,win-forms,android=" LabelTextColor"] |
Brush |
Determines text color of axis labels |
The following sample code shows how to change the location, orientation angle, and appearance of the axis label on CategoryXAxis and NumericYAxis in the {DataChartName} control.
The following image shows how the {DataChartName} control might look with custom label settings for CategoryXAxis and NumericYAxis.