mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-13 11:46:55 +01:00
There are small typos in: - docs/general/colors.md - src/controllers/controller.doughnut.js - src/controllers/controller.pie.js - src/scales/scale.time.js Fixes: - Should read `outer` rather than `outr`. - Should read `indistinguishable` rather than `indistiguishable`. - Should read `guesstimation` rather than `guestimation`. Signed-off-by: Tim Gates <tim.gates@iress.com>
25 lines
555 B
JavaScript
25 lines
555 B
JavaScript
import DoughnutController from './controller.doughnut.js';
|
|
|
|
// Pie charts are Doughnut chart with different defaults
|
|
export default class PieController extends DoughnutController {
|
|
|
|
static id = 'pie';
|
|
|
|
/**
|
|
* @type {any}
|
|
*/
|
|
static 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 outer radius of the chart
|
|
radius: '100%'
|
|
};
|
|
}
|