📈 vue wrapper for plotly.js
It provides:
https://david-desmaisons.github.io/vue-plotly/
import { Plotly } from 'vue-plotly'export default { components: { Plotly }, data:{ data:[{ x: [1,2,3,4], y: [10,15,13,17], type:"scatter" }], layout:{ title: "My graph" } } }
dataArray (optional)
Data to be displayed
layoutObject (optional)
Graphic layout
idString (optional)
Id of the root HTML element of the component.
Plotly component implements the transparent wrapper pattern:
All other props will be passed as plotly graphic option.
npm install vue-plotly
npm install
npm run serve
npm run build
npm run test
npm run lint
npm run test:unit