1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-23 19:50:59 +04:00
Files
tabler/src/pages/_includes/docs/chart.html
T
2021-02-21 21:06:27 +01:00

19 lines
525 B
HTML

{% assign chart-id = include.chart %}
{% assign data = site.data.charts[chart-id] %}
{% if data or include.heatmap %}
<div class="card">
{% if include.title %}
<div class="card-header">
<h3 class="card-title">{{ include.title }}</h3>
</div>
{% endif %}
<div class="card-body">
{% if include.heatmap %}
{% include ui/chart-heatmap.html chart-id=chart-id show-scripts=true size="lg" %}
{% else %}
{% include ui/chart.html chart-id=chart-id show-scripts=true size="lg" %}
{% endif %}
</div>
</div>
{% endif %}