Syncfusion AI Assistant

How can I help you?

Dimensions in JavaScript Heatmap chart control

Size for container

Heat map can be rendered to its container size. You can set the size through inline or CSS.

    <div id='container'>
        <div id='element' style="width:650px; height:350px;"></div>
    </div>

Size for heat map

You can set the size of heat map directly by using the width and height properties.

In Pixel

You can set the size for heat map in a pixel.

In percentage

By setting value in percentage, heat map gets its dimension with respect to its container. For example, when the height is ‘50%’, heat map rendered to half of the container height.