<script src="zoomcharts/zoomcharts.js"></script>(where
zoomcharts
is the name of the folder where you extracted the library)<script src="//cdn.zoomcharts-cloud.com/1/latest/zoomcharts.js"></script>
<div id="chart"></div>
<script> var t = new PieChart({ container: document.getElementById("chart"), area: { height: 350 }, data: { preloaded: { subvalues: [ { id: "foo", value: 100, subvalues: [ { id: "foo-1", value: 50, style: { expandable: false } }, { id: "foo-2", value: 50, style: { expandable: false } } ] }, { id: "bar", value: 50, style: { expandable: false } }, { id: "baz", value: 30, style: { expandable: false } } ] } } }); </script>