Plugins: Custom datasource example adapted to return timestamps in millieseconds, Fixes #1263
This commit is contained in:
1 parent
1b3bddd622
commit
32ae0ea13e
1 file changed
+2
-2
@@ -21,8 +21,8 @@ function (angular, _, kbn) {
|
||||
|
||||
CustomDatasource.prototype.query = function(options) {
|
||||
// get from & to in seconds
|
||||
var from = kbn.parseDate(options.range.from).getTime() / 1000;
|
||||
var to = kbn.parseDate(options.range.to).getTime() / 1000;
|
||||
var from = kbn.parseDate(options.range.from).getTime();
|
||||
var to = kbn.parseDate(options.range.to).getTime();
|
||||
|
||||
var series = [];
|
||||
var stepInSeconds = (to - from) / options.maxDataPoints;
|
||||
|
||||
Reference in new issue
Block a user