Dynamically creating chart widgets, or creating a custom multi-chart widget?
I'm working on a project that requires multiple custom charts to be displayed on the admin page.
Is there a way to render a chart widget for every member of a collection, or am I going to have to create a custom multi-chart widget?
4 Replies
Can you give a bit more context? Is this on a dashabord page? What kind of information is to be displayed?
Sure. The idea is to have a dashboard full of customizable charts backed by a model holding the chart configuration.
Currently I just want to show a line chart widget for each chart configuration record featuring a count of newly created records over time.
Cool. I think I would go with a custom multi-chart... I feel like it would be the most flexible approach.
That's what I was thinking. Couldn't get the chartjs library to load in the custom widget though for some reason