File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ var d3 = window.d3 = Plotly.d3;
11
11
// Our gracious testing object
12
12
var Tabs = {
13
13
14
+ // Set plot config options
15
+ setPlotConfig : function ( ) {
16
+
17
+ // use local topojson files
18
+ Plotly . setPlotConfig ( { topojsonURL : '../../dist/topojson/' } ) ;
19
+ } ,
20
+
14
21
// Return the specified plot container (or default one)
15
22
getGraph : function ( id ) {
16
23
id = id || 'graph' ;
@@ -110,6 +117,7 @@ var Tabs = {
110
117
var interval = setInterval ( function ( ) {
111
118
if ( window . Plotly ) {
112
119
clearInterval ( interval ) ;
120
+ Tabs . setPlotConfig ( ) ;
113
121
Tabs . onReload ( ) ;
114
122
}
115
123
} , 100 ) ;
@@ -125,6 +133,8 @@ setInterval(function() {
125
133
window . fullData = window . gd . _fullData ;
126
134
} , 1000 ) ;
127
135
136
+ // Set plot config on first load
137
+ Tabs . setPlotConfig ( ) ;
128
138
129
139
// Mocks search and plotting
130
140
var f = new Fuse ( mocks , {
You can’t perform that action at this time.
0 commit comments