diff --git a/docs/assets/js/charts.js b/docs/assets/js/charts.js index 825df55f..96123199 100644 --- a/docs/assets/js/charts.js +++ b/docs/assets/js/charts.js @@ -256,6 +256,9 @@ function aggregateTimeData(data, aggregationConfig) function buildHistoryChartData(view) { + if (view.data.length == 0) + return Array(); + const originalDataSeries = Object.keys(view.data[0]).slice(1); const dataSeries = 'series' in view ? view.series : originalDataSeries; const visibleDataSeries = 'visibleSeries' in view ? view.visibleSeries : originalDataSeries;