Search code examples
highchartsshapessquare

Highcharts version 8.2.0 tilemap doesn't support "square" shape


I've been using highcharts 7.2.0 tilemap chart, but after updating to version 8.2.0, I'm getting an error when tileShape is set to "square"

In my https://jsfiddle.net/nqxm2yk7/1/ , tileShape is set to 'circle', but if you change it to "square", it will be crash.

Although the official documentation says, that we can use four different types of shapes

Official page screenshot

Is anyone has the same problem?

  [1]: https://jsfiddle.net/nqxm2yk7/1/

Solution

  • If you want square tiles you will need to set the chart type to "heatmap":

    chart: {
        type: 'heatmap',
        height: '120%'
    },
    

    and also include heatmap.js

    Fiddle