1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-26 13:04:39 +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
+1 -1
View File
@@ -8,7 +8,7 @@
"build": "npm-run-all clean html-build css js", "build": "npm-run-all clean html-build css js",
"bundlesize": "bundlesize", "bundlesize": "bundlesize",
"browsersync": "node build/browsersync.js", "browsersync": "node build/browsersync.js",
"html-watch": "JEKYLL_ENV=development bundle exec jekyll build --watch", "html-watch": "JEKYLL_ENV=development bundle exec jekyll build --watch --incremental",
"html-build": "JEKYLL_ENV=production bundle exec jekyll build --destination dist-html", "html-build": "JEKYLL_ENV=production bundle exec jekyll build --destination dist-html",
"lint": "npm-run-all --parallel js-lint css-lint", "lint": "npm-run-all --parallel js-lint css-lint",
"clean": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js", "clean": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js",
+2 -2
View File
@@ -5,10 +5,10 @@
{% if data %} {% if data %}
<script> <script>
document.addEventListener("DOMContentLoaded", function(event) { document.addEventListener("DOMContentLoaded", function(event) {
window.chart = window.chart || {}; {% if jekyll.environment == 'development' %}window.chart = window.chart || {};{% endif %}
var el; 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: { chart: {
type: '{{ data.type }}', type: '{{ data.type }}',
height: el.offsetHeight, height: el.offsetHeight,