mirror of https://github.com/onweru/compose.git

David Benton
06.57.2024 1ec9a38c9700f5845db55d46b43fb53859d593fa
replace getCSV call with new getRemote and unMarshal
1 files modified
3 ■■■■ changed files
layouts/shortcodes/chart.html 3 ●●●● patch | view | raw | blame | history
layouts/shortcodes/chart.html
@@ -3,7 +3,8 @@
{{- $data := index $.Page.Params $datasetKey }}
{{- $dataURL := $data.fileLink }}
{{- $separator := "," }}
{{- $dataFile := getCSV $separator $dataURL }}
{{- $rawData := resources.Get $dataURL }}
{{- $dataFile := $rawData | transform.Unmarshal (dict "delimiter" $separator) }}
{{- $dataCompactData := dict -}}
{{- $activeColumn := sub $data.baseChartOn 1 }}