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

# Height

## Definition

Indicates the overall distance (from top to bottom) of the chart scale.

## Note

Height does not return its value in terms of device pixels. However, using **Height.ConvertToVerticalPixels** or **Height.ConvertToHorizontalPixels** will convert the Height value to device pixels. Alternatively, **RenderTarget.PixelSize.Height** or **ChartPanel.H** will also provide the height in terms of device pixels.

## Property Value

A **double** value representing the height of the chart scale.

## Syntax

`\<chartscale\>.Height`

## Examples

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
   // the height of the entire chart scale
   double   height       = chartScale.Height;
   Print("the height of the chart scale is: " + height);  
}
```

In the image below, the entire height of the chart scale is represented by the blue line which is calculated at 300 pixels.

![Height](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/bc7c2a98f055d9f8547830c9c064b7431191371d6c71862ba3169676410db92a/docs/assets/developer/desktop-sdk/references/height-height.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=20260729T070402Z&X-Amz-Expires=604800&X-Amz-Signature=27b5a113c2056589deca04cc09e21e798d0c1b2e807e79c5ce2401cc4912a32e&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)