<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentLoad(function () {
// Set your licence key before you create chart.
anychart.licenseKey('YOUR-LICENSE-KEY');
var chart = anychart.pie([
{x: 'Cycling', value: 15},
{x: 'Swimming', value: 9},
{x: 'Run', value: 29}
]);
chart.container('container');
chart.draw();
});