Chartjs
Description
This extension is a helper for loading Chart javascript framework (Chartjs 2.8.5).
Usage
There are 2 ways to load chartjs.
Using the wiki macro:
{{chartjs minify="false"/}}
Or using directly the JavascriptExtension:
{{velocity}}
$!xwiki.jsx.use('Macros.chartjs', {'minify':false})
{{/velocity}}
After loading the chartjs there is an event triggered in javascript that signals chart loaded.
Best practice to use it in javascript:
document.observe('chart:loaded', function(){
// here is your javascript code that uses the Chart javascript framework.
console.log("chartjs loaded");
});