58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
AmCharts.makeChart("chartDonut1",
|
|
{
|
|
"balloon": {
|
|
"fixedPosition": false
|
|
},
|
|
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
|
|
"fontFamily": "Open Sans",
|
|
"innerRadius": "60",
|
|
"labelsEnabled": false,
|
|
"responsive": {
|
|
"enabled": true,
|
|
},
|
|
"marginBottom": 0,
|
|
"marginTop": 0,
|
|
"maxLabelWidth": 140,
|
|
"numberFormatter": {
|
|
"precision": 0,
|
|
"decimalSeparator": ".",
|
|
"thousandsSeparator": ","
|
|
},
|
|
"percentPrecision": 0,
|
|
"radius": 110,
|
|
"startDuration": 0,
|
|
"theme": "light",
|
|
"titleField": "Label",
|
|
"titles": [
|
|
{
|
|
"id": "Title-1",
|
|
"size": 15,
|
|
"text": "Projects by Goal and Type",
|
|
"color": "#555"
|
|
}
|
|
],
|
|
"type": "pie",
|
|
"valueField": "Value",
|
|
|
|
"gradientRatio": [
|
|
-0.4,
|
|
-0.4,
|
|
-0.4,
|
|
-0.4,
|
|
-0.4,
|
|
-0.4,
|
|
0,
|
|
0.1,
|
|
0.2,
|
|
0.1,
|
|
0,
|
|
-0.2,
|
|
-0.5
|
|
],
|
|
"dataProvider": [],
|
|
"total": 0,
|
|
"refresh": function (data) {
|
|
//alert(data);
|
|
}
|
|
}
|
|
); |