Merge pull request #2 from witsa/master
[dygraphs.git] / plugins / install.js
... / ...
CommitLineData
1/*global Dygraph:false */
2
3// This file defines the ordering of the plugins.
4//
5// The ordering is from most-general to most-specific.
6// This means that, in an event cascade, plugins which have registered for that
7// event will be called in reverse order.
8//
9// This is most relevant for plugins which register a layout event, e.g.
10// Axes, Legend and ChartLabels.
11
12// TODO(danvk): move this into the top-level directory. Only plugins here.
13Dygraph.PLUGINS.push(
14 Dygraph.Plugins.Legend,
15 Dygraph.Plugins.Axes,
16 Dygraph.Plugins.RangeSelector, // Has to be before ChartLabels so that its callbacks are called after ChartLabels' callbacks.
17 Dygraph.Plugins.ChartLabels,
18 Dygraph.Plugins.Annotations,
19 Dygraph.Plugins.Grid
20);