JavaScript TreeMap

Bind to the bindingComplete event by type: jqxTreeMap. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id="treemap"></div>

JavaScript

$('#treemap').on('bindingComplete', function (event) {
    alert("The jqxTreeMap has been created");
});
var data = [{
    label: 'Chrome',
    value: 44.06,
    color: "#37c837"
}, {
    label: 'Internet Explorer',
    value: 22.08,
    color: "#0066ff"
}, {
    label: 'Firefox',
    value: 18.17,
    color: "#ed7b0f"
}, {
    label: 'Others',
    value: 9.07,
    color: "#818181"
}, {
    label: 'Opera',
    value: 3.38,
    color: "#9a0900"
}, {
    label: 'Safari',
    value: 3.24,
    color: "#4dbff1"
}];
$('#treemap').jqxTreeMap({
    width: 400,
    height: 300,
    source: data
});