You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we use Plotly.js in its default distribution (the package plotly.js-dist on NPM), which ships a 7.2M (1.7M gzipped) bundle! The partial bundle in the package plotly.js-cartesian-dist-min is 1.0M (343K gzipped), which is much better but still very heavy. I also tried creating a custom partial bundle (minified, of course) with only the box plot functionality (because that is the only functionality that we use), but this was still 690K (235K gzipped) and I haven't been able to include it in Aspine without also pulling in the devDependencies of Webpack and the full Plotly.js source code.
Considering that we only use Plotly.js for fairly lightweight box plots, maybe we should look into a more lightweight and simple library. As a stopgap solution, the lean branch uses the comparably light plotly.js-caresian-dist-min bundle.
Alternatives to Plotly.js:
D3: 243K (80K gzipped) - this is actually the library that powers Plotly.
Currently, we use Plotly.js in its default distribution (the package
plotly.js-dist
on NPM), which ships a 7.2M (1.7M gzipped) bundle! The partial bundle in the packageplotly.js-cartesian-dist-min
is 1.0M (343K gzipped), which is much better but still very heavy. I also tried creating a custom partial bundle (minified, of course) with only the box plot functionality (because that is the only functionality that we use), but this was still 690K (235K gzipped) and I haven't been able to include it in Aspine without also pulling in thedevDependencies
of Webpack and the full Plotly.js source code.Considering that we only use Plotly.js for fairly lightweight box plots, maybe we should look into a more lightweight and simple library. As a stopgap solution, the
lean
branch uses the comparably lightplotly.js-caresian-dist-min
bundle.Alternatives to Plotly.js:
The text was updated successfully, but these errors were encountered: