* fix(#10896): correct typing for doughnut, pie, and polarArea charts
* formatting
spacing: number;
}
-export interface DoughnutAnimationOptions {
+export interface DoughnutAnimationOptions extends AnimationSpec<'doughnut'> {
/**
* If true, the chart will animate in with a rotation animation. This property is in the options.animation object.
* @default true
-import { Chart } from '../../src/types.js';
+import { Chart, ChartOptions, ChartType, DoughnutControllerChartOptions } from '../../src/types.js';
const chart = new Chart('test', {
type: 'bar',
}
}
});
+
+const doughnutOptions: DoughnutControllerChartOptions = {
+ circumference: 360,
+ cutout: '50%',
+ offset: 0,
+ radius: 100,
+ rotation: 0,
+ spacing: 0,
+ animation: false,
+};
+
+const chartOptions: ChartOptions<ChartType> = doughnutOptions;