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

# ChartScale

The **ChartScale** class includes a range of properties related to the Y-Axis values of the [**ChartPanel**](/developer/desktop-sdk/references/common/charts/chartpanel) on which the calling script resides. The **ChartScale** can be configured to Right, Left, or Overlay.

![ChartScale\_1](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/d360eeb498e670b0307fda60aabb8812c3a80604658a3eddfcbd976bdfe2c91c/docs/assets/developer/desktop-sdk/references/chartscale-chartscale-1.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=20260729T070349Z&X-Amz-Expires=604800&X-Amz-Signature=3bc686dc3da484e8dd6ddd9774f5da47d2516025bb66216786724f3eb01bea35&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

## Methods and Properties

| Method/Property                                                                                                    | Description                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**GetPixelsForDistance()**](/developer/desktop-sdk/references/common/charts/chartscale/getpixelsfordistance)      | Returns the number of device pixels between the value passed to the method representing a series point value on the chart scale                                                                                                                                     |
| [**GetValueByY()**](/developer/desktop-sdk/references/common/charts/chartscale/getvaluebyy)                        | Returns the series value on the chart scale determined by a y pixel coordinate on the chart                                                                                                                                                                         |
| [**GetValueByYWpf()**](/developer/desktop-sdk/references/common/charts/chartscale/getvaluebyywpf)                  | Returns the series value on the chart scale determined by a WPF coordinate on the chart                                                                                                                                                                             |
| [**GetYByValue()**](/developer/desktop-sdk/references/common/charts/chartscale/getybyvalue)                        | Returns the chart's y-pixel coordinate on the chart determined by a series value represented on the chart scale                                                                                                                                                     |
| [**GetYByValueWpf()**](/developer/desktop-sdk/references/common/charts/chartscale/getybyvaluewpf)                  | Returns a WPF coordinate on the chart determined by a series value represented on the chart scale                                                                                                                                                                   |
| [**Height**](/developer/desktop-sdk/references/common/charts/chartscale/height)                                    | Indicates the overall distance (from top to bottom) of the chart scale in device pixels                                                                                                                                                                             |
| [**IsVisible**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-isvisible)                   | Indicates if the chart scale is viewable on the UI                                                                                                                                                                                                                  |
| [**MaxMinusMin**](/developer/desktop-sdk/references/common/charts/chartscale/maxminusmin)                          | The difference between the chart scale's [**MaxValue**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-maxvalue) and [**MinValue**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-minvalue) represented as a y value |
| [**MaxValue**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-maxvalue)                     | The highest displayed value on the chart scale                                                                                                                                                                                                                      |
| [**MinValue**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-minvalue)                     | The lowest rendered value on the chart scale                                                                                                                                                                                                                        |
| [**PanelIndex**](/developer/desktop-sdk/references/common/charts/chartscale/panelindex)                            | The panel on which the chart scale resides                                                                                                                                                                                                                          |
| [**Properties**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-properties)                 | Represents a number of properties available to the Chart Scale which can be configured to change the appearance of the scale                                                                                                                                        |
| [**ScaleJustification**](/developer/desktop-sdk/references/common/charts/chartscale/chartscale-scalejustification) | Indicates the location of the chart scale relative to the chart control                                                                                                                                                                                             |
| [**Width**](/developer/desktop-sdk/references/common/charts/chartscale/width)                                      | Indicates the overall distance (from left to right) of the chart scale in device pixels                                                                                                                                                                             |