mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
Let the user decide the label type of pie charts (#819)
This commit is contained in:
committed by
Maxime Beauchemin
parent
1101de5ae4
commit
29e3dd404d
@@ -117,9 +117,10 @@ function nvd3Vis(slice) {
|
||||
chart.valueFormat(f);
|
||||
if (fd.donut) {
|
||||
chart.donut(true);
|
||||
chart.labelsOutside(true);
|
||||
}
|
||||
chart.labelsOutside(true);
|
||||
chart.labelsOutside(fd.labels_outside);
|
||||
chart.labelThreshold(0.05) //Configure the minimum slice size for labels to show up
|
||||
.labelType(fd.pie_label_type);
|
||||
chart.cornerRadius(true);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user