baseddata.io/layouts/shortcodes/chart.html

9 lines
405 B
HTML
Raw Normal View History

{{ partial "chart.html" }}
<div id = '{{ .Get "id" }}-chart-container'>
<script>
document.addEventListener("DOMContentLoaded", function () {
createChart(id={{ .Get "id" }}, endpoint={{ .Get "endpoint" }}, chartType={{ .Get "chartType" }}, xAxisField={{ .Get "xAxisField" }}, yAxisField={{ .Get "yAxisField" }}, sortField={{ .Get "sortField" }}, scaleChart={{ .Get "scaleChart" }})
});
</script>
</div>