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
// data for chart
4
var dataSet = anychart.data.set([
5
[0, 80],
6
[3, 40],
7
[6, 80],
8
[9, 40],
9
[3, 80],
10
[6, 40],
11
[9, 80]
12
]);
13
14
// chart type
15
var chart = anychart.polar();
16
17
// chart title
18
chart.title("Polar Chart Start Angle Sample");
19
20
// set start angle of the chart
21
chart.startAngle(90);
22
23
// set data and disable tooltip
24
chart.line(dataSet);
25
26
chart.legend(false);
27
28
// draw chart
29
chart.container("container");
30
chart.draw();
31
});