Unknown widget: chart.Charts"

From Documentation
Line 9: Line 9:
  
 
= Why It Happens =  
 
= Why It Happens =  
ZK fails to instantiate a chart widget because the chart js isn't loaded. (the widget class <code>chart.Charts</code> isn't registered successfully)
+
ZK fails to instantiate a chart widget because the chart js isn't loaded. (the widget class <code>chart.Charts</code> isn't registered successfully).
  
 
= Possible Causes and Solutions=  
 
= Possible Causes and Solutions=  

Revision as of 04:04, 11 June 2021

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