forked from panuhorsmalahti/dygraphs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dygraph-dev.js
50 lines (46 loc) · 1.58 KB
/
dygraph-dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* @license
* Copyright 2011 Dan Vanderkam ([email protected])
* MIT-licensed (http://opensource.org/licenses/MIT)
*/
// A dygraph "auto-loader".
// Check where this script was sourced from. If it was sourced from
// '../dygraph-dev.js', then we should source all the other scripts with the
// same relative path ('../dygraph.js', '../dygraph-canvas.js', ...)
(function() {
var src=document.getElementsByTagName('script');
var script = src[src.length-1].getAttribute("src");
// This list needs to be kept in sync w/ the one in generate-combined.sh
// and the one in jsTestDriver.conf.
var source_files = [
"stacktrace.js",
"dashed-canvas.js",
"dygraph-options.js",
"dygraph-layout.js",
"dygraph-canvas.js",
"dygraph.js",
"dygraph-utils.js",
"dygraph-gviz.js",
"dygraph-interaction-model.js",
"dygraph-tickers.js",
"dygraph-plugin-base.js",
"plugins/annotations.js",
"plugins/axes.js",
"plugins/chart-labels.js",
"plugins/grid.js",
"plugins/legend.js",
"plugins/range-selector.js",
"dygraph-plugin-install.js",
"dygraph-options-reference.js", // Shouldn't be included in generate-combined.sh
"datahandler/datahandler.js",
"datahandler/default.js",
"datahandler/default-fractions.js",
"datahandler/bars.js",
"datahandler/bars-error.js",
"datahandler/bars-custom.js",
"datahandler/bars-fractions.js"
];
for (var i = 0; i < source_files.length; i++) {
document.write('<script type="text/javascript" src="' + script.replace('dygraph-dev.js', source_files[i]) + '"></script>\n');
}
})();