<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
// create data
var data = [
{x: "A", value: 8},
{x: "B", value: 14},
{x: "C", value: 14},
{x: "D", value: 15},
{x: "E", value: 12},
{x: "F", value: 8}
];
// create a chart
var chart = anychart.polar();
// create a polygon series and set the data
var series = chart.polygon(data);
// set the type of the x-scale
chart.xScale("ordinal");
// enable sorting points by x
chart.sortPointsByX(true);
// set the inner radius
chart.innerRadius(50);
// set the chart title
chart.title("Polar Polygon Chart");
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();
});