New answers tagged chart
Not saying that this is necessarily the problem, but I have never liked dynamically loading scripts by writing a script tag into the head. So my first inclination would be to get rid of the loadJS function and just load the chart.js script normally: <canvas id="myChart" width="600" height="400"></canvas> <!-- just load the chart.js script ...
Not sure about OOTB Chart Web Part. But it is possible with a 3rd party web part, Plumsail Dashboard Designer. You can find a sample with filtering on their demo site.
Plumsail Dashboard Designer supports aggregation and grouping as well. Also, it works in Office 365 and SharePoint on-premises. Not free but good value for price - flexibility, modern view, animation, interactivity, and no coding.
Top 50 recent answers are included