1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

heatmap development rendering speed fix

This commit is contained in:
codecalm
2020-12-16 15:22:01 +01:00
parent ad7c1bc6aa
commit d2526c2af9
2 changed files with 3 additions and 1 deletions

View File

@@ -54,7 +54,7 @@
series: [
{% for i in site.months-short limit: 12 %}
{% assign month-i = forloop.index %}
{ name: "{{ i }}", data: [{% for j in (1..15) %}{x: '{{ j }}', y: {{ j | random_number: 0, 100 | plus: month-i | random_number: 0, 100 }}},{% endfor %}] },{% endfor %}
{ name: "{{ i }}", data: [{% for j in (1..16) %}{x: '{{ j }}', y: {{ j | random_number: 0, 100 | plus: month-i | random_number: 0, 100 }}},{% endfor %}] },{% endfor %}
],
xaxis: {
type: "category"

View File

@@ -8,6 +8,7 @@ libs: apexcharts
<div class="col-xl-6">
{% include cards/charts/heatmap.html id="heatmap-basic" title="Basic Heatmap - Single Series" %}
</div>
{% unless jekyll.environment == 'development' %}
<div class="col-xl-6">
{% include cards/charts/heatmap.html id="heatmap-multiple" title="Heatmap - Multiple series" colors=12 %}
</div>
@@ -17,4 +18,5 @@ libs: apexcharts
<div class="col-xl-6">
{% include cards/charts/heatmap.html id="heatmap-colors" title="Heatmap - Color range" scale=true %}
</div>
{% endunless %}
</div>