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 in the charts primary data series

 

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