ComponentOne CompositeChart for ASP.NET Web Forms
Composite Chart Elements / Axes / Axis Tick Marks
In This Topic
    Axis Tick Marks
    In This Topic

    Tick marks are the lines that appear perpendicular to the axis to display the units of measurement in the chart. Major and minor tick marks can be shown on the bubble chart when the ChartAxisTick.Positon is set to Cross or Outside. Customizing the tick spacing or attributes is as easy as manipulating a set of properties.

    The Axis.TickMajor and Axis.TickMinor properties set the state of the Axis' tick marks. This property can be set to any of the ChartAxisTickPosition values.

    Tick Mark Position

    These values set where and if the tick marks will be displayed:

     

    Value

    Description

    ChartAxisTickPosition.None

    No tick marks along axis.

    ChartAxisTickPosition.Cross

    Tick marks cross over axis.

    ChartAxisTickPosition.Outside

    Tick marks located outside chart area on axis.

    ChartAxisTickPosition.Inside

    Tick marks located inside chart area on axis.

     

    Tick Mark Spacing

    The ChartAxis.AutoMajor and ChartAxis.AutoMinor properties set whether the tick marks are to be automatically configured by the chart. When both these properties are set to True, the chart uses the current data to logically place the major and minor tick marks. When the ChartAxis.AutoMajor property is true, its not necessary to enable overlap for axis annotations.

    The ChartAxis.UnitMajor and ChartAxis.UnitMinor properties set the units by which the ticks will be spaced. When the ChartAxis.UnitMajor property is set, the ChartAxis.UnitMinor property is automatically set by the chart to half the UnitMajor value. Although the chart automatically sets the ChartAxis.UnitMinor property, it also can be manually changed to a different value.

    Tick Mark Length

    You can increase the length of the Major and Minor tick marks using the ChartAxisTick.Factor property. Before using the ChartAxisTick.Factor property set the ChartAxisTick.Position to Outside or Cross. Tick marks are sized based on the thickness of the axis line as well as the tick factor. Doubling the tick factor doubles the length of the axis tick mark. If negative values are used for the X-axis tick marks, the tick marks will appear above the x-axis labels. If negative values are used for the y-axis tick marks, the tick marks will appear to the left of the y-axis labels.

    Note: When increasing the value ChartAxisTick.Factor property, the appropriate MarginBottom, MarginLeft, MarginRight, or MarginTop property should also be increased for adequate space for the increased length of the tick marks.

     

    See Also