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: 0, value: 500},
6
{x: 180, value: 0}
7
];
8
9
// create a chart
10
var chart = anychart.polar();
11
12
// create a line series and set the data
13
var series = chart.line(data);
14
15
// set the maximum value of the x-scale
16
chart.xScale().maximum(360);
17
18
// configure Y scale
19
chart.yScale().minimum(0).maximum(600);
20
chart.yScale().ticks().interval(100);
21
22
// set the chart title
23
chart.title("Polar Plot: Standard Polar Scales");
24
25
// set the container id
26
chart.container("container");
27
28
// initiate drawing the chart
29
chart.draw();
30
});