// Custom react-plotly.js component built on the cartesian-only Plotly bundle. // The app only renders "scatter" and "heatmap" traces, both of which live in // the cartesian bundle, so we avoid pulling in the full plotly.js (3D/gl, // mapbox, geo, ...) which dominates the JS payload. // Not using TypeScript, as plotly is not TypeScript :( import createPlotlyComponent from "react-plotly.js/factory"; import Plotly from "plotly.js-cartesian-dist-min"; const Plot = createPlotlyComponent(Plotly); export default Plot;