1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00
Files
tabler/_includes/cards/sparkline.html
2018-02-19 20:17:04 +01:00

16 lines
733 B
HTML

{% assign color = include.color | default: 'blue' %}
{% assign chart_type = include.type | default: 'bar' %}
{% assign limit = include.limit | default: 20 %}
{% assign offset = include.offset | default: 0 %}
{% assign aggregate = include.aggregate | default: false %}
<div class="card">
<div class="card-body">
<div class="card-value pull-right text-warning">
<div class="sparkline" data-sparkline="{% include chart-data.html limit=limit offset=offset aggregate=aggregate %}" data-sparkline-color="{{ site.colors[color] }}" data-sparkline-type="{{ chart_type }}"></div>
</div>
<h3 class="mb-1">$10M <i class="mdi mdi-trending-up text-success"></i></h3>
<div class="text-muted">Profit for this month</div>
</div>
</div>