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.polar();
3
4
var series = chart.line([
5
{x: 0, value: 6},
6
{x: 1, value: 1},
7
{x: 2, value: 6},
8
{x: 3, value: 1},
9
{x: 4, value: 6},
10
{x: 5, value: 1}
11
]);
12
13
// Get maximum labels.
14
var maxLabels = series.maxLabels();
15
maxLabels.enabled(true);
16
maxLabels.fontWeight('bold');
17
maxLabels.fontColor('#F44336');
18
19
chart.title('Get and modify maximum labels');
20
chart.container('container');
21
chart.draw();
22
});