vue-3d-charts
v0.0.3
Published
[](https://opensource.org/licenses/MIT) <a href="https://www.npmjs.com/package/vue-3d-charts"><img src="https://img.shields.io/npm/v/vue-3d-charts?color=%2382DBCA&logo=data:image/svg%2bxm
Readme
vue-3d-charts
WARNING: Work In Progress!!!
3D chart library written in Vue 3 and TresJS.
Supported Charts:
- Bar Chart
- Line Chart (Todo)
- Heatmap (Todo)
- Pie Chart (Todo)
Installation
npm i vue-3d-chartsGetting Started
Bar Chart
<template>
<BarChart
:data="data"
:config="config"
style="width: 100vw; height: 100vh;"
/>
</template>
<script setup lang="ts">
import { BarChart, type ChartConfig } from 'vue-3d-charts';
const data = [
[5, 2, 4, 6, 2],
[9, 2, 3, 1, 3],
[5, 5, 3, 1, 1],
[4, 2, 5, 1, 7],
];
const config: ChartConfig = {
labels: {
x: 'Season',
y: 'Mean Temperature',
z: 'Time Period',
color: 'red',
},
autoRotate: true,
};
</script>For Developers
npm installCompile and Hot-Reload for Development
npm run devType-Check, Compile and Minify for Production
npm run buildLint with ESLint
npm run lint