X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Finstall.js;h=ecf7b3be089bf3d2a558c0757c61d4e70ba0bcf1;hb=83b0c192191d484d9909fc7041a534572d07c983;hp=14aaefa2d4ba9e29f06a38ff787e3dbd6307b009;hpb=e26b71566419e1c051f3fbd1f4f8f64b063a04c9;p=dygraphs.git diff --git a/plugins/install.js b/plugins/install.js index 14aaefa..ecf7b3b 100644 --- a/plugins/install.js +++ b/plugins/install.js @@ -1,3 +1,18 @@ +// 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.Legend, + 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 );