Support for pie charts.

This commit is contained in:
Arik Fraimovich 2014-02-11 16:30:23 +02:00
parent 640557df4f
commit e632cf1c42
2 changed files with 12 additions and 1 deletions

View File

@ -65,7 +65,8 @@
'Line': 'line',
'Column': 'column',
'Area': 'area',
'Scatter': 'scatter'
'Scatter': 'scatter',
'Pie': 'pie'
};
if (!scope.vis) {

View File

@ -107,6 +107,16 @@
}
}
},
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
format: '<b>{point.name}</b>: {point.percentage:.1f} %'
}
},
scatter: {
marker: {
radius: 5,