Data Dashboard Design
The Acorn data dashboard will serve the purpose of allowing admins to view their data sources and to perform basic visualizations on this data.
Each visualization/graph/plot must be in the form of a wagtail StructBlock, so that they can be reused in a multitude of ways.
I propose we create a series of wagtail structblocks that each provide a chart type. These blocks will take one or more data sources as input.
Example:
- type: BarChart
- sources:
- source0: MyBlogPost.Comments.all
- source1: MyBlogPost.Comments.spam
- source2: MyBlogPost.Comments.toxicity
Result:
This would accomplish a couple of things:
- Give us the foundation to create the Acorn Data Dashboard
- Allow website admins to create their own visualizations
The Acorn Data Dashboard would essentially be a number of these widgets whose data source(s) is/are selectable and interchangeable within the widget. I think the end goal would be to create an interface by which website admins could utilize visualization tools in a non data scientist capacity
Different data sources off the top of my head:
- Comments
- Form responses
And when the ability to save a chart with an ensemble of connected data sources becomes available, it would, in essence, allow automatic reports to be generated. (Use Case: quarterly site traffic reports that land on the CEO's desk)