Adding support for charts was quite straightforward. Googling "charts golang" gave me a link to the go-echarts repo. Docs are nonexistent but it works and what's even more surprising eventhough it's used against echarts version 4.8.0 which was released in 2020, it works just fine with the latest version of the library.
Why use go-echarts
? I try to postpone doing an SPA as long as I can get away with it and the package provides a nice way to setup options for the chart rendering. In order to render the chart I use stimulus which provides a nice way to bootstrap components automatically.
All in all, most of the time was spent on fighting with echarts configurations than on anything else