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
3
// create data
4
var data = [
5
{x: "A", value: 1222},
6
{x: "B", value: 2431},
7
{x: "C", value: 3624},
8
{x: "D", value: 5243},
9
{x: "E", value: 6813},
10
{x: "F", value: 5321},
11
{x: "G", value: 1567},
12
{x: "H", value: 3876},
13
{x: "I", value: 2187}
14
];
15
16
// create a chart
17
var chart = anychart.radar();
18
19
// create a marker series and set the data
20
var series = chart.marker(data);
21
22
// set the chart title
23
chart.title("Radar Marker Chart");
24
25
// set the container id
26
chart.container("container");
27
28
// initiate drawing the chart
29
chart.draw();
30
});