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', 'Line': 'line',
'Column': 'column', 'Column': 'column',
'Area': 'area', 'Area': 'area',
'Scatter': 'scatter' 'Scatter': 'scatter',
'Pie': 'pie'
}; };
if (!scope.vis) { 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: { scatter: {
marker: { marker: {
radius: 5, radius: 5,