Projet

Général

Profil

0003-dataviz-set-maximum-number-of-scales-in-graphs-60685.patch

Valentin Deniaud, 18 janvier 2022 10:38

Télécharger (977 octets)

Voir les différences:

Subject: [PATCH 3/3] dataviz: set maximum number of scales in graphs (#60685)

 combo/apps/dataviz/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
combo/apps/dataviz/models.py
336 336
            'pie': pygal.Pie,
337 337
            'dot': pygal.Dot,
338 338
            'table': pygal.Bar,
339
        }[self.chart_type](config=pygal.Config(style=copy.copy(style), order_min=0.1))
339
        }[self.chart_type](config=pygal.Config(style=copy.copy(style), order_min=0.1, max_scale=5))
340 340

  
341 341
        if self.statistic.service_slug == 'bijoe':
342 342
            x_labels, y_labels, data = self.parse_response(response, chart)
343
-