wip charts

This commit is contained in:
2023-12-25 17:00:47 +01:00
parent a9dacbb3a2
commit f5f3b033bb
2 changed files with 144 additions and 114 deletions

View File

@ -53,8 +53,10 @@
{{ . }},
{{ end }}
],
borderColor: {{ index (split . "|") 2 }} || '#a78bfa',
backgroundColor: {{ index (split . "|") 2 }} || '#c4b5fd',
{{ if $c := index (split . "|") 2 }}
borderColor: {{ $c }},
backgroundColor: {{ $c }},
{{ end }}
{{ if $.Get "stacked" }}
fill: true,
{{ end }}