Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dumptyd committed Sep 1, 2024
1 parent 96d18c7 commit 3427b08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ pnpm add vue-css-donut-chart
<vc-donut :sections="sections">Basic donut</vc-donut>
</template>
<script setup>
// import the styles in a central place (eg: main.js, App.vue) to avoid repetition
import 'vue-css-donut-chart/dist/vcdonut.css';
import { VcDonut } from 'vue-css-donut-chart';
const sections = [{ value: 25 }, { value: 25 }];
</script>
Expand Down Expand Up @@ -217,6 +220,10 @@ const otherProps: DonutChartProps = {
</script>
```

### Types not working?

The types for this component are generated using a fairly recent version of Vue (as of writing this, it's Vue 3.4.21). If they are not working for you, make sure to update your Vue 3 version to the latest.

## Contributing

**Issues** &ndash; https://github.com/dumptyd/vue-css-donut-chart/issues
Expand Down

0 comments on commit 3427b08

Please sign in to comment.