-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.js
29 lines (29 loc) · 1023 Bytes
/
main.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
requirejs.config({
// https://github.com/vega/vega-embed/issues/8
paths: {
vega: "vendor/vega.min",
"vega-lite": "vendor/vega-lite.min",
"vega-embed": "vendor/vega-embed.min"
},
shim: {
"vega-lite": { deps: ["vega"] },
"vega-embed": { deps: ["vega-lite"] }
}
});
requirejs(
["js/display", "js/feature_computation", "vega", "vega-lite", "vega-embed"],
function(display, feature_computation, vega, vegaLite, vegaEmbed) {
// DON'T CHANGE THESE LINES unless you know what you're doing -- the
// "var *JSON = {};" lines are expected to contain that text by Qurro's
// python code, which replaces the empty {}s with JSON objects that
// contain all of the data needed for the Qurro visualization.
var rankPlotJSON = {};
var samplePlotJSON = {};
var countJSON = {};
new display.RRVDisplay(
rankPlotJSON,
samplePlotJSON,
countJSON
).makePlots();
}
);