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

# AxisYLeftWidth

## Definition

Measures the distance (in pixels) between the y-axis and the left edge of a chart.

## Property Value

A double representing the number of pixels separating the y-axis and the left edge of the chart.

## Syntax

`ChartControl.AxisYLeftWidth`

## Example

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
     // Print the number of pixels between the y-axis and the left edge of the chart
     double leftWidth = chartControl.AxisYLeftWidth;
     Print(leftWidth);
}
```

Based on the image below, AxisYLeftWidth reveals that the space between the y-axis and the left edge of the chart is 53 pixels on this chart.

![ChartControl\_AxisYLeftWidth](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/994f61e607aa2350d7bc826ebe826ecbc3cdc655ae5fb65dbac143e8e483a11f/docs/assets/developer/desktop-sdk/references/axisyleftwidth-chartcontrol-axisyleftwidth.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070253Z&X-Amz-Expires=604800&X-Amz-Signature=e711513171f02e9d879c5dc4a9adcc6f65893a05625ab837274ce7cf03a00629&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

When there are no left-justified data series on a chart, AxisYLeftWidth will return 0, as there will be no space between the y-axis and the left margin.