Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to create and customize custom axis labels

$
0
0
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.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>