ChartDirector 7.1 (C++ Edition)

TreeMapNode.setData


Usage

void setData(DoubleArray data, StringArray labels = StringArray(), IntArray colors = IntArray());

Description

Sets the data for the child nodes.

Arguments

ArgumentDefaultDescription
data(Mandatory)An array of numbers for the values of the child node. This array can be empty if the child nodes contains other child nodes. In this case, the value of a node will be determined as the sum of the values of its child nodes.
labels[Empty_Array]An array of text strings for the node labels.
colors[Empty_Array]An array of colors to be used as the fill colors of the child nodes. An empty array means the colors are determined by the prototype node (See TreeMapChart.getLevelPrototype).

Return Value

None