1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-25 11:29:57 +04:00

fix chart sparkline for percentage

This commit is contained in:
Michal Wolny
2020-11-28 17:20:28 +01:00
parent 5c97599ca0
commit f5a461ee01

View File

@@ -4,6 +4,9 @@
{% assign height = include.height | default: 2.5 %}
{% assign data = include.data %}
{% if include.percentage %}
{% assign data = include.percentage %}
{% endif %}
{% if id %}
<div class="chart-sparkline{% if type == 'pie' or type == 'donut' %} chart-sparkline-square{% endif %}{% if include.wide %} chart-sparkline-wide{% endif %}" id="sparkline-{{ id }}"></div>