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

# Properties

## Definition

Represents a number of properties available to the Chart Scale which can be configured to change the appearance of the scale.

![ChartPanel\_Properites](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/7119528d6735cef55b794a439382bd592380bb4c5dd8d58e73e37f6d1b4321a4/docs/assets/developer/desktop-sdk/shared/chartpanel-properites.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=20260729T070503Z&X-Amz-Expires=604800&X-Amz-Signature=4bd8ec4c610cb929be808b502742a66f101f50e50d8037efa80119ee51d04e30&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

These are UI properties which are designed to be set by a user. Attempting to modify these values through a custom script is NOT guaranteed to take effect.

## Property Values

| Property                            | Description                                                                                                      |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **YAxisRangeType**                  | An **YAxisRangeType** enum, possible values are:<br />• Automatic<br />• Fixed                                   |
| **AutoScaleDateRangeType**          | An **AutoScaleDateRangeType** enum, possible values are:<br />• ScreenDateRange<br />• EntireDateRangeSeriesOnly |
| **HorizontalGridlinesCalculation**  | An **YAxisRangeType** enum, possible values are:<br />• Automatic<br />• Fixed                                   |
| **HorizontalGridlinesIntervalType** | A **HorizontalGridlinesIntervalType** enum, possible values are:<br />• Ticks<br />• Points<br />• Pips          |
| **HorizontalGridlinesInterval**     | A **double** value representing the vertical interval of the horizontal axis                                     |
| **AutoScaleMarginType**             | An **AutoScaleMarginType** enum, possible values are:<br />• Percent<br />• Price                                |
| **AutoScaleMarginLower**            | A **double** value representing the lowest margin used for the chart scale                                       |
| **AutoScaleMarginUpper**            | A **double** value representing the highest margin used for the chart scale                                      |
| **YAxisScalingType**                | An **YAxisScalingType** enum, possible values are:<br />• Linear<br />• Logarithmic                              |
| **FixedScaleMax**                   | A double representing the highest series value used for the chart scale when the scale is fixed                  |
| **FixedScaleMin**                   | A double representing the lowest series value used for the chart scale when the scale is fixed                   |

## Syntax

`\<chartscale\>.Properties`

## Examples

```csharp

protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
    if (chartScale.Properties.YAxisScalingType == AxisScalingTypeLinear)
    {
        // do something
    }
}
```