mirror of
https://github.com/tabler/tabler.git
synced 2026-07-29 14:34:37 +04:00
charts development
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user