ChartPanels

<< Click to Display Table of Contents >>

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

ChartPanels

Previous page Return to chapter overview Next page

Definition

Holds a collection of ChartPanel objects containing information about the panels active on the chart.

 

Property Value

An ObservableCollection of ChartPanel objects

 

Syntax

<ChartControl>.ChartPanels

 

Examples

ns


protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
  // Print the number of panels currently displayed on the chart
  Print(String.Format("There are {0} panels on the chart", chartControl.ChartPanels.Count));
}

 

 

Based on the image below, there are three ChartPanel objects in the ChartPanels collection, as seen by ChartPanels.Count in the code above.

 

ChartControl_ChartPanels