/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/core.scale/grid/scriptable-borderDash.js
39 строк
771 B
Jacco van den Berg
Put the border opts in own object (#10571)
18 авг 2022, 16:07
Не верифицирован
18 авг 2022, 16:07
3eb9477
Код
Авторство
О чём код?
module.exports = { config: { type: 'scatter', options: { scales: { x: { position: {y: 0}, min: -10, max: 10, border: { dash: (ctx) => ctx.index % 2 === 0 ? [6, 3] : [], }, grid: { color: 'lightGray', lineWidth: 3, }, ticks: { display: false }, }, y: { position: {x: 0}, min: -10, max: 10, border: { dash: (ctx) => ctx.index % 2 === 0 ? [6, 3] : [], }, grid: { color: 'lightGray', lineWidth: 3, }, ticks: { display: false }, } } } } };