Hi,
Have this error when trying to save image of chart:
-canvasjs.min.js:13 Uncaught TypeError: window.URL.createObjectURL is not a function
using Chrome: ver 52.0.2743.116 m (64-bit)
it works fine in IE11
Any idea why?
Code:
function chart2(open, closed, arr, chartContainer, type, title, end) {
var chart = new CanvasJS.Chart(chartContainer, {
title: {
text: “Total Issues”,
},
exportEnabled: true,
data: [{
click: function(e) {
chartClick(e.dataPoint.label, type, “Open”, end)
},
type: “column”,
name: “open”,
color: “blue”,
showInLegend: true,
dataPoints: [
]
}, {
click: function(e) {
chartClick(e.dataPoint.label, type, “Closed”, end)
},
type: “column”,
name: “closed”,
color: “green”,
showInLegend: true,
dataPoints: [
]
}]
});
var arrLength = arr.length;
for (i = 0; i < arrLength; i++) {
chart.options.data[0].dataPoints.push({
label: arr[i],
y: open[i]
});
chart.options.data[1].dataPoints.push({
label: arr[i],
y: closed[i]
});
};
chart.options.title.text = title;
chart.render();
};