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.pie([
3
{x: 'Chrome', value: 8},
4
{x: 'Firefox', value: 7},
5
{x: 'Safari', value: 3},
6
{x: 'IE', value: 2}
7
]);
8
9
var outline = chart.hovered().outline();
10
11
// Set stroke.
12
outline.stroke(function () {
13
return '3 #F44336';
14
});
15
16
chart.title('Set outline stroke parameter as a function');
17
chart.container('container');
18
chart.draw();
19
20
chart.hover(0);
21
});