<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function() {
// create pie chart
var chart = anychart.pie();
// set chart title
chart.title('');
// set chart data
chart.data([
{x: '达到报废条件', value: 212},
{x: '未达到报废条件', value: 168},
]);
// set container id for the chart
chart.container('container');
// initiate chart drawing
chart.draw();
});