Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a lighter library instead of Plotly.js #122

Closed
psvenk opened this issue May 18, 2020 · 0 comments · Fixed by #125
Closed

Use a lighter library instead of Plotly.js #122

psvenk opened this issue May 18, 2020 · 0 comments · Fixed by #125

Comments

@psvenk
Copy link
Member

psvenk commented May 18, 2020

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant