Files
Chart.js/src/controllers/controller.pie.js
Jukka Kurkela 8d6e87881a Relocate chart type and dataset type defaults (#8563)
* Relocate chart type and dataset type defaults

* Update types

* Separate overrides and descriptors

* Update derived sample, use merge for inherit

* Don't merge overrides

* Review update
2021-03-06 10:34:52 -05:00

26 lines
538 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 = {
// 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
radius: '100%'
};