diff --git a/ui/web/static/js/charts.js b/ui/web/static/js/charts.js index 294b9242..a2169fc7 100644 --- a/ui/web/static/js/charts.js +++ b/ui/web/static/js/charts.js @@ -798,14 +798,14 @@ class HorizontalBarChart extends Echart { function getInterval(chartData) { const interval = chartData.to - chartData.from; - const nanosecondsPerSecond = 1e3; + const millisecondsPerSecond = 1e3; const secondsPerMinute = 60; const minutesPerHour = 60; let minutes = 0; let hours = 0; let intervalString = ""; - let seconds = parseInt(interval) / nanosecondsPerSecond; + let seconds = parseInt(interval) / millisecondsPerSecond; intervalString = Math.ceil(seconds).toString() +'s'; if (seconds >= secondsPerMinute) { minutes = seconds/ secondsPerMinute; diff --git a/ui/web/templates/charts/horizontalbarchartmodal.html b/ui/web/templates/charts/horizontalbarchartmodal.html index 5191e335..521e001b 100644 --- a/ui/web/templates/charts/horizontalbarchartmodal.html +++ b/ui/web/templates/charts/horizontalbarchartmodal.html @@ -18,7 +18,7 @@
Channel | @@ -193,7 +193,7 @@
---|