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.column([
5
{x: 1, value: 4},
6
{x: 2, value: 2},
7
{x: 3, value: 8},
8
{x: 4, value: 5},
9
{x: 5, value: 3},
10
{x: 6, value: 9}
11
]);
12
13
// Get state.
14
var state = series.hovered();
15
16
state.fill('#4CAF50');
17
18
chart.xScale('ordinal').sortPointsByX(true);
19
chart.title('Get and modify hovered state');
20
chart.container('container');
21
chart.draw();
22
23
series.hover();
24
});