This topic is for all charts that use the Cartesian coordinate system - bar, line, area, scatter, bubble and so on.
The axes are by default two - the X and Y. Y2 is drawn only if Y2Data is not empty. All axes can have both positive and negative parts.
The axis always contains the 0 number though it might not be drawn if DrawZero is set to false. The zero label uses the same appearance settings as the other chart labels. In axes that display DateTime values, the zero label is the StartDateTime property, if set, or the automatically calculated start value.
You can customize the axes by using the XAxisSettings, YAxisSettings and Y2AxisSettings properties.
The AxisSettings object can be edited at design time:
Axis Labels as CustomText
If the LabelType is set to CustomText, the labels are entered in the XLabels, YLabels or Y2Labels properties fields using the LabelsCollection Editor:
C#
![]() |
---|
this.lineChart1.XLabels = new MindFusion.Charting.LabelsCollection("Jan,Feb,Mar,Apr,Mai,Jun,Jul,Aug,Sep,Oct"); |
3D charts
In 3d charts, the axes are drawn as polygons - the width of the polygon depends on Depth3D. The color of the axes might be changed with AxisShadowBrush:
C#
![]() |
---|
this.lineChart1.LineType = MindFusion.Charting.LineTypes.Line3D; |
Creating Bar Charts
Creating Line Charts
Creating Radar Charts