Count

<< Click to Display Table of Contents >>

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

Count

Previous page Return to chapter overview Next page

Definition

The total number of ChartBars that exist on the chart.

 

Property Value

An int value representing the the total number of bars.

 

Syntax

ChartBars.Count

 

Examples

ns


protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
  if(ChartBars != null)
  {
    Print("ChartBars contain " + ChartBars.Count + " bars");
    //Output:  ChartBars contain 73 bars
  }
}