File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 44
55var Fuse = require ( 'fuse.js' ) ;
66var mocks = require ( '../../build/test_dashboard_mocks.json' ) ;
7+ var credentials = require ( '../../build/credentials.json' ) ;
78
89// put d3 in window scope
910var d3 = window . d3 = Plotly . d3 ;
@@ -14,8 +15,15 @@ var Tabs = {
1415 // Set plot config options
1516 setPlotConfig : function ( ) {
1617 Plotly . setPlotConfig ( {
18+
1719 // use local topojson files
1820 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
1927 logging : 2
2028 } ) ;
2129 } ,
Original file line number Diff line number Diff line change 55< script type ="text/javascript " src ="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG "> </ script >
66< script type ="text/javascript " src ="../plotly.js/build/plotly.js " charset ="utf-8 "> </ script >
77< 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 >
89< script type ="text/javascript " src ="./main.js "> </ script >
910</ body >
1011</ html >
You can’t perform that action at this time.
0 commit comments