<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: 1222},
{x: "B", value: 2431},
{x: "C", value: 3624},
{x: "D", value: 5243},
{x: "E", value: 6813},
{x: "F", value: 5321},
{x: "G", value: 1567},
{x: "H", value: 3876}
];
// create a chart
var chart = anychart.radar();
// create a line series and set the data
var series = chart.line(data);
// configure the appearance of the y-axis
chart.yAxis().stroke({
color: "gray",
thickness: 2,
dash: "10 5"
});
// configure the appearance of the x-axis
chart.xAxis().stroke({
color: "#00cc99",
thickness: 4,
// invert the y-scale
chart.yScale().inverted(true);
// set the chart title
chart.title("Radar Plot: Axes and Scales");
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();