const newCurrentIndex = findIndexForCounter(currentPCData.CounterID, currentPCData.NetworkID);
if (currentIndex === newCurrentIndex) {
$.each(model.Data, (j, point) => {
if (!_.isNumber(j)) {
return;
}
highChart.series[0].addPoint(point, false, true);
});
highChart.redraw();
}
currentPCData = allPCModels[newCurrentIndex];
This code snippet is used for refreshing a Highcharts chart, and an issue arises when it's initially refreshed. While a date range of 1 minute or 1 day works correctly, the 1 hour and 2-hour date ranges appear to be incorrect, showing a much shorter time span. The main concern is that this chart functions flawlessly in Firefox and newer versions of Internet Explorer. The buttons for selecting the date range have their type set to 'minute' with a count of '60'.