Skip to content

Conversation

@LittleLama
Copy link

Added a property bundle to vue3-plotly : it can take values basic/cartesian/geo/gl3d/gl2d/mapbox/finance/strict like the different Plotly.js partial bundles https://github.com/plotly/plotly.js/blob/master/dist/README.md#plotlyjs-basic . It can make builds lighter. No value loads full Plotly.js

Added dynamic import so builds make a file for Plotly and website is lighter to load.

Added event listeners : now you can pass as property an action like @afterplot="graphDrawCallback". Event names are the same as Plotly.js

@LittleLama LittleLama mentioned this pull request Oct 17, 2023
@LittleLama
Copy link
Author

When you use Nuxt, I make sens to put

inside a tag and replace this.$el.on( by this.$el.addEventListener

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 this pull request may close these issues.

1 participant