Packageeng.series
Classpublic class TreeMapSeries
InheritanceTreeMapSeries Inheritance Series

The instance of the TreeMapSeries class is set to the series property of the instance of the TreeMapChart class.

The TreeMapSeries class processes the dataset in the chart and represents the treemap chart.

You can create a layout in the following format:

  <KoolChart backgroundColor="0xFFFFEE"  borderRadius="12" borderStyle="solid">
   <Options>
    <Caption text="Monthly Report"/>
  </Options>
  <TreeMapChart showDataTips="true">
    <series>
     <TreeMapSeries weightField="weight" nameField="name" groupField="group" groupNameField="groupName"/>
    </series>
   </TreeMapChart>
  </KoolChart>
  



Styles
 StyleDescriptionDefined by
  
alwayShowLabels
Type: Boolean

Indicates whether to display labels even when there is not enough space to display all labels.
If the value is true, the labels are always displayed; if false, the label is not displayed when the space is insufficient.

The default value is false.
TreeMapSeries
  
colorField
Type: String

Sets the instance of the ColorAxis class if the ColorRangeLegend class is applied.

TreeMapSeries
 Inherited Type: String

Sets the name of the series.

The value of this property is displayed in the tooltips and in the legend by default.
Series
 Inherited Type: Object

Sets the color to use when painting the item.

Series
 Inherited Type: String
Sets the JavaScript function to be called to display the user-defined color.
Series
 Inherited Type: Array
Sets the color array to use when painting the item.
Series
 Inherited Type: Object

Sets the formatter (NumberFormatter, CurrencyFormatter, DateFormatter) for representing numeric values in the desired numeric (currency, date) format.

Series
  
groupField
Type: String

Sets the field name of the data that corresponds to the hierarchical group when the chart is represented in a hierarchical form.

TreeMapSeries
  
groupHeaderColor
Type: String

Sets the color of the header in which the name of the hierarchical group is displayed when the chart is represented in a hierarchical form.

The default value is #f0f4ef.
TreeMapSeries
  
groupHeaderFontColor
Type: String

Sets the color of the name of the hierarchical group when the chart is represented in a hierarchical form.

The default value is #7c7c7c.
TreeMapSeries
  
groupHeaderFontFamily
Type: String

Sets the font name of the name of the hierarchical group when the chart is represented in a hierarchical form.

The default value is verdana.
TreeMapSeries
  
groupHeaderFontSize
Type: String

Sets the font size of the name of the hierarchical group when the chart is represented in a hierarchical form.

The default value is 12.
TreeMapSeries
  
groupHeaderFontWeight
Type: String

Sets the font weight of the name of the hierarchical group when the chart is represented in a hierarchical form.

The default value is normal.
TreeMapSeries
  
groupHeaderHeight
Type: String

Sets the height of the header in which the name of the hierarchical group is displayed when the chart is represented in a hierarchical form.

The default value is 30.
TreeMapSeries
  
groupHeaderTextAlign
Type: String

Sets the text alignment of the name of the hierarchical group when the chart is represented in a hierarchical form.

The default value is center.
TreeMapSeries
  
groupLabelJsFunction
Type: String

Sets the JavaScript function to be called to display the user-defined group label.

TreeMapSeries
  
groupLabelXOffset
Type: Number

Sets the offset value of the group label for the horizontal position (X-axis value).

The default value is 0.
TreeMapSeries
  
groupLabelYOffset
Type: Number

Sets the offset value of the group label for the vertical position (Y-axis value).

The default value is 0.
TreeMapSeries
  
groupNameField
Type: String

Sets the field name of the data that corresponds to the name of the hierarchical group when the chart is represented in a hierarchical form.

TreeMapSeries
  
groupStroke
Type: String

Sets the border color of the header in which the name of the hierarchical group is displayed when the chart is represented in a hierarchical form.

The default value is #ffffff.
TreeMapSeries
 Inherited
id
Type: String

Sets the identifier of the object.

Series
  
labelJsFunction
Type: String

Sets the JavaScript function to be called to display the user-defined label.

TreeMapSeries
  
nameField
Type: String

Sets the field name of the data to be displayed as a label.

TreeMapSeries
  
showGroupHeader
Type: String

Indicates whether to display the name of the hierarchical group when the chart is represented in a hierarchical form.

The default value is true.
TreeMapSeries
 Inherited Type: String

Sets the style name defined in the Style node.

Series
  
topLevelGroupHeaderColor
Type: String

Sets the color of the top level when the chart is represented in a hierarchical form.

The default value is #dddddd.
TreeMapSeries
 Inherited Type: String

Sets the JavaScript function to be called on the data item that meets a predefined condition.
Sets the value of the userElementJsFunction property of the instance of a Series class to the name of a JavaScript function.

  e.g.) <Column2DSeries yField="Profit" userElementJsFunction="userElementFunc">
  

The function signature of userElementJsFunction is as follows:

  function_name(seriesId, index, data, values) { ...
Series
 Inherited Type: Boolean

Sets whether to display the series on the chart.

Series
  
weightField
Type: String

Sets the field name of the data that corresponds to the size of the tile.

TreeMapSeries