Merge pull request #143 from v4lerio/patch-1

Update main.js
pull/271/head
Hunter Long 2019-10-15 08:58:17 -07:00 committed by GitHub
commit 4c7e360c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -153,11 +153,9 @@ async function RenderChart(chart, service, start=0, end=9999999999, group="hour"
chartData = await ChartLatency(service, start, end, "minute", retry);
}
chart.render();
if (chartData) {
chart.updateSeries([{
data: chartData
}]);
}
chart.updateSeries([{
data: chartData || []
}]);
}