MindFusion.Charting Programmer's Guide

AxisLabelType Enumeration

See Also
 





Specifies the type of labels drawn at chart axis.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public enum AxisLabelType

Visual Basic  Copy Code

Public Enumeration AxisLabelType

JavaScript  Copy Code

// enum
AxisLabelType = {}

 Members

  Member name Description

AutoScale

The labels represent the numerical auto scale for this axis.

ChartData

The labels are the data values for this axis.

CustomText

Labels for this axis are set by the user.

Empty

No labels are drawn at this axis.

 Remarks

This enumeration is used by charts that have axes - bar, line, area, scatter, bubble, radar, polar and so on.

When the label type is AxisLabelType.AutoScale, the scale is calculated automatically so that all chart values fit in. It is possible to set manually the divisions of the axis. In charts that use the Cartesian coordinate system, this is done through the AxisSettings.MinValue, AxisSettings.MaxValue and AxisSettings.AxisDelta properties. In radar / polar charts, the MinValue, MaxValue and Span properties are used.

If DateTime values are used as data, the properties for setting the auto scale are StartDateTime, EndDateTime and TimeSpan.

When too big numbers are drawn, they can be cancelled. The division coefficient and label are set with the DivisionCoef and DivisionLabel properties.

If the label type is CustomText, the labels are set with XLabels, YLabels and Y2Labels. For radar / polar charts custom labels are set with InnerAxisLabels and OuterAxisLabels.

If the axis is without any labels, its length must be specified with AxisSettings.AxisLength. Otherwise, it might appear too short. The inner axis length in radar charts is the radius. It is set with RadiusLength.

The label type is set with AxisSettings.LabelType. In radar charts, the InnerAxisLabelType and OuterAxisLabelType properties are used.

 See Also