mirror of
https://github.com/tabler/tabler.git
synced 2026-07-26 13:04:39 +04:00
charts development
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
"build": "npm-run-all clean html-build css js",
|
||||
"bundlesize": "bundlesize",
|
||||
"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",
|
||||
"lint": "npm-run-all --parallel js-lint css-lint",
|
||||
"clean": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js",
|
||||
|
||||
@@ -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