Hide Comments
Hide Comments

Comments (0)

Specifies the optional level of the node. A lot of graph charts, such as org charts and flow charts, are not just scattered about the chart surface. There is a definite organization, e.g., things flow from a top to a bottom (or a left to a right) and many nodes are considered equivalent so they are placed at the same level as other nodes. The Level property is an integer property from 0 to whatever specifying the level of the node. This Level property is used by the Arrange method to divide the chart canvas into a big grid, where each cell in the grid can contain one chart value. One axis of this virtual grid will be the Levels in the chart. The other axis will be all the nodes/values at that level.

Namespace: RSGraphCharts



  property Level: Integer Index 4 read GetIntValue write SetIntValue;

Property Value

Type: Integer


The following code creates a graph chart value and initializes its Level. Then, it creates two children (e.g., Level+1) of the first graph chart value:


    StartUp, Research, Development: TRSGraphChartValue;
      Startup := RSGraphChart1.Values.Add(0, 'Startup');
      Startup.Level := 0;
      // create the children
      Research := Startup.AddChild('Research');
      Development := Startup.AddChild('Development');
      // create a link between the two children
      Research.Links.Add.Value := Development;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb