/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/controller.scatter/showLine/changed.js
34 строки
598 B
stockiNail
Fix toggling showLine option on scatter controller (#11334)
08 июн 2023, 15:53
Не верифицирован
08 июн 2023, 15:53
ec7be48
Код
Авторство
О чём код?
module.exports = { description: 'showLine option should draw a line if true', config: { type: 'scatter', data: { datasets: [{ data: [{x: 10, y: 15}, {x: 15, y: 10}], pointRadius: 10, backgroundColor: 'red', label: 'dataset1' }], }, options: { scales: { x: { display: false }, y: { display: false } } } }, options: { canvas: { width: 256, height: 256 }, run(chart) { chart.options.showLine = true; chart.update(); } } };