I am using highcharts.js to display line chart with multiple series dynamically from servlet .I am storing the series data in arrays and traversing them as follows:
series: [{
name: 'series1',
data: (function () {
var data = [];
for (var i = 0; i <= datePV.length; i ++) {
data.push([
Date.parse(datePV[i]),
PVValues[i]
]);
}
return data;
}())
},....
The problem is whenever one of the series has no data the whole chart display no data until legends are clicked individually. I want to display all the series with data and the series with no data should not overlap other series data.Need help.