diff --git a/app/components/time-series-plot.js b/app/components/time-series-plot.js index 7c63e4df99516d214e4f1da19a7b483806c3527f..48b24fcb5e25356fee9a059fed1e3d2503f3c0ee 100644 --- a/app/components/time-series-plot.js +++ b/app/components/time-series-plot.js @@ -48,10 +48,9 @@ export default Component.extend({ } const $this = this.$(); // flot data points are tuples/arrays [x,y], graphs are arrays of these - // converts unix timestamps to javascript timestamps (*1000) // use Ember.get because it would work with Ember.Object and plain JS const plotData = this.get('timeSeries.series') - .map((valueObj) => [get(valueObj, 'timestamp')*1000, get(valueObj, 'value')]); + .map((valueObj) => [get(valueObj, 'timestamp'), get(valueObj, 'value')]); this.debug('plotData', plotData); // wrap in additional array since flot can handle multiple graphs at once, we only need one const plot = $this.plot([plotData], this.get('options')).data('plot');