0001-dataviz-move-legend-to-bottom-in-narrow-graphs-39920.patch
combo/apps/dataviz/models.py | ||
---|---|---|
264 | 264 |
else: |
265 | 265 |
values = [data[i][j] for j in range(len(x_labels))] |
266 | 266 |
chart.add(serie_label, values) |
267 |
if width and width < 500: |
|
268 |
chart.legend_at_bottom = True |
|
267 | 269 |
else: |
268 | 270 |
# pie, create a serie by data, to get different colours |
269 | 271 |
values = data |
270 |
- |