mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Support for pie charts.
This commit is contained in:
parent
640557df4f
commit
e632cf1c42
@ -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) {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user