MindFusion.Charting Programmer's Guide

AxisSettings.AxisLength Property

See Also
 





Gets or sets the length of the chart axis.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public float AxisLength { get; set; }

Visual Basic  Copy Code

Public Property AxisLength As Single

 Property Value

A float value, which represents the length, in pixels.

 Remarks

The property enables you to control the length of the chart axis. When the control automatically calculates the axis length it might get too short or too long according to the data and the labels. The AxisLength property allows fixing it at a suitable length.

When the length of the axis is a constant value, some labels might overlap because of insufficient space.

In bar charts, if the AxisLength is set, the bar width and distance between bars are recalculated so that all bars could fit in. This annuls all previously set BarWidth and DistBtwBars.

Default value for the AxisLength property is 0, which means the control automatically calculates the length of the axis.

 See Also