> This page is for NinjaScript.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# AxisXHeight

## 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

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

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](/_fern-files/ninjatrader-public.docs.buildwithfern.com/05cf6224152be5100d0806d41f034ddde6a7dd130658b7167103505efc65cbd1/docs/assets/developer/desktop-sdk/references/axisxheight-chartcontrol-axisxheight.png)