To render the TreeMap Legend, follow the steps given:
Create a TreeMap sample and include the necessary script files.
You can represent the color value of the leaf nodes by using the treeMapLegend. This Legend is appropriate only for the TreeMap whose leaf nodes are colored by using the rangeColorMapping.
You can set showLegend API value to true to enable the Legend visibility.
The following screenshot represents the Legend visibility:
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|