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
{name: 'Point 1', value: 230000},
4
{name: 'Point 2', value: 204524.489354},
5
{name: 'Point 3', value: 235401.56923},
6
{name: 'Point 4', value: 132135},
7
{name: 'Point 5', value: 102427},
8
{name: 'Point 6', value: 310846}
9
]);
10
var currentLabels = chart.labels();
11
currentLabels.format(function () {
12
// format the number
13
return anychart.format.number(this.value, 3, ".", ",")
14
});
15
16
chart.container("container");
17
chart.draw();
18
});