Hi guys, I’m playing around with datacore and was wandering if it is possible to render chartjs with datacorejs or datacorejsx like it is with dataviewjs.
I tried to return window.renderChart(data, container), but that doesn’t work.
This might be a longshot, but window.renderChart() is not a part of dataview, but rather a part of the Charts plugin. As such, it should be usable by also datacorejs as is when that plugin is installed and enabled.
Not sure, but I don’t think, the syntax should change a lot. You might need a slightly different reference to the container where it should be placed, but the call itself is just a pure javascript call.
The function is window.renderChart() is available, but datacore doesn’t provide access its container, “this” returns the global object and I don’t think the container can be access through it.