mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
28 lines
577 B
JavaScript
28 lines
577 B
JavaScript
import DoughnutController from './controller.doughnut';
|
|
|
|
// Pie charts are Doughnut chart with different defaults
|
|
export default class PieController extends DoughnutController {
|
|
|
|
}
|
|
|
|
PieController.id = 'pie';
|
|
|
|
/**
|
|
* @type {any}
|
|
*/
|
|
PieController.defaults = {
|
|
datasets: {
|
|
// The percentage of the chart that we cut out of the middle.
|
|
cutout: 0,
|
|
|
|
// The rotation of the chart, where the first data arc begins.
|
|
rotation: 0,
|
|
|
|
// The total circumference of the chart.
|
|
circumference: 360,
|
|
|
|
// The outr radius of the chart
|
|
outerRadius: '100%'
|
|
}
|
|
};
|