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:

Animated gif showing form and dynamic generated charts

Read More

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 More

For more posts visit the archive.

Reed Jones

I build software and write about technology, security, ethics, media, and art.

Subscribe To My Blog

Get updated whenever I post new content.