/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.1.0
src/controllers/controller.pie.js
24 строки
554 B
Dan Onoshko
refactor: move to esm in sources (#10879)
17 ноя 2022, 16:08
Не верифицирован
17 ноя 2022, 16:08
5144127
Код
Авторство
О чём код?
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 outr radius of the chart radius: '100%' }; }