/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.9.1
src/controllers/controller.pie.js
25 строк
538 B
Jukka Kurkela
Relocate chart type and dataset type defaults (#8563)
06 мар 2021, 18:34
Не верифицирован
06 мар 2021, 18:34
8d6e878
Код
Авторство
О чём код?
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%' };