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

# Y (Coordinate)

## Definition

Indicates the **y-coordinate** on the chart canvas at which the chart panel begins.

## Property Value

A **int** representing the **y-coordinate** at which the panel begins.

## Syntax

`ChartPanel.Y`

## Example

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)  
{  
  base.OnRender(chartControl, chartScale);  
     
  // Print the coordinates of the top-left corner of the panel  
  Print(String.Format("The panel begins at coordinates {0},{1}",ChartPanel.X ,ChartPanel.Y));  
}
```

Based on the image below, Y reveals that the chart panel begins at y-coordinate 232.

![chartpanel\_y](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/f08f4c9f7d845abf2211df8d008168d7f5ef53ebcebc877d396ebb0f5c74645f/docs/assets/developer/desktop-sdk/references/y-coordinate-chartpanel-chartpanel-y.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260730%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260730T090200Z&X-Amz-Expires=604800&X-Amz-Signature=7a37a40fbec1eaa0c03d6e9c7e143e3adde5d44f19124e24afc796385cb2f351&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)