I’d like to display a chart with some data in a admin-dashboard widget. But I’m stuck with the loading of my js libs.
Due to the fact, that the widget content is done via renderWidgetContent()
the libs included with event.include( assetId = "js-chart" );
are not instantiated.
Is there some example available how to get a chart rendered in the widgets?
I’m also using the chart.js extension, so I tried the quick start example from FORGEBOX: PresideCMS Extension: Chart.js for Preside
I see, that the correct code is written to the output, but a chart isn’t generated (I think due to the loading issue mentioned above).
Has someone a working example for this?
Thanks in Advance,
Michi