VanOord / vue3-plotly

MIT License
10 stars 8 forks source link

vue3-plotly

Thin vue wrapper for plotly.js

It provides:

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

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