Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Highcharts Treemap

Highcharts Treemap

In this chapter we will introduce Highcharts heat maps.

We learned the Highcharts configuration syntax in the previous chapters. Now let's look at other Highcharts configurations.


Treemap

series Configuration

Set the type property of series to treemap; series.type describes the data series type. The default value is "line".



var chart = {

   type: 'treemap'

};

Example

Filename: highcharts_tree_map.htm









Highcharts 教程 | Runoob Tutorial(runoob.com)





    

  





The output of the above example is:


Treemap with Different Levels

The following example uses different colors to identify the different levels of a treemap.

Example

Filename: highcharts_tree_levels.htm (click the example to view the complete source code)









Highcharts 教程 | Runoob Tutorial(runoob.com)





    

  





The output of the above example is:


Large-Volume Treemap

The following example colors a large-volume treemap; the specific example data can be viewed by clicking "Try it".

Filename: highcharts_tree_largemap.htm









Highcharts 教程 | Runoob Tutorial(runoob.com)



   

    

  





The output of the above example is: