@clalarco/vue3-plotly
v0.1.5
Published
Vue 3 component for plotly.js, with Typescript support
Downloads
475
Readme
@clalarco/vue3-plotly
Thin Vue 3 wrapper for plotly.js
Based on project fromVanOord.
- Typescript support
- Improves Vue implementation based on
<script setup>
- Using Vite for building process
Also, the documentation and the demo page (source code) are published at GitHub.
Usage
Usage with Single-file Component (SFC)
Usage from another component:
<Template>
<VuePlotly :data="data" :layout="layout"></VuePlotly>
</Template>
<script setup>
import { VuePlotly } from 'vue3-plotly';
const data = [ ... ];
const layout = { ... };
</script>
More documentation at https://clalarco.github.io/vue3-plotly/