diff --git a/panoramix/forms.py b/panoramix/forms.py index 814fc0e97225d..1d8bf565a0f1c 100644 --- a/panoramix/forms.py +++ b/panoramix/forms.py @@ -17,7 +17,7 @@ class BetterBooleanField(BooleanField): """ def __call__(self, **kwargs): html = super(BetterBooleanField, self).__call__(**kwargs) - html += u'' + html += u''.format(self.name) return widgets.HTMLString(html) diff --git a/panoramix/static/widgets/viz_nvd3.js b/panoramix/static/widgets/viz_nvd3.js index c2c4af3ffbadc..9c502ed74ead0 100644 --- a/panoramix/static/widgets/viz_nvd3.js +++ b/panoramix/static/widgets/viz_nvd3.js @@ -26,7 +26,6 @@ function viz_nvd3(slice) { chart.xAxis .showMaxMin(fd.x_axis_showminmax) .staggerLabels(true); - chart.showLegend(fd.show_legend); } else if (viz_type === 'bar') { chart = nv.models.multiBarChart() .showControls(true) @@ -34,7 +33,6 @@ function viz_nvd3(slice) { chart.xAxis .showMaxMin(false) .staggerLabels(true); - chart.showLegend(fd.show_legend); chart.stacked(fd.bar_stacked); } else if (viz_type === 'dist_bar') { @@ -46,11 +44,9 @@ function viz_nvd3(slice) { chart.xAxis .showMaxMin(false); chart.stacked(fd.bar_stacked); - } else if (viz_type === 'pie') { chart = nv.models.pieChart() colorKey = 'x'; - chart.showLegend(fd.show_legend); chart.valueFormat(f); if (fd.donut) { chart.donut(true); @@ -70,7 +66,6 @@ function viz_nvd3(slice) { chart.xAxis .showMaxMin(false) .staggerLabels(true); - chart.showLegend(fd.show_legend); } else if (viz_type === 'bubble') { var row = function(col1, col2){ @@ -79,7 +74,6 @@ function viz_nvd3(slice) { chart = nv.models.scatterChart(); chart.showDistX(true); chart.showDistY(true); - chart.showLegend(fd.show_legend); chart.tooltip.contentGenerator(function (obj) { p = obj.point; var s = "