X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph.js;h=d166f0311177960e76635b9a7f3808d8f8534fb8;hb=2cfded32d5da38aad8d9617654569f3e3f1c420d;hp=634520c42baad185710a186721d9a69c55bcfe0f;hpb=2b66af4f76dcd72d22f5844cb7684f3cb79fde42;p=dygraphs.git diff --git a/src/dygraph.js b/src/dygraph.js index 634520c..d166f03 100644 --- a/src/dygraph.js +++ b/src/dygraph.js @@ -51,12 +51,14 @@ import * as DygraphTickers from './dygraph-tickers'; import * as utils from './dygraph-utils'; import DEFAULT_ATTRS from './dygraph-default-attrs'; import OPTIONS_REFERENCE from './dygraph-options-reference'; +import IFrameTarp from './iframe-tarp'; import DefaultHandler from './datahandler/default'; import ErrorBarsHandler from './datahandler/bars-error'; import CustomBarsHandler from './datahandler/bars-custom'; import DefaultFractionHandler from './datahandler/default-fractions'; import FractionsBarsHandler from './datahandler/bars-fractions'; +import BarsHandler from './datahandler/bars'; import AnnotationsPlugin from './plugins/annotations'; import AxesPlugin from './plugins/axes'; @@ -1148,7 +1150,7 @@ Dygraph.prototype.createDragInterface_ = function() { // We cover iframes during mouse interactions. See comments in // dygraph-utils.js for more info on why this is a good idea. - tarp: new utils.IFrameTarp(), + tarp: new IFrameTarp(), // contextB is the same thing as this context object but renamed. initializeMouseDown: function(event, g, contextB) { @@ -3569,10 +3571,19 @@ Dygraph.Circles = utils.Circles; Dygraph.Plugins = { Legend: LegendPlugin, Axes: AxesPlugin, - // ... + Annotations: AnnotationsPlugin, + ChartLabels: ChartLabelsPlugin, + Grid: GridPlugin, + RangeSelector: RangeSelectorPlugin }; + Dygraph.DataHandlers = { - DefaultHandler + DefaultHandler, + BarsHandler, + CustomBarsHandler, + DefaultFractionHandler, + ErrorBarsHandler, + FractionsBarsHandler }; Dygraph.startPan = DygraphInteraction.startPan;