<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.pie([
{x: 'Cycling', value: 10},
{x: 'Swimming', value: 12},
{x: 'Run', value: 18},
{x: 'Hiking', value: 11},
{x: 'Alpinism', value: 9}
]);
// Enable the chart label.
chart.label(true);
chart.title('Enable the chart label');
chart.container('container');
chart.draw();
});