I am using Moodle 3.2.4 (build 20170714). I would like to use chart.js to add interactive charts for trainee visualization of course concepts into the html content areas of my tab displays. I can see that chart.js has been added to Moodle 3.2, but I have not been able to figure out how to access it and use it.
I can see its use in reports, for example, as shown in the code below from reports/statistics display.
<iframe class="chartjs-hidden-iframe" tabindex="-1" style="width: 100%; display: block; border: 0px none; height: 0px; margin: 0px; position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px;"></iframe>
<canvas style="display: block; width: 1504px; height: 752px;" width="1504" height="752" id="yui_3_17_2_1_1500392820449_160"></canvas>
I have also found the chartjs.min.js and other javascript in lib/amd/build. But I have not been able to figure out how to put these items together on an html page in a Tab to display information to trainees.
Can anyone provide me with a sample of how this is done? In case it matters, the theme I am using is latest version of Essential.
Rod Wolford