baseddata.io/layouts/shortcodes/chart.html

11 lines
457 B
HTML
Raw Normal View History

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