/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/plugin.subtitle/basic.js
40 строк
708 B
Jukka Kurkela
New plugin: subtitle (#9294)
20 июн 2021, 14:34
Не верифицирован
20 июн 2021, 14:34
c6976e8
Код
Авторство
О чём код?
module.exports = { config: { type: 'scatter', data: { datasets: [{ data: [{x: 0, y: 0}, {x: 1, y: 1}, {x: 2, y: 2}], backgroundColor: 'red', radius: 1, hoverRadius: 0 }], }, options: { scales: { x: {display: false}, y: {display: false} }, plugins: { legend: false, title: { display: true, text: 'Title Text', }, subtitle: { display: true, text: 'SubTitle Text', }, filler: false, tooltip: false }, }, }, options: { spriteText: true, canvas: { height: 400, width: 400 } } };