ComponentOne 3D Chart for WinForms
3D Axes / Axis Appearance
In This Topic
    Axis Appearance
    In This Topic

    You can modify the axis title's alignment, text, and font.

    Alignment

    The HorizontalAlignment property can be set to five different settings: Center, Far, General, Justify or Near. Setting the alignment to Center centers the axis title in comparison to the ChartArea. Setting the alignment to Near places the axis title to the left side of the Chart3DArea. Setting the alignment to Far places the axis title to the right side of the Chart3DArea.

    Text

    Use the Text property to set the text for the Axes.

    Font

    Use AxisTitleFont property of Axes collection to specify font for the axis titles. All axes titles use the same font. See 3D Chart Fonts for more information on using Fonts.

    Note: The axis title font size is measured in hundredths of the unit cube size.

    The font size and style for the axis title can be changed by manipulating the Font object of the axis. To access the font properties at design time click the ellipsis next to the Font node or expand the Font node under the axis object in the Visual Studio Properties window. To programmatically modify the Axis font properties, enter the following:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Dim f As Font = New Font("Arial", 8, FontStyle.Bold)
    C1Chart1.ChartArea.AxisX.Font = f
    

    To write code in C#

    C#
    Copy Code
    Font f = new Font("Arial", 8, FontStyle.Bold);
    C1Chart1.ChartArea.AxisX.Font = f;
    
    See Also