From 7f973079419726cd0a6227d0994a6bffce34c31b Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Mon, 17 Jan 2022 16:09:41 +0100 Subject: [PATCH 1/3] dataviz: do not show floating point numbers when scaling (#60685) --- combo/apps/dataviz/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/dataviz/models.py b/combo/apps/dataviz/models.py index 126f16fc..796347dd 100644 --- a/combo/apps/dataviz/models.py +++ b/combo/apps/dataviz/models.py @@ -336,7 +336,7 @@ class ChartNgCell(CellBase): 'pie': pygal.Pie, 'dot': pygal.Dot, 'table': pygal.Bar, - }[self.chart_type](config=pygal.Config(style=copy.copy(style))) + }[self.chart_type](config=pygal.Config(style=copy.copy(style), order_min=0.1)) if self.statistic.service_slug == 'bijoe': x_labels, y_labels, data = self.parse_response(response, chart) -- 2.30.2