repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/vertical-value.js | test/fixtures/core.scale/title/vertical-value.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
y: {
type: 'linear',
position: {
x: 40
},
min: 0,
max: 100,
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: 'vertical'
}
},
x: {
type: 'linear',
position: 'bottom',
min: 0,
max: 100,
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: 'horizontal'
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/align-end.js | test/fixtures/core.scale/title/align-end.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
top: {
type: 'linear',
position: 'top',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: 'top'
}
},
left: {
type: 'linear',
position: 'left',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: 'left'
}
},
bottom: {
type: 'linear',
position: 'bottom',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: 'bottom'
}
},
right: {
type: 'linear',
position: 'right',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: 'right'
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/vertical-center.js | test/fixtures/core.scale/title/vertical-center.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
y: {
type: 'linear',
position: 'center',
min: 0,
max: 100,
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: 'vertical'
}
},
x: {
type: 'linear',
position: 'bottom',
min: 0,
max: 100,
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: 'horizontal'
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/horizontal-center.js | test/fixtures/core.scale/title/horizontal-center.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
y: {
type: 'linear',
position: 'left',
min: 0,
max: 100,
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: 'vertical'
}
},
x: {
type: 'linear',
position: 'center',
min: 0,
max: 100,
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: 'horizontal'
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/multi-line/align-start.js | test/fixtures/core.scale/title/multi-line/align-start.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
top: {
type: 'linear',
position: 'top',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'start',
text: ['top', 'line2', 'line3']
}
},
left: {
type: 'linear',
position: 'left',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'start',
text: ['left', 'line2', 'line3']
}
},
bottom: {
type: 'linear',
position: 'bottom',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'start',
text: ['bottom', 'line2', 'line3']
}
},
right: {
type: 'linear',
position: 'right',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'start',
text: ['right', 'line2', 'line3']
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/multi-line/default.js | test/fixtures/core.scale/title/multi-line/default.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
top: {
type: 'linear',
position: 'top',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: ['top', 'line2', 'line3']
}
},
left: {
type: 'linear',
position: 'left',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: ['left', 'line2', 'line3']
}
},
bottom: {
type: 'linear',
position: 'bottom',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: ['bottom', 'line2', 'line3']
}
},
right: {
type: 'linear',
position: 'right',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
text: ['right', 'line2', 'line3']
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/title/multi-line/align-end.js | test/fixtures/core.scale/title/multi-line/align-end.js | module.exports = {
config: {
type: 'line',
options: {
events: [],
scales: {
top: {
type: 'linear',
position: 'top',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: ['top', 'line2', 'line3']
}
},
left: {
type: 'linear',
position: 'left',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: ['left', 'line2', 'line3']
}
},
bottom: {
type: 'linear',
position: 'bottom',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: ['bottom', 'line2', 'line3']
}
},
right: {
type: 'linear',
position: 'right',
ticks: {
display: false
},
grid: {
display: false
},
title: {
display: true,
align: 'end',
text: ['right', 'line2', 'line3']
}
},
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/grid/colors.js | test/fixtures/core.scale/grid/colors.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['1', '2', '3', '4', '5', '6'],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3]
}],
},
options: {
scales: {
x: {
ticks: {
display: false
},
border: {
color: 'blue',
width: 2,
},
grid: {
color: 'green',
drawTicks: false,
}
},
y: {
ticks: {
display: false
},
border: {
color: 'black',
width: 2,
},
grid: {
color: 'red',
drawTicks: false,
}
}
}
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/grid/scriptable-borderDash.js | test/fixtures/core.scale/grid/scriptable-borderDash.js | 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
},
}
}
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.scale/grid/border-over-grid.js | test/fixtures/core.scale/grid/border-over-grid.js | module.exports = {
config: {
type: 'scatter',
options: {
scales: {
x: {
position: {y: 0},
min: -10,
max: 10,
border: {
color: 'black',
width: 5
},
grid: {
color: 'lightGray',
lineWidth: 3,
},
ticks: {
display: false
},
},
y: {
position: {x: 0},
min: -10,
max: 10,
border: {
color: 'black',
width: 5
},
grid: {
color: 'lightGray',
lineWidth: 3,
},
ticks: {
display: false
},
}
}
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderDash/value.js | test/fixtures/controller.radar/borderDash/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: '#ff0000',
borderDash: [5]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderDash: [10],
fill: false
},
point: {
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderDash/scriptable.js | test/fixtures/controller.radar/borderDash/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderDash: function(ctx) {
return ctx.datasetIndex === 0 ? [5] : [10];
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderDash: function(ctx) {
return ctx.datasetIndex === 0 ? [5] : [10];
},
fill: true,
},
point: {
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/270.js | test/fixtures/controller.radar/startAngle/270.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 270,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/135.js | test/fixtures/controller.radar/startAngle/135.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 135,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/180.js | test/fixtures/controller.radar/startAngle/180.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 180,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/315.js | test/fixtures/controller.radar/startAngle/315.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 315,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/default.js | test/fixtures/controller.radar/startAngle/default.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/225.js | test/fixtures/controller.radar/startAngle/225.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 225,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/90.js | test/fixtures/controller.radar/startAngle/90.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 90,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/startAngle/45.js | test/fixtures/controller.radar/startAngle/45.js | module.exports = {
config: {
type: 'radar',
data: {
datasets: [{
data: [6, 3, 2, 3],
borderWidth: 3,
borderColor: 'blue'
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
min: 0,
startAngle: 45,
pointLabels: {
display: true
},
grid: {
circular: true
}
}
}
}
},
options: {
spriteText: true
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/radius/value.js | test/fixtures/controller.radar/radius/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#0000ff',
pointRadius: 6
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
backgroundColor: '#00ff00',
radius: 3,
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/radius/indexable.js | test/fixtures/controller.radar/radius/indexable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#00ff00',
pointRadius: [
1, 2, 3, 4, 5, 6
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
backgroundColor: '#ff0000',
radius: [
6, 5, 4, 3, 2, 1
],
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/radius/scriptable.js | test/fixtures/controller.radar/radius/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#0000ff',
pointRadius: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 10
: value > -4 ? 5
: 2;
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
backgroundColor: '#ff0000',
radius: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 2
: value > -4 ? 5
: 10;
},
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderDashOffset/value.js | test/fixtures/controller.radar/borderDashOffset/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [1, 1, 1, 1, 1, 1],
borderColor: '#ff0000',
borderDash: [20],
borderDashOffset: 5.0
},
{
// option in element (fallback)
data: [0, 0, 0, 0, 0, 0]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderDash: [20],
borderDashOffset: 0.0, // default
fill: false
},
point: {
radius: 10
}
},
layout: {
padding: 32
},
scales: {
r: {
display: false,
min: -1
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderDashOffset/scriptable.js | test/fixtures/controller.radar/borderDashOffset/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3],
datasets: [
{
// option in dataset
data: [1, 1, 1, 1],
borderColor: '#ff0000',
borderDash: [20],
borderDashOffset: function(ctx) {
return ctx.datasetIndex === 0 ? 5.0 : 0.0;
}
},
{
// option in element (fallback)
data: [0, 0, 0, 0]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderDash: [20],
borderDashOffset: function(ctx) {
return ctx.datasetIndex === 0 ? 5.0 : 0.0;
},
fill: false
},
point: {
radius: 10
}
},
layout: {
padding: 32
},
scales: {
r: {
display: false,
min: -1
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderColor/value.js | test/fixtures/controller.radar/borderColor/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: '#ff0000'
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
borderColor: '#0000ff',
fill: false
},
point: {
borderColor: '#0000ff',
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderColor/scriptable.js | test/fixtures/controller.radar/borderColor/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: function(ctx) {
var index = ctx.index;
return index === 0 ? '#ff0000'
: index === 1 ? '#00ff00'
: '#0000ff';
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
borderColor: function(ctx) {
var index = ctx.index;
return index === 0 ? '#ff0000'
: index === 1 ? '#00ff00'
: '#0000ff';
},
borderWidth: 10,
fill: false
},
point: {
borderColor: '#ff0000',
borderWidth: 10,
radius: 16
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBackgroundColor/value.js | test/fixtures/controller.radar/pointBackgroundColor/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#ff0000'
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
backgroundColor: '#00ff00',
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBackgroundColor/indexable.js | test/fixtures/controller.radar/pointBackgroundColor/indexable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00',
'#ff00ff',
'#000000'
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
backgroundColor: [
'#ff88ff',
'#888888',
'#ff8800',
'#00ff88',
'#8800ff',
'#ffff88'
],
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBackgroundColor/scriptable.js | test/fixtures/controller.radar/pointBackgroundColor/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 0 ? '#00ff00'
: value > -8 ? '#0000ff'
: '#ff00ff';
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
backgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff00ff'
: value > 0 ? '#0000ff'
: value > -8 ? '#ff0000'
: '#00ff00';
},
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointStyle/value.js | test/fixtures/controller.radar/pointStyle/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#ff0000',
pointStyle: 'star',
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
backgroundColor: '#00ff00',
pointStyle: 'rect',
radius: 10,
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointStyle/indexable.js | test/fixtures/controller.radar/pointStyle/indexable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5, 6],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5, 0],
pointBackgroundColor: '#ff0000',
pointBorderColor: '#ff0000',
pointStyle: [
'circle',
'cross',
'crossRot',
'dash',
'line',
'rect',
false
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5, -4],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
backgroundColor: '#00ff00',
borderColor: '#00ff00',
pointStyle: [
'line',
'rect',
'rectRounded',
'rectRot',
'star',
'triangle'
],
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointStyle/scriptable.js | test/fixtures/controller.radar/pointStyle/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#ff0000',
pointBorderColor: '#ff0000',
pointStyle: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? 'rect'
: value > 0 ? 'star'
: value > -8 ? 'cross'
: 'triangle';
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
backgroundColor: '#0000ff',
borderColor: '#0000ff',
pointStyle: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? 'triangle'
: value > 0 ? 'cross'
: value > -8 ? 'star'
: 'rect';
},
radius: 10,
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBorderColor/value.js | test/fixtures/controller.radar/pointBorderColor/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#ff0000'
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
borderColor: '#00ff00',
borderWidth: 5,
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBorderColor/indexable.js | test/fixtures/controller.radar/pointBorderColor/indexable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00',
'#ff00ff',
'#000000'
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
borderColor: [
'#ff88ff',
'#888888',
'#ff8800',
'#00ff88',
'#8800ff',
'#ffff88'
],
borderWidth: 5,
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBorderColor/scriptable.js | test/fixtures/controller.radar/pointBorderColor/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 0 ? '#00ff00'
: value > -8 ? '#0000ff'
: '#ff00ff';
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
borderColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff00ff'
: value > 0 ? '#0000ff'
: value > -8 ? '#ff0000'
: '#00ff00';
},
borderWidth: 5,
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/backgroundColor/value.js | test/fixtures/controller.radar/backgroundColor/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: '#ff0000'
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
backgroundColor: '#00ff00',
fill: true,
},
point: {
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/backgroundColor/scriptable.js | test/fixtures/controller.radar/backgroundColor/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: function(ctx) {
var index = ctx.index;
return index === 0 ? '#ff0000'
: index === 1 ? '#00ff00'
: '#ff00ff';
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
backgroundColor: function(ctx) {
var index = ctx.index;
return index === 0 ? '#ff0000'
: index === 1 ? '#00ff00'
: '#ff00ff';
},
fill: true,
},
point: {
backgroundColor: '#0000ff',
radius: 10
}
},
scales: {
r: {
display: false,
min: -15,
},
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/fill/value.js | test/fixtures/controller.radar/fill/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: '#ff0000',
fill: false
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
backgroundColor: '#00ff00',
fill: true
}
},
scales: {
r: {
display: false,
min: -15
}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/fill/scriptable.js | test/fixtures/controller.radar/fill/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: '#ff0000',
fill: function(ctx) {
return ctx.datasetIndex === 0 ? true : false;
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
backgroundColor: '#00ff00',
fill: function(ctx) {
return ctx.datasetIndex === 0 ? true : false;
}
}
},
scales: {
r: {
display: false,
min: -15
}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderCapStyle/value.js | test/fixtures/controller.radar/borderCapStyle/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2],
datasets: [
{
// option in dataset
data: [null, 3, 3],
borderCapStyle: 'round'
},
{
// option in dataset
data: [null, 2, 2],
borderCapStyle: 'square'
},
{
// option in element (fallback)
data: [null, 1, 1]
}
]
},
options: {
elements: {
line: {
borderCapStyle: 'butt',
borderColor: '#00ff00',
borderWidth: 32,
fill: false
},
point: {
radius: 10
}
},
layout: {
padding: 32
},
scales: {
r: {
display: false,
beginAtZero: true
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderCapStyle/scriptable.js | test/fixtures/controller.radar/borderCapStyle/scriptable.js | 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
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/showLine/value.js | test/fixtures/controller.radar/showLine/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: '#ff0000',
fill: false,
showLine: true
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
},
{
data: [1, 1, 1, 1, 1, 1],
showLine: true,
backgroundColor: 'rgba(0,0,255,0.5)'
}
]
},
options: {
showLine: false,
elements: {
line: {
borderColor: '#ff0000',
backgroundColor: 'rgba(0,255,0,0.5)',
fill: true
}
},
scales: {
r: {
display: false,
min: -15
}
},
plugins: {
legend: false,
title: false,
tooltip: false,
filler: true
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderWidth/zero.js | test/fixtures/controller.radar/borderWidth/zero.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
backgroundColor: '#0000ff',
borderColor: '#0000ff',
borderWidth: 0,
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderWidth: 1,
fill: false
},
point: {
backgroundColor: '#00ff00',
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderWidth/value.js | test/fixtures/controller.radar/borderWidth/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: '#0000ff',
borderWidth: 6
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderWidth: 3,
fill: false
},
point: {
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderWidth/scriptable.js | test/fixtures/controller.radar/borderWidth/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: '#0000ff',
borderWidth: function(ctx) {
var index = ctx.index;
return index % 2 ? 10 : 20;
},
pointBorderColor: '#00ff00'
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
borderColor: '#ff0000',
borderWidth: function(ctx) {
var index = ctx.index;
return index % 2 ? 10 : 20;
},
fill: false
},
point: {
borderColor: '#00ff00',
borderWidth: 5,
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/rotation/value.js | test/fixtures/controller.radar/rotation/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#0000ff',
pointRotation: 90
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
borderColor: '#00ff00',
pointStyle: 'line',
radius: 10,
rotation: 0,
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/rotation/indexable.js | test/fixtures/controller.radar/rotation/indexable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#00ff00',
pointRotation: [
0, 30, 60, 90, 120, 150
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
borderColor: '#ff0000',
borderWidth: 10,
pointStyle: 'line',
rotation: [
150, 120, 90, 60, 30, 0
],
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/rotation/scriptable.js | test/fixtures/controller.radar/rotation/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#0000ff',
pointRotation: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 120
: value > -4 ? 60
: 0;
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5],
}
]
},
options: {
elements: {
line: {
fill: false,
},
point: {
borderColor: '#ff0000',
rotation: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 0
: value > -4 ? 60
: 120;
},
pointStyle: 'line',
radius: 10,
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderJoinStyle/value.js | test/fixtures/controller.radar/borderJoinStyle/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3],
datasets: [
{
// option in dataset
data: [3, 3, null, 3],
borderColor: '#ff0000',
borderJoinStyle: 'round'
},
{
// option in element (fallback)
data: [2, 2, null, 2],
borderColor: '#0000ff',
borderJoinStyle: 'bevel'
},
{
// option in element (fallback)
data: [1, 1, null, 1]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderJoinStyle: 'miter',
borderWidth: 25,
fill: false,
tension: 0
}
},
layout: {
padding: 32
},
scales: {
r: {
display: false,
beginAtZero: true
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/borderJoinStyle/scriptable.js | test/fixtures/controller.radar/borderJoinStyle/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3],
datasets: [
{
// option in dataset
data: [3, 3, null, 3],
borderColor: '#ff0000',
borderJoinStyle: function(ctx) {
var index = ctx.datasetIndex % 3;
return index === 0 ? 'round'
: index === 1 ? 'miter'
: 'bevel';
}
},
{
// option in element (fallback)
data: [2, 2, null, 2],
borderColor: '#0000ff'
},
{
// option in element (fallback)
data: [1, 1, null, 1]
}
]
},
options: {
elements: {
line: {
borderColor: '#00ff00',
borderJoinStyle: function(ctx) {
var index = (ctx.datasetIndex % 3);
return index === 0 ? 'round'
: index === 1 ? 'miter'
: 'bevel';
},
borderWidth: 25,
fill: false,
tension: 0
}
},
layout: {
padding: 32
},
scales: {
r: {
display: false,
beginAtZero: true
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBorderWidth/value.js | test/fixtures/controller.radar/pointBorderWidth/value.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#0000ff',
pointBorderWidth: 6
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
borderColor: '#00ff00',
borderWidth: 3,
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBorderWidth/indexable.js | test/fixtures/controller.radar/pointBorderWidth/indexable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#00ff00',
pointBorderWidth: [
1, 2, 3, 4, 5, 6
]
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
borderColor: '#ff0000',
borderWidth: [
6, 5, 4, 3, 2, 1
],
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.radar/pointBorderWidth/scriptable.js | test/fixtures/controller.radar/pointBorderWidth/scriptable.js | module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#0000ff',
pointBorderWidth: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 10
: value > -4 ? 5
: 2;
}
},
{
// option in element (fallback)
data: [4, -5, -10, null, 10, 5]
}
]
},
options: {
elements: {
line: {
fill: false
},
point: {
borderColor: '#ff0000',
borderWidth: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 2
: value > -4 ? 5
: 10;
},
radius: 10
}
},
scales: {
r: {
display: false,
min: -15
}
}
}
},
options: {
canvas: {
height: 512,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/horizontal-rtl-hitbox.js | test/fixtures/plugin.legend/horizontal-rtl-hitbox.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9278',
config: {
type: 'pie',
data: {
labels: ['aaa', 'bb', 'c'],
datasets: [{
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
backgroundColor: 'red'
}]
},
options: {
plugins: {
legend: {
position: 'top',
rtl: 'true',
}
},
layout: {
padding: {
top: 50,
left: 30,
right: 30,
bottom: 50
}
}
},
plugins: [{
id: 'legend-hit-box',
afterDraw(chart) {
const ctx = chart.ctx;
ctx.save();
ctx.strokeStyle = 'green';
ctx.lineWidth = 1;
const legend = chart.legend;
legend.legendHitBoxes.forEach(box => {
ctx.strokeRect(box.left, box.top, box.width, box.height);
});
ctx.restore();
}
}]
},
options: {
spriteText: true,
canvas: {
width: 400,
height: 300
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/maxWidth/infinity.js | test/fixtures/plugin.legend/maxWidth/infinity.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [
{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
borderWidth: 1
},
{
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
borderWidth: 1
}
]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
title: false,
tooltip: false,
filler: false,
legend: {
position: 'left',
maxWidth: Infinity
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 150,
height: 75
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/maxWidth/value.js | test/fixtures/plugin.legend/maxWidth/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [
{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
borderWidth: 1
},
{
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
borderWidth: 1
}
]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
title: false,
tooltip: false,
filler: false,
legend: {
position: 'left',
maxWidth: 100
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 150,
height: 75
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/maxWidth/undefined.js | test/fixtures/plugin.legend/maxWidth/undefined.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [
{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
borderWidth: 1
},
{
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
borderWidth: 1
}
]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
title: false,
tooltip: false,
filler: false,
legend: {
position: 'left',
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 150,
height: 75
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/padding/add-column.js | test/fixtures/plugin.legend/padding/add-column.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9278',
config: {
type: 'pie',
data: {
labels: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'],
datasets: [{
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
backgroundColor: 'red'
}]
},
options: {
plugins: {
legend: {
position: 'left'
}
},
layout: {
padding: {
top: 55,
left: 30,
right: 30
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 400,
height: 300
},
run(chart) {
chart.data.labels.push('k');
chart.data.datasets[0].data.push(11);
chart.update();
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/padding/2cols-with-padding.js | test/fixtures/plugin.legend/padding/2cols-with-padding.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9278',
config: {
type: 'pie',
data: {
labels: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k'],
datasets: [{
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
backgroundColor: 'red'
}]
},
options: {
plugins: {
legend: {
position: 'left'
}
},
layout: {
padding: {
top: 50,
left: 30,
right: 30,
bottom: 50
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 400,
height: 300
},
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/top-center-center.js | test/fixtures/plugin.legend/title/top-center-center.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'top',
align: 'center',
title: {
display: true,
position: 'center',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/left-center-center.js | test/fixtures/plugin.legend/title/left-center-center.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'left',
align: 'center',
title: {
display: true,
position: 'center',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/left-start-start.js | test/fixtures/plugin.legend/title/left-start-start.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'left',
align: 'start',
title: {
display: true,
position: 'start',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/left-end-end.js | test/fixtures/plugin.legend/title/left-end-end.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'left',
align: 'end',
title: {
display: true,
position: 'end',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/right-start-start.js | test/fixtures/plugin.legend/title/right-start-start.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'right',
align: 'start',
title: {
display: true,
position: 'start',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/right-end-end.js | test/fixtures/plugin.legend/title/right-end-end.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'right',
align: 'end',
title: {
display: true,
position: 'end',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/top-end-end.js | test/fixtures/plugin.legend/title/top-end-end.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'top',
align: 'end',
title: {
display: true,
position: 'end',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/bottom-start-start.js | test/fixtures/plugin.legend/title/bottom-start-start.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'bottom',
align: 'start',
title: {
display: true,
position: 'start',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/bottom-end-end.js | test/fixtures/plugin.legend/title/bottom-end-end.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'bottom',
align: 'end',
title: {
display: true,
position: 'end',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/top-start-start.js | test/fixtures/plugin.legend/title/top-start-start.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'top',
align: 'start',
title: {
display: true,
position: 'start',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/right-center-center.js | test/fixtures/plugin.legend/title/right-center-center.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'right',
align: 'center',
title: {
display: true,
position: 'center',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/title/bottom-center-center.js | test/fixtures/plugin.legend/title/bottom-center-center.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{label: 'a', data: []},
{label: 'b', data: []},
{label: 'c', data: []}
]
},
options: {
plugins: {
legend: {
position: 'bottom',
align: 'center',
title: {
display: true,
position: 'center',
text: 'title'
}
}
},
scales: {
x: {display: false},
y: {display: false}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/borderRadius/legend-border-radius.js | test/fixtures/plugin.legend/borderRadius/legend-border-radius.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [
{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
borderWidth: 1,
borderColor: '#FF0000',
backgroundColor: '#00FF00',
},
{
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
borderWidth: 2,
borderColor: '#FF00FF',
backgroundColor: '#0000FF',
}
]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
title: false,
tooltip: false,
filler: false,
legend: {
labels: {
generateLabels: (chart) => {
const items = Chart.defaults.plugins.legend.labels.generateLabels(chart);
for (const item of items) {
item.borderRadius = 5;
}
return items;
}
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 512,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/rtl-right.js | test/fixtures/plugin.legend/label-textAlign/rtl-right.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
rtl: true,
position: 'right',
labels: {
textAlign: 'right'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/horizontal-rtl-right.js | test/fixtures/plugin.legend/label-textAlign/horizontal-rtl-right.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
rtl: true,
position: 'top',
labels: {
textAlign: 'right'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/left.js | test/fixtures/plugin.legend/label-textAlign/left.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'right',
labels: {
textAlign: 'left'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/rtl-left.js | test/fixtures/plugin.legend/label-textAlign/rtl-left.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'right',
rtl: true,
labels: {
textAlign: 'left'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/rtl-center.js | test/fixtures/plugin.legend/label-textAlign/rtl-center.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'right',
rtl: true,
labels: {
textAlign: 'center'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/horizontal-right.js | test/fixtures/plugin.legend/label-textAlign/horizontal-right.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'top',
labels: {
textAlign: 'right'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/right.js | test/fixtures/plugin.legend/label-textAlign/right.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'right',
labels: {
textAlign: 'right'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/center.js | test/fixtures/plugin.legend/label-textAlign/center.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'right',
labels: {
textAlign: 'center'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/horizontal-rtl-left.js | test/fixtures/plugin.legend/label-textAlign/horizontal-rtl-left.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'top',
rtl: true,
labels: {
textAlign: 'left'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.legend/label-textAlign/horizontal-left.js | test/fixtures/plugin.legend/label-textAlign/horizontal-left.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['aaaa', 'bb', 'c'],
datasets: [
{
data: [1, 2, 3]
}
]
},
options: {
plugins: {
legend: {
position: 'top',
labels: {
textAlign: 'left'
}
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.title/scriptable-options.js | test/fixtures/plugin.title/scriptable-options.js | const data = [];
for (let x = 0; x < 3; x++) {
for (let y = 0; y < 3; y++) {
data.push({x, y});
}
}
module.exports = {
config: {
type: 'scatter',
data: {
datasets: [{
data,
backgroundColor: 'red',
radius: 1,
hoverRadius: 0
}],
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
plugins: {
legend: false,
title: {
display: true,
text: () => 'Title Text',
},
filler: false,
tooltip: false
},
},
},
options: {
spriteText: true,
canvas: {
height: 400,
width: 400
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/stacked-boxes-max-without-clip.js | test/fixtures/core.layouts/stacked-boxes-max-without-clip.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [{x: 1, y: 5}, {x: 2, y: 10}, {x: 3, y: 5}], borderColor: 'red'},
{data: [{x: 1, y: 5}, {x: 2, y: 10}, {x: 3, y: 5}], yAxisID: 'y1', xAxisID: 'x1', borderColor: 'green'},
{data: [{x: 1, y: 5}, {x: 2, y: 10}, {x: 3, y: 5}], yAxisID: 'y2', xAxisID: 'x2', borderColor: 'blue'},
],
labels: ['tick1', 'tick2', 'tick3']
},
options: {
plugins: false,
scales: {
x: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
clip: false,
bounds: 'data',
border: {
color: 'red'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x1: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
clip: false,
bounds: 'data',
border: {
color: 'green'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x2: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
clip: false,
bounds: 'data',
border: {
color: 'blue'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
y: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
clip: false,
border: {
color: 'red'
},
ticks: {
precision: 0
},
max: 7
},
y1: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
clip: false,
border: {
color: 'green'
},
ticks: {
precision: 0
},
max: 7
},
y2: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
clip: false,
border: {
color: 'blue',
},
ticks: {
precision: 0
},
max: 7
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 384,
width: 384
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/stacked-boxes-max-index.js | test/fixtures/core.layouts/stacked-boxes-max-index.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [{x: 5, y: 1}, {x: 10, y: 2}, {x: 5, y: 3}], borderColor: 'red'},
{data: [{x: 5, y: 1}, {x: 10, y: 2}, {x: 5, y: 3}], yAxisID: 'y1', xAxisID: 'x1', borderColor: 'green'},
{data: [{x: 5, y: 1}, {x: 10, y: 2}, {x: 5, y: 3}], yAxisID: 'y2', xAxisID: 'x2', borderColor: 'blue'},
],
labels: ['tick1', 'tick2', 'tick3']
},
options: {
plugins: false,
scales: {
x: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'red'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
},
max: 7
},
x1: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'green'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
},
max: 7
},
x2: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'blue'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
},
max: 7
},
y: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'red'
},
ticks: {
precision: 0
}
},
y1: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'green'
},
ticks: {
precision: 0
}
},
y2: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'blue',
},
ticks: {
precision: 0
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 384,
width: 384
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/long-labels.js | test/fixtures/core.layouts/long-labels.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [10, 5, 0, 25, 78, -10]}
],
labels: ['tick1 is very long one', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6 is very long one']
},
options: {
plugins: {
legend: false
},
scales: {
x: {
type: 'category',
ticks: {
maxRotation: 0,
autoSkip: false
}
},
y: {
type: 'linear',
position: 'right'
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 150,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/stacked-boxes.js | test/fixtures/core.layouts/stacked-boxes.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}], borderColor: 'red'},
{data: [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}], yAxisID: 'y1', xAxisID: 'x1', borderColor: 'green'},
{data: [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}], yAxisID: 'y2', xAxisID: 'x2', borderColor: 'blue'},
],
labels: ['tick1', 'tick2', 'tick3']
},
options: {
plugins: false,
scales: {
x: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'red'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x1: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'green'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x2: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'blue'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
y: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'red'
},
ticks: {
precision: 0
}
},
y1: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'green'
},
ticks: {
precision: 0
}
},
y2: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'blue',
},
ticks: {
precision: 0
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 384,
width: 384
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/refit-vertical-boxes.js | test/fixtures/core.layouts/refit-vertical-boxes.js | module.exports = {
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: [
'Aaron',
'Adam',
'Albert',
'Alex',
'Allan',
'Aman',
'Anthony',
'Autoenrolment',
'Avril',
'Bernard'
],
datasets: [{
backgroundColor: 'rgba(252,233,79,0.5)',
borderColor: 'rgba(252,233,79,1)',
borderWidth: 1,
data: [101,
185,
24,
311,
17,
21,
462,
340,
140,
24
]
}]
},
options: {
maintainAspectRatio: false,
plugins: {
legend: true,
title: {
display: true,
text: 'test'
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 185,
width: 185
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/no-boxes-all-padding.js | test/fixtures/core.layouts/no-boxes-all-padding.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0],
datasets: [{
data: [0],
radius: 16,
borderWidth: 0,
backgroundColor: 'red'
}],
},
options: {
plugins: {
legend: false,
tooltip: false,
title: false,
filler: false
},
scales: {
x: {
display: false,
offset: true
},
y: {
display: false
}
},
layout: {
padding: 16
}
}
},
options: {
canvas: {
height: 32,
width: 32
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/stacked-boxes-max.js | test/fixtures/core.layouts/stacked-boxes-max.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [{x: 1, y: 5}, {x: 2, y: 10}, {x: 3, y: 5}], borderColor: 'red'},
{data: [{x: 1, y: 5}, {x: 2, y: 10}, {x: 3, y: 5}], yAxisID: 'y1', xAxisID: 'x1', borderColor: 'green'},
{data: [{x: 1, y: 5}, {x: 2, y: 10}, {x: 3, y: 5}], yAxisID: 'y2', xAxisID: 'x2', borderColor: 'blue'},
],
labels: ['tick1', 'tick2', 'tick3']
},
options: {
plugins: false,
scales: {
x: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'red'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x1: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'green'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x2: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
bounds: 'data',
border: {
color: 'blue'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
y: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'red'
},
ticks: {
precision: 0
},
max: 7
},
y1: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'green'
},
ticks: {
precision: 0
},
max: 7
},
y2: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
border: {
color: 'blue',
},
ticks: {
precision: 0
},
max: 7
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 384,
width: 384
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/stacked-boxes-with-weight.js | test/fixtures/core.layouts/stacked-boxes-with-weight.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}], borderColor: 'red'},
{data: [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}], yAxisID: 'y1', xAxisID: 'x1', borderColor: 'green'},
{data: [{x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}], yAxisID: 'y2', xAxisID: 'x2', borderColor: 'blue'},
],
labels: ['tick1', 'tick2', 'tick3']
},
options: {
plugins: false,
scales: {
x: {
type: 'linear',
position: 'bottom',
stack: '1',
stackWeight: 2,
offset: true,
bounds: 'data',
border: {
color: 'red'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x1: {
type: 'linear',
position: 'bottom',
stack: '1',
stackWeight: 2,
offset: true,
bounds: 'data',
border: {
color: 'green'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
x2: {
type: 'linear',
position: 'bottom',
stack: '1',
stackWeight: 6,
offset: true,
bounds: 'data',
border: {
color: 'blue'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
}
},
y: {
type: 'linear',
position: 'left',
stack: '1',
stackWeight: 2,
offset: true,
border: {
color: 'red'
},
ticks: {
precision: 0
}
},
y1: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
stackWeight: 2,
border: {
color: 'green'
},
ticks: {
precision: 0
}
},
y2: {
type: 'linear',
position: 'left',
stack: '1',
stackWeight: 3,
offset: true,
border: {
color: 'blue'
},
ticks: {
precision: 0
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 384,
width: 384
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/scriptable.js | test/fixtures/core.layouts/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [10, 5, 0, 25, 78, -10]}
],
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', 'tick6']
},
options: {
layout: {
padding: function(ctx) {
// 10% padding
const horizontalPadding = ctx.chart.width * 0.1;
const verticalPadding = ctx.chart.height * 0.1;
return {
top: verticalPadding,
right: horizontalPadding,
bottom: verticalPadding,
left: horizontalPadding
};
}
},
plugins: {
legend: false
},
scales: {
x: {
type: 'category',
ticks: {
maxRotation: 0,
autoSkip: false
}
},
y: {
type: 'linear',
position: 'right'
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 150,
width: 512
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/stacked-boxes-max-index-without-clip.js | test/fixtures/core.layouts/stacked-boxes-max-index-without-clip.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [{x: 5, y: 1}, {x: 10, y: 2}, {x: 5, y: 3}], borderColor: 'red'},
{data: [{x: 5, y: 1}, {x: 10, y: 2}, {x: 5, y: 3}], yAxisID: 'y1', xAxisID: 'x1', borderColor: 'green'},
{data: [{x: 5, y: 1}, {x: 10, y: 2}, {x: 5, y: 3}], yAxisID: 'y2', xAxisID: 'x2', borderColor: 'blue'},
],
labels: ['tick1', 'tick2', 'tick3']
},
options: {
plugins: false,
scales: {
x: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
clip: false,
bounds: 'data',
border: {
color: 'red'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
},
max: 7
},
x1: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
clip: false,
bounds: 'data',
border: {
color: 'green'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
},
max: 7
},
x2: {
type: 'linear',
position: 'bottom',
stack: '1',
offset: true,
clip: false,
bounds: 'data',
border: {
color: 'blue'
},
ticks: {
autoSkip: false,
maxRotation: 0,
count: 3
},
max: 7
},
y: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
clip: false,
border: {
color: 'red'
},
ticks: {
precision: 0
}
},
y1: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
clip: false,
border: {
color: 'green'
},
ticks: {
precision: 0
}
},
y2: {
type: 'linear',
position: 'left',
stack: '1',
offset: true,
clip: false,
border: {
color: 'blue',
},
ticks: {
precision: 0
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 384,
width: 384
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.layouts/hidden-vertical-boxes.js | test/fixtures/core.layouts/hidden-vertical-boxes.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{data: [10, 5, 0, 25, 78, -10]}
],
labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5', '']
},
options: {
plugins: {
legend: false
},
scales: {
x: {
display: false
},
y: {
type: 'linear',
position: 'left',
ticks: {
callback: function(value) {
return value + ' very long unit!';
},
}
},
y1: {
type: 'linear',
position: 'left',
display: false
},
y2: {
type: 'linear',
position: 'left',
display: false
},
y3: {
type: 'linear',
position: 'left',
display: false
},
y4: {
type: 'linear',
position: 'left',
display: false
},
y5: {
type: 'linear',
position: 'left',
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 256,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/padding-update.js | test/fixtures/controller.bubble/padding-update.js | module.exports = {
config: {
type: 'bubble',
data: {
datasets: [{
backgroundColor: 'red',
data: [{x: 12, y: 54, r: 22.4}]
}, {
backgroundColor: 'blue',
data: [{x: 18, y: 38, r: 25}]
}]
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
},
run(chart) {
chart.update();
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/padding.js | test/fixtures/controller.bubble/padding.js | module.exports = {
config: {
type: 'bubble',
data: {
datasets: [{
backgroundColor: 'red',
data: [{x: 12, y: 54, r: 22.4}]
}, {
backgroundColor: 'blue',
data: [{x: 18, y: 38, r: 25}]
}]
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/radius-data.js | test/fixtures/controller.bubble/radius-data.js | module.exports = {
config: {
type: 'bubble',
data: {
datasets: [{
data: [
{x: 0, y: 5, r: 1},
{x: 1, y: 4, r: 2},
{x: 2, y: 3, r: 6},
{x: 3, y: 2},
{x: 4, y: 1, r: 2},
{x: 5, y: 0, r: NaN},
{x: 6, y: -1, r: undefined},
{x: 7, y: -2, r: null},
{x: 8, y: -3, r: '4'},
{x: 9, y: -4, r: '4px'},
]
}]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
elements: {
point: {
backgroundColor: '#444',
radius: 10
}
},
layout: {
padding: {
left: 24,
right: 24
}
}
}
},
options: {
canvas: {
height: 128,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/radius-scriptable.js | test/fixtures/controller.bubble/radius-scriptable.js | module.exports = {
config: {
type: 'bubble',
data: {
datasets: [{
data: [
{x: 0, y: 0},
{x: 1, y: 0},
{x: 2, y: 0},
{x: 3, y: 0},
{x: 4, y: 0},
{x: 5, y: 0}
],
radius: function(ctx) {
return ctx.dataset.data[ctx.dataIndex].x * 4;
}
}]
},
options: {
scales: {
x: {display: false},
y: {display: false}
},
elements: {
point: {
backgroundColor: '#444'
}
},
layout: {
padding: {
left: 24,
right: 24
}
}
}
},
options: {
canvas: {
height: 128,
width: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/autoPadding-disabled.js | test/fixtures/controller.bubble/autoPadding-disabled.js | module.exports = {
config: {
type: 'bubble',
data: {
datasets: [{
backgroundColor: 'red',
data: [{x: 12, y: 54, r: 22.4}]
}, {
backgroundColor: 'blue',
data: [{x: 18, y: 38, r: 25}]
}]
},
options: {
layout: {
autoPadding: false,
}
}
},
options: {
spriteText: true,
canvas: {
width: 256,
height: 256
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.