UNPKG

@mozaic-ds/chart

Version:

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

15 lines (10 loc) 321 B
import { ChartData, Plugin } from 'chart.js'; type AnyObject = Record<string, any>; export interface DoughnutData { tooltipLabel?: number; value: number; unit: string; rate: number; } export type DoughnutPlugin = Plugin<'doughnut', AnyObject>; export type DoughnutChartData = ChartData<'doughnut', number[]>;