This example demonstrates how custom axis labels are created and customized in the Chart control.
To add a custom axis label on the chart, create a CustomAxisLabel object and add it to the CustomAxisLabelCollection returned by the Axis2D.CustomLabels property.
To show the custom label on the X-axis or Y-axis, specify an axis value that corresponds to the label position on an axis (using the CustomAxisLabel.Value property) and to its content (via the CustomAxisLabel.Content property).
You can customize custom labels' appearance using the Foreground, FontFamily, FontWeight, and FontStyle properties for the AxisLabel object.
For more information about custom axis labels, see the Axis Custom Label topic.
To add a custom axis label on the chart, create a CustomAxisLabel object and add it to the CustomAxisLabelCollection returned by the Axis2D.CustomLabels property.
To show the custom label on the X-axis or Y-axis, specify an axis value that corresponds to the label position on an axis (using the CustomAxisLabel.Value property) and to its content (via the CustomAxisLabel.Content property).
You can customize custom labels' appearance using the Foreground, FontFamily, FontWeight, and FontStyle properties for the AxisLabel object.
For more information about custom axis labels, see the Axis Custom Label topic.