Unknown widget: chart.Charts

From Documentation

Problem Decription

You see the error below in a browser developer tool > Console tab:

 Uncaught Unknown widget: chart.Charts


Unknown widget chart.png


Why It Happens

ZK fails to instantiate a chart widget because the chart js isn't loaded. (the widget class chart.Charts isn't registered successfully)

Possible Causes and Solutions

Mixing 2 different versions of ZK jar

Load a JavaScript that Interferce Widget Loading