1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-29 14:34:37 +04:00

charts development

This commit is contained in:
codecalm
2019-10-27 11:57:48 +01:00
parent ac4fb32017
commit 4fb196579f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -5,10 +5,10 @@
{% if data %}
<script>
document.addEventListener("DOMContentLoaded", function(event) {
window.chart = window.chart || {};
{% if jekyll.environment == 'development' %}window.chart = window.chart || {};{% endif %}
var el;
window.ApexCharts && (window.chart["{{ include.chart-id }}"] = new ApexCharts((el = document.getElementById('{{ include.id }}')), {
window.ApexCharts && ({% if jekyll.environment == 'development' %}window.chart["{{ include.chart-id }}"] = {% endif %}new ApexCharts((el = document.getElementById('{{ include.id }}')), {
chart: {
type: '{{ data.type }}',
height: el.offsetHeight,