Dear All,
i am using Canvasjs library for chart in my widget.
var chart = new CanvasJS.Chart("chartContainer", { //Error line CanvasJS not defined.
animationEnabled: true,
title: {
text: "Desktop Search Engine Market Share - 2016"
},
data: [{
type: "pie",
startAngle: 240,
yValueFormatString: "##0.00'%'",
indexLabel: "{label} {y}",
dataPoints: [
{y: 79.45, label: "Google"},
{y: 7.31, label: "Bing"},
{y: 7.06, label: "Baidu"},
{y: 4.91, label: "Yahoo"},
{y: 1.26, label: "Others"}
]
}]
});
chart.render();
Canvas js is not defined.
how to set the path of this js library in web app builder.
Thanks in advance