Let the user decide the label type of pie charts (#819)

This commit is contained in:
x4base
2016-07-28 13:39:29 -05:00
committed by Maxime Beauchemin
parent 1101de5ae4
commit 29e3dd404d
3 changed files with 20 additions and 2 deletions

View File

@@ -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;