Demos

Explore interactive demos to see our features in action. Try them out and discover how they can work for you.

Single View Enabled

Explore an example of a Heat.js instance configured to show only a single view enabled.

Include Files

Make sure you include the following files:

<link rel="stylesheet" href="dist/heat.js.min.css">
<script src="dist/heat.min.js"></script>

Create DOM Element

Add a new DOM element to house the Heat.js instance:

<div id="heat-map" id="heat-map" data-heat-js="getBindingOptions()"></div>

Add a new JavaScript function to return to binding options:

function getBindingOptions() {
    return {
        "views": {
            "map": {
                "enabled": true,
            },
            "line": {
                "enabled": false,
            },
            "chart": {
                "enabled": false,
            },
            "days": {
                "enabled": false,
            },
            "months": {
                "enabled": false,
            },
            "colorRanges": {
                "enabled": false,
            },
        },
    };
}

Result