/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/plugin.legend/pointStyle-width/legend-pointStyle-width-default.json
111 строк
3 KB
Dominic Jean
enable pointStyleWidth for all legend style (#10639)
01 сен 2022, 13:37
Не верифицирован
01 сен 2022, 13:37
0edb2ac
Код
Авторство
О чём код?
{ "config": { "type": "line", "data": { "labels": ["A", "B", "C"], "datasets": [{ "data": [10, 10, 10], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "line" }, { "data": [15, 15, 15], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "triangle" }, { "data": [20, 20, 20], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "rectRounded" }, { "data": [30, 30, 30], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "" }, { "data": [40, 40, 40], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "rect" }, { "data": [25, 25, 25], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "rectRot" }, { "data": [35, 35, 35], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "crossRot" }, { "data": [45, 45, 45], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "cross" }, { "data": [50, 50, 50], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "star" }, { "data": [55, 55, 55], "backgroundColor": "#00ff00", "borderColor": "#ff0000", "borderWidth": 1, "label": "", "pointStyle": "dash" }] }, "options": { "plugins": { "legend": { "display": true, "labels": { "usePointStyle": true } } }, "scales": { "x": { "display": false }, "y": { "display": false } } } }, "options": { "canvas": { "height": 512, "width": 1024 } } }