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

# IsYAxisDisplayedOverlay

## Definition

Indicates any objects configured in the panel are using the Overlay scale justification.

## Property Value

A bool indicating any objects use the Overlay scale justification.

## Syntax

`ChartPanel.IsYAxisDisplayedOverlay`

## Examples

Based on the image below, **IsYAxisDisplayedOverlay** is set to True, since the SMA indicator is using the Overlay scale justification.

![ChartPanel\_IsYAxisDisplayedOverlay](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/858e8761a16e98facb8ebd8334e0b4ddb27d9c2e5f1d65f97e6364cd180d7d1e/docs/assets/developer/desktop-sdk/references/isyaxisdisplayedoverlay-chartpanel-chartpanel-isyaxisdisplayedoverlay.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=20260729T070933Z&X-Amz-Expires=604800&X-Amz-Signature=c3b2c6e75f7682bd4f373e05b9292d9e6d0b7647bd214bdc8512a868b06f73ae&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
    base.OnRender(chartControl, chartScale);

    // Trigger an alert when the Overlay scale justification is used
    if (ChartPanel.IsYAxisDisplayedOverlay)
        Alert("overlayAlert", Priority.Low, "It is not recommended to use 'Overlay' with this indicator", "", 300, Brushes.Yellow, Brushes.Black);
}
```