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 selected = chart.selected();
10
11
// Get outline.
12
var outline = selected.outline();
13
14
outline.width('3%');
15
16
chart.title('Get and modify outline');
17
chart.container('container');
18
chart.draw();
19
20
chart.select(0);
21
});