ietf-tools / www

A customized CMS for the IETF website
BSD 3-Clause "New" or "Revised" License
22 stars 45 forks source link

feat: Integrate wagtailcharts #388

Open mgax opened 3 months ago

mgax commented 3 months ago

Fixes https://github.com/ietf-tools/www/issues/236

⚠️ Migrations will conflict with https://github.com/ietf-tools/www/pull/403. Whichever gets merged first, the migrations in the other branch should just be deleted and re-created, they are just a side-effect of the Streamfield schema being changed.

This PR integrates the wagtailcharts library with all its chart types: lines, vertical bars, horizontal bars, area, combo (lines + bars + area), pie, doughnut, waterfall, radar, and polar.

Charts include an extra Accessible label field, which is used as an aria-label attribute on the chart, for screen readers.


The branch is deployed at https://ws-wagtailcharts.dev.ietf.org/ for testing.


Here's a quick demo, with IETF attendance data, reproducing the chart from this article.

Screenshot 2024-03-25 at 16-45-39 Editing Standard page Charts demo - Wagtail

mgax commented 3 months ago

@kesara it would be useful to have a way to try out a branch before merging. For example, https://www.squash.io can spin up an instance of the project, based on a pull request. We've had good experiences with them, and they offer free accounts for Open Source projects. I could reach out to them if you like.