Dynamic Django Charts with Chart.js
Generating Dynamic Charts with Django, Chart.js, and HTMX
The goal: A form where the user selects the measure, aggregation, filters, and chart type, the form uses HTMX to perform AJAX and dynamically swap in the HTML (and JavaScript) for a chart.js chart which is rendered server-side in a normal Django template.
The form is generated by my generic DataService
class, that can make the same type of form for any Django model.
Quick little demo:
Hello World
Hello World!
Well I made a blog.
I couldn't find a static site generator that was both simple and had all the features I wanted, so I had to make one myself.
Read MoreFor more posts visit the archive.