MindFusion.Charting Programmer's Guide

AxisSettings Class

Remarks See Also
 





A class for specifying the settings of chart axes.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public class AxisSettings : ICloneable

Visual Basic  Copy Code

Public Class AxisSettings
    Implements ICloneable

JavaScript  Copy Code

// class
AxisSettings.prototype = {}

 Remarks

Members of the AxisSettings class specify the appearance of the axes in charts that use the Cartesian coordinate system. LabelType sets the type of labels drawn at the axis. The alignment of the labels is specified with LabelAlignment. The space between the labels and the axis is set with LabelOffset.

Labels can be drawn with text before and after the number - use LabelPrefix and LabelSuffix to set it.

The format of axis labels depends on DataFormat. When it is set to Numbers, the format is set by NumberFormat; when set to DateTime, the format is set by DateTimeFormat. Use StartDateTime and EndDateTime to specify the begin and end date. The interval between them is set through TimeSpan.

If the axis shows numbers, you can manually set the scale. The start and end numbers are specified with MinValue and MaxValue. The intervals between them are set with AxisDelta.

The zero label is not drawn by default. Set DrawZero to true if you want to show it.

Labels at horizontal axes can be drawn with a rotation angle. This is specified with the RotationAngle property.

Large data numbers can be cancelled with a custom-set coefficient. The DivisionCoef and DivisionLabel properties specify how numbers are cancelled and the label that will show the unit of measure.

Use AxisLength to specify the length of the axis. Title for the axis data is set with TitleLabel.  It is drawn with the TitleLabelFont. The alignment of the title label is specified with TitleLabelAlignment. Its position is set with TitleLabelPosition. Use TitleLabelOffset to specify the distance between the axis label and the other axis labels or the axis (if no other labels are drawn).

The orientation of the axis labels is set with LabelOrientation

 Inheritance Hierarchy

System.Object
    MindFusion.Charting.AxisSettings

 See Also