vue3-plotly
Thin vue wrapper for plotly.js It provides: all plotly.js methods and events data reactivity Redraw o
102,047
13
| Install | |
|---|---|
npm install vue3-plotly |
|
| Latest Version: | 0.0.7 |
| Vue: | 3 |
| License: | ISC |
| Last Updated: | Oct 17, 2023 |
| Links: | GitHub · npm |
Maintainer: pietervanhalem
vue3-plotly
Usage
<VuePlotly :data="data" :layout="layout" :display-mode-bar="false"></VuePlotly>
import { VuePlotly } from 'vue3-plotly'
export default {
components: {
Plotly
},
data() {
return {
data:[{
x: [1,2,3,4],
y: [10,15,13,17],
type:"scatter"
}],
layout:{
title: "My graph"
}
}
}
}
API
Props
-
dataArray (optional)Data to be displayed
-
layoutObject (optional)Graphic layout
-
idString (optional)Id of the root HTML element of the component.
-
Others:
Plotly component implements the transparent wrapper pattern:All other props will be passed as plotly graphic option.
Installation
npm install vue3-plotly
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Version History
| Version | Released | License |
|---|---|---|
| 0.0.7 | ISC | |
| 0.0.6 | ISC | |
| 0.0.5 | ISC | |
| 0.0.4 | ISC | |
| 0.0.3 | ISC | |
| 0.0.2 | ISC | |
| 0.0.1 | ISC |