<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
// create data
var data = [
["Strength", 8],
["Dexterity", 14],
["Concentration", 14],
["Intelligence", 15],
["Wisdom", 12],
["Charisma", 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("Polygon Chart: Basic Sample");
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();
});