X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Finstall.js;h=656d4260dbfc31fbc7d4fe36737bdd0f81a8ac4c;hb=b095c93ba3b463ef6c6148297e5d60ccefcd5b30;hp=9490dfc9597f64520807d74beaacd3aa6184b373;hpb=3a7f87be6759dcf1f9a00c2efd3ff72d62489c1d;p=dygraphs.git diff --git a/plugins/install.js b/plugins/install.js index 9490dfc..656d426 100644 --- a/plugins/install.js +++ b/plugins/install.js @@ -1,5 +1,20 @@ +/*global Dygraph:false */ + +// This file defines the ordering of the plugins. +// +// The ordering is from most-general to most-specific. +// This means that, in an event cascade, plugins which have registered for that +// event will be called in reverse order. +// +// This is most relevant for plugins which register a layout event, e.g. +// Axes, Legend and ChartLabels. + // TODO(danvk): move this into the top-level directory. Only plugins here. Dygraph.PLUGINS.push( Dygraph.Plugins.Legend, - Dygraph.Plugins.ChartLabels + Dygraph.Plugins.Axes, + Dygraph.Plugins.RangeSelector, // Has to be before ChartLabels so that its callbacks are called after ChartLabels' callbacks. + Dygraph.Plugins.ChartLabels, + Dygraph.Plugins.Annotations, + Dygraph.Plugins.Grid );