File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
var Fuse = require ( 'fuse.js' ) ;
6
6
var mocks = require ( '../../build/test_dashboard_mocks.json' ) ;
7
+ var credentials = require ( '../../build/credentials.json' ) ;
7
8
8
9
// put d3 in window scope
9
10
var d3 = window . d3 = Plotly . d3 ;
@@ -14,8 +15,15 @@ var Tabs = {
14
15
// Set plot config options
15
16
setPlotConfig : function ( ) {
16
17
Plotly . setPlotConfig ( {
18
+
17
19
// use local topojson files
18
20
topojsonURL : '../../dist/topojson/' ,
21
+
22
+ // register mapbox access token
23
+ // run `npm run preset` if you haven't yet
24
+ mapboxAccessToken : credentials . MAPBOX_ACCESS_TOKEN ,
25
+
26
+ // show all logs in console
19
27
logging : 2
20
28
} ) ;
21
29
} ,
Original file line number Diff line number Diff line change 5
5
< script type ="text/javascript " src ="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG "> </ script >
6
6
< script type ="text/javascript " src ="../plotly.js/build/plotly.js " charset ="utf-8 "> </ script >
7
7
< script type ="text/javascript " src ="../plotly.js/dist/plotly-geo-assets.js " charset ="utf-8 "> </ script >
8
+ < script type ="text/javascript " src ="../plotly.js/build/set_plot_config.js "> </ script >
8
9
< script type ="text/javascript " src ="./main.js "> </ script >
9
10
</ body >
10
11
</ html >
You can’t perform that action at this time.
0 commit comments