Vue3-Charts

Data visualization in Vue3 made easy

README


Vue3-Charts

Data visualization in Vue3 made easy

Vue3-Charts is a SVG-based charting library that is very easy to use and highly customizable.

GitHub


Vue3-Charts


Data visualization in Vue3 made easy


- 💡 Intuitive
- 🔌 Extensible
- 📦 Extremely easy to use

Documentation


To learn more about Vue3-Charts read the documentation here

Here is a basic example:


  1. ```xml
  2. <div>
  3.   <Chart :data="data" :margin="margin" :direction="direction">
  4.     <template #layers>
  5.       <Grid strokeDasharray="2,2" />
  6.       <Bar :dataKeys="['name', 'pl']" :barStyle="{ fill: '#90e0ef' }" />
  7.       <Bar :dataKeys="['name', 'avg']" :barStyle="{ fill: '#0096c7' }" />
  8.       <Line :dataKeys="['name', 'avg']" type="step" />
  9.     </template>
  10.   </Chart>
  11. </div>
  12. ```

  1. ```js
  2. <script>
  3. import { defineComponent } from 'vue'
  4. import { plByMonth } from '@/data'
  5. import { Chart, Grid, Bar, Line } from 'vue3-charts'

  6. export default defineComponent({
  7.   name: 'Main',
  8.   components: { Chart, Grid, Bar, Line },
  9.   setup() {
  10.     const data = ref(plByMonth)

  11.     const direction = ref('horizontal')
  12.     const margin = ref({
  13.       left: 0,
  14.       top: 20,
  15.       right: 20,
  16.       bottom: 0
  17.     })

  18.     return {data, margin, direction}
  19.   }
  20. })
  21. </script>
  22. ```


Components List


This project is still in early development. New charts will be added regularly.

- [x] Line Chart
- [x] Area Chart
- [x] Stacked Area Chart
- [x] Column Chart
- [x] Stacked Column Chart
- [x] Bar Chart
- [x] Stacked Bar Chart
- [ ] Scatter Plot
- [x] Treemap

License


Copyright (c) 2021 Vue3-Charts Contributors
Licensed under the MIT license.