Commit ec3a205d authored by seotts's avatar seotts

Create Plotly bundle to load only choropleth

lint
parent f9864e83
import Plot from 'react-plotly.js'; const Plotly = require('plotly.js/lib/core');
// Load in the trace type for choropleth
Plotly.register([
require('plotly.js/lib/choropleth')
]);
// create plotly bundle that only has choropleth plots
import createPlotlyComponent from 'react-plotly.js/factory';
const Plot = createPlotlyComponent(Plotly);
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment