projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrate most of core dygraphs to ES6 modules.
[dygraphs.git]
/
src
/
datahandler
/
default.js
diff --git
a/src/datahandler/default.js
b/src/datahandler/default.js
index
e42b92b
..
5ddf67c
100644
(file)
--- a/
src/datahandler/default.js
+++ b/
src/datahandler/default.js
@@
-9,20
+9,19
@@
* @author David Eberlein (david.eberlein@ch.sauter-bc.com)
*/
* @author David Eberlein (david.eberlein@ch.sauter-bc.com)
*/
-(function() {
-
/*global Dygraph:false */
"use strict";
/*global Dygraph:false */
"use strict";
+import DygraphDataHandler from './datahandler';
+
/**
* @constructor
* @extends Dygraph.DataHandler
*/
/**
* @constructor
* @extends Dygraph.DataHandler
*/
-
Dygraph.DataHandlers.
DefaultHandler = function() {
+
var
DefaultHandler = function() {
};
};
-var DefaultHandler = Dygraph.DataHandlers.DefaultHandler;
-DefaultHandler.prototype = new Dygraph.DataHandler();
+DefaultHandler.prototype = new DygraphDataHandler();
/** @inheritDoc */
DefaultHandler.prototype.extractSeries = function(rawData, i, options) {
/** @inheritDoc */
DefaultHandler.prototype.extractSeries = function(rawData, i, options) {
@@
-97,4
+96,4
@@
DefaultHandler.prototype.getExtremeYValues = function(series, dateWindow,
return [ minY, maxY ];
};
return [ minY, maxY ];
};
-
})()
;
+
export default DefaultHandler
;