HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.radar([
3
{x: 'January', value: 3},
4
{x: 'February', value: 6},
5
{x: 'March', value: 3},
6
{x: 'April', value: 6},
7
{x: 'May', value: 3},
8
{x: 'June', value: 6}
9
]);
10
11
// Set scale.
12
chart.xScale(anychart.scales.ordinal());
13
14
chart.title('Set scale');
15
chart.container('container');
16
chart.draw();
17
});