@clalarco/vue3-plotly
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@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/

Readme

Keywords

Package Sidebar

Install

npm i @clalarco/vue3-plotly

Weekly Downloads

16

Version

0.1.5

License

MIT

Unpacked Size

6.52 kB

Total Files

8

Last publish

Collaborators

  • clalarco