Panel

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Charts > ChartBars >

Panel

Previous page Return to chapter overview Next page

Definition

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

 

Note:  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

ns


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