dataviz: set an arbirary max value for gauges without a value (#17120)

This commit is contained in:
Frédéric Péters 2017-06-22 16:05:21 +02:00
parent 819066421e
commit d32a09c832
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
{% else %}
data-gauge-count-url="{% url 'combo-ajax-gauge-count' cell=cell.id %}"
{% endif %}
data-gauge-max-value="{{max_value}}" class="bo-block">
data-gauge-max-value="{{max_value|default_if_none:100}}" class="bo-block">
<canvas style="width: 100%;">
</canvas>
{% if title %}