/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/controller.radar/borderCapStyle/scriptable.js
61 строка
1 KB
Jukka Kurkela
Update eslint-config-chartjs to v0.3.0 (#8406)
10 фев 2021, 16:21
Не верифицирован
10 фев 2021, 16:21
ddfbcf7
Код
Авторство
О чём код?
module.exports = { config: { type: 'radar', data: { labels: [0, 1, 2], datasets: [ { // option in dataset data: [null, 3, 3], borderCapStyle: function(ctx) { var index = (ctx.datasetIndex % 2); return index === 0 ? 'round' : index === 1 ? 'square' : 'butt'; } }, { // option in element (fallback) data: [null, 2, 2] }, { // option in element (fallback) data: [null, 1, 1] } ] }, options: { elements: { line: { borderCapStyle: function(ctx) { var index = (ctx.datasetIndex % 3); return index === 0 ? 'round' : index === 1 ? 'square' : 'butt'; }, borderColor: '#ff0000', borderWidth: 32, fill: false }, point: { radius: 10 } }, layout: { padding: 32 }, scales: { r: { display: false, beginAtZero: true } } } }, options: { canvas: { height: 512, width: 512 } } };