X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Finstall.js;h=a8dd0e6d1c373462bc4c3882e7749a18d45eff99;hb=bc3e2c5dd0baa4fae1624da1cb4ea39496a20319;hp=4e962a1a0e8456c8a636c4456edbc39376cd0249;hpb=ee53deb9db465f5eea54e102ca755decef005496;p=dygraphs.git diff --git a/plugins/install.js b/plugins/install.js index 4e962a1..a8dd0e6 100644 --- a/plugins/install.js +++ b/plugins/install.js @@ -1,6 +1,17 @@ +// 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.Axes, Dygraph.Plugins.ChartLabels, - Dygraph.Plugins.Annotations + Dygraph.Plugins.Annotations, + Dygraph.Plugins.Grid );