All chart types support custom text for labels. For those charts that support coordinate axes, custom labels are set with XLabels, YLabels and Y2Labels. The LabelType property of the XAxisSettings, YAxisSettings or Y2AxisSettings object should be set to CustomText. FontName sets the name of the font for all chart labels at once. Line charts support DateTime values as data. In this case, the DataFormat should be set to DateTime and the format of the labels is set with AxisSettings.DateTimeFormat. Use CustomDateTime format to set the format manually. The auto scale can be regulated with AxisSettings.StartDateTime, AxisSettings.EndDateTime and TimeSpan properties. Bar charts can have labels at the top of the bar and/or inside bars. See the InnerLabelType and TopLabelType properties for more details. Custom inner and top labels are set with the InnerLabels and TopLabels properties. Clusters and groups of bars can have one label at each cluster / group. These labels are set with ClusterLabels. In pie charts, the pie labels can be drawn inside or outside pie segments. The InnerLabelType and OuterLabelType properties specify the type of labels to be drawn. The different label types are members of the LabelType enumeration. The length of pointers to the labels drawn outside pie pieces is set with PointerLength. The InnerLabelPosition determines the location of inner labels. In radar charts, the type of labels drawn at the inner axis is specified with InnerAxisLabelType. The type of labels drawn at the outer axis is set with OuterAxisLabelType. Custom labels are specified with InnerAxisLabels and OuterAxisLabels. Use OuterLabels to set labels drawn in the middle of outer axis segments. Labels can be drawn with a border around the text. The Border enumeration contains the types of border that can be used. The following properties set the label's border according to the chart type:
The chart labels can be retrieved directly from a database. Check the DataSource and DataMember properties for more information. See the data bound properties in the LineChart Members, PieChart Members, BarChart Members and RadarChart.Members lists. See Also |