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

# Panel

## Definition

A zero-based index value that represents the **ChartPanel** where the **ChartBars** reside.

This is NOT the same as the **PanelUI** property displays on the Chart's **Data Series** menu. A **ChartBars.Panel** value of 0 represents the first panel on the chart.

## Property Value

An int indicating the panel of the **ChartBars**.

## Syntax

`Bars.Panel`

## Examples

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
  Print("ChartBars reside on panel index: " + ChartBars.Panel);
  // Output:  ChartBars reside on panel index: 0        
}
```