David-Desmaisons / vue-plotly

📈 vue wrapper for plotly.js
https://david-desmaisons.github.io/vue-plotly/
MIT License
255 stars 74 forks source link

Add config prop #15

Open curio77 opened 4 years ago

curio77 commented 4 years ago

This way, a config object that might otherwise be passed to Plotly.setPlotConfig() or as the last argument to Plotly.newPlot(), can be passed to the Plotly Vue component. It is still possible to pass individial config props that get merged into the resulting config object, but using the new config prop allows for encapsulation of configuration as well as reuse and may help keep things tidier.