Unverified Commit 05294d64 authored by Sarah Otts's avatar Sarah Otts Committed by GitHub

Merge pull request #5075 from seotts/reduce-plotly-size

Create Plotly bundle to load only choropleth
parents e0519b88 ec3a205d
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 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