AxisXHeight

View as Markdown

Definition

Measures the distance (in pixels) between the x-axis and the top of the horizontal scroll bar near the bottom of the chart.

Property Value

A double representing the number of pixels separating the x-axis and the top of the horizontal scroll bar on the chart.

Syntax

ChartControl.AxisXHeight

Example

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // Print the number of pixels between the x-axis and the top of the horizontal scrollbar
4 double height = chartControl.AxisXHeight;
5 Print(height);
6}

Based on the image below, AxisXHeight reveals that the space between the x-axis and the top of the horizontal scrollbar is 31 pixels on this chart.

ChartControl_AxisXHeight