baseddata.io/layouts/shortcodes/chart.html

11 lines
450 B
HTML
Raw Normal View History

{{ partial "chart.html" }}
2024-09-23 17:46:59 +01:00
<section class = 'chart-container'>
2024-09-23 20:11:25 +01:00
<div class = "chart" id='{{ .Get "id" }}'>
<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>
2024-09-23 17:46:59 +01:00
</section>