Any idea how to run canvasjs in salesforce lightning component?
I load jquery.canvasjs.min.js from static resources and render canvasjs in the controller:
new CanvasJS.Chart(
component.find("linechart").getElement(),
dataset
).render();
I receive this error: Uncaught Error in $A.getCallback() [j is not defined] … (I don’t use j variable at all.)
When I load canvasjs.min.js I receive error: … [i is not defined]
-
This topic was modified 5 years, 8 months ago by bajlo.