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/controller.doughnut/doughnut-spacing.js | test/fixtures/controller.doughnut/doughnut-spacing.js | module.exports = {
config: {
type: 'doughnut',
data: {
datasets: [{
data: [10, 20, 40, 50, 5],
label: 'Dataset 1',
backgroundColor: [
'red',
'orange',
'yellow',
'green',
'blue'
]
}],
labels: [
'Item 1',
'Item 2',
'Item 3',
'Item 4',
'Item 5'
],
},
options: {
spacing: 50,
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.doughnut/doughnut-circumference-per-dataset.js | test/fixtures/controller.doughnut/doughnut-circumference-per-dataset.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data: [1, 5, 10, 50, 100],
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderWidth: 1,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
],
circumference: 180
}]
},
options: {
circumference: 57.32,
responsive: 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.doughnut/doughnut-animation.js | test/fixtures/controller.doughnut/doughnut-animation.js | const canvas = document.createElement('canvas');
canvas.width = 512;
canvas.height = 512;
const ctx = canvas.getContext('2d');
module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data: [1, 5, 10, 50, 100],
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderWidth: 4,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
animation: {
duration: 8000,
easing: 'linear'
},
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: false
}
},
plugins: [{
id: 'hide',
afterInit(chart) {
chart.toggleDataVisibility(4);
}
}]
},
options: {
canvas: {
height: 512,
width: 512
},
run: function(chart) {
const animator = Chart.animator;
const anims = animator._getAnims(chart);
// disable animator
const backup = animator._refresh;
animator._refresh = function() { };
return new Promise((resolve) => {
window.requestAnimationFrame(() => {
const start = anims.items[0]._start;
for (let i = 0; i < 16; i++) {
animator._update(start + i * 500);
let x = i % 4 * 128;
let y = Math.floor(i / 4) * 128;
ctx.drawImage(chart.canvas, x, y, 128, 128);
}
Chart.helpers.clearCanvas(chart.canvas);
chart.ctx.drawImage(canvas, 0, 0);
animator._refresh = backup;
resolve();
});
});
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.doughnut/borderDash/value.js | test/fixtures/controller.doughnut/borderDash/value.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [5, 2, 4, 7, 6, 8],
borderAlign: 'inner',
borderColor: 'black'
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderWidth: 1,
borderDash: [3, 3]
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderDash/scriptable.js | test/fixtures/controller.doughnut/borderDash/scriptable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [5, 2, 4, 7, 6, 8]
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: 'black',
borderWidth: 1,
borderDash: function(ctx) {
var value = (ctx.dataIndex || 0) % 2;
return value === 0 ? [3, 3] : [];
}
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/selfJoin/doughnut.js | test/fixtures/controller.doughnut/selfJoin/doughnut.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['Red'],
datasets: [
{
// option in dataset
data: [100],
borderWidth: 15,
backgroundColor: '#FF0000',
borderColor: '#000000',
borderAlign: 'center',
selfJoin: true
}
]
}
},
options: {
canvas: {
height: 256,
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.doughnut/selfJoin/pie.js | test/fixtures/controller.doughnut/selfJoin/pie.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['Red'],
datasets: [
{
// option in dataset
data: [100],
borderWidth: 15,
backgroundColor: '#FF0000',
borderColor: '#000000',
borderAlign: 'center',
borderJoinStyle: 'round',
selfJoin: true
}
]
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderColor/value.js | test/fixtures/controller.doughnut/borderColor/value.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderColor: '#ff0000'
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#00ff00',
borderWidth: 8
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderColor/indexable.js | test/fixtures/controller.doughnut/borderColor/indexable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00',
'#ff00ff',
'#000000'
]
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: [
'#ff88ff',
'#888888',
'#ff8800',
'#00ff88',
'#8800ff',
'#ffff88'
],
borderWidth: 8
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderColor/scriptable.js | test/fixtures/controller.doughnut/borderColor/scriptable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 6 ? '#00ff00'
: value > 2 ? '#0000ff'
: '#ff00ff';
}
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff00ff'
: value > 6 ? '#0000ff'
: value > 2 ? '#ff0000'
: '#00ff00';
},
borderWidth: 8
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderRadius/value-corners.js | test/fixtures/controller.doughnut/borderRadius/value-corners.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderRadius: {
outerStart: 20,
outerEnd: 40,
}
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderRadius/value-large-radius.js | test/fixtures/controller.doughnut/borderRadius/value-large-radius.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
data: [60, 15, 33, 44, 12],
// Radius is large enough to clip
borderRadius: 200,
backgroundColor: [
'rgb(255, 99, 132)',
'rgb(255, 159, 64)',
'rgb(255, 205, 86)',
'rgb(75, 192, 192)',
'rgb(54, 162, 235)'
]
},
]
},
// options: {
// elements: {
// arc: {
// backgroundColor: 'transparent',
// borderColor: '#888',
// }
// },
// }
},
options: {
canvas: {
height: 256,
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.doughnut/borderRadius/scriptable.js | test/fixtures/controller.doughnut/borderRadius/scriptable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderRadius: () => 4,
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderRadius/value-small-number.js | test/fixtures/controller.doughnut/borderRadius/value-small-number.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderRadius: 20
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/backgroundColor/value.js | test/fixtures/controller.doughnut/backgroundColor/value.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
backgroundColor: '#ff0000'
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: '#00ff00'
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/backgroundColor/indexable.js | test/fixtures/controller.doughnut/backgroundColor/indexable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
backgroundColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00',
'#ff00ff',
'#000000'
]
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: [
'#ff88ff',
'#888888',
'#ff8800',
'#00ff88',
'#8800ff',
'#ffff88'
]
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/backgroundColor/scriptable.js | test/fixtures/controller.doughnut/backgroundColor/scriptable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
backgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 6 ? '#00ff00'
: value > 2 ? '#0000ff'
: '#ff00ff';
}
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 6 ? '#00ff00'
: value > 2 ? '#0000ff'
: '#ff00ff';
}
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderWidth/value.js | test/fixtures/controller.doughnut/borderWidth/value.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderWidth: 2
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
borderWidth: 4
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderWidth/indexable.js | test/fixtures/controller.doughnut/borderWidth/indexable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderWidth: [
0,
1,
2,
3,
4,
5
]
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
borderWidth: [
5,
4,
3,
2,
1,
0
]
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderWidth/scriptable.js | test/fixtures/controller.doughnut/borderWidth/scriptable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderWidth: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return Math.abs(value);
}
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
borderWidth: function(ctx) {
return ctx.dataIndex * 2;
}
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderAlign/value.js | test/fixtures/controller.doughnut/borderAlign/value.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderAlign: 'inner',
borderColor: '#00ff00',
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderAlign: 'center',
borderColor: '#0000ff',
borderWidth: 4,
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderAlign/indexable.js | test/fixtures/controller.doughnut/borderAlign/indexable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderAlign: [
'center',
'inner',
'center',
'inner',
'center',
'inner',
],
borderColor: '#00ff00'
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff0000',
borderWidth: 5,
borderAlign: [
'center',
'inner',
'center',
'inner',
'center',
'inner',
]
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderAlign/scriptable.js | test/fixtures/controller.doughnut/borderAlign/scriptable.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderAlign: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 'inner' : 'center';
},
borderColor: '#0000ff',
},
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff00ff',
borderWidth: 8,
borderAlign: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 'center' : 'inner';
}
}
},
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderJoinStyle/round.js | test/fixtures/controller.doughnut/borderJoinStyle/round.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
data: [0, 2, 4, null, 6, 8],
backgroundColor: 'transparent',
borderColor: '#000',
borderJoinStyle: 'round',
borderWidth: 10,
spacing: 50,
},
]
},
options: {
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderJoinStyle/bevel-default.js | test/fixtures/controller.doughnut/borderJoinStyle/bevel-default.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
data: [0, 2, 4, null, 6, 8],
backgroundColor: 'transparent',
borderColor: '#000',
borderWidth: 10,
spacing: 50,
},
]
},
options: {
}
},
options: {
canvas: {
height: 256,
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.doughnut/borderJoinStyle/miter.js | test/fixtures/controller.doughnut/borderJoinStyle/miter.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
data: [0, 2, 4, null, 6, 8],
backgroundColor: 'transparent',
borderColor: '#000',
borderJoinStyle: 'miter',
borderWidth: 10,
spacing: 50,
},
]
},
options: {
}
},
options: {
canvas: {
height: 256,
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/scale.linear/rotated-85.js | test/fixtures/scale.linear/rotated-85.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
min: 0,
max: 500000,
ticks: {
minRotation: 85,
maxRotation: 85,
}
},
x: {
min: 0,
max: 500000,
ticks: {
minRotation: 85,
maxRotation: 85,
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 350,
width: 350
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/rotated-45.js | test/fixtures/scale.linear/rotated-45.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
min: 1612781975085.5466,
max: 1620287255085.5466,
ticks: {
autoSkip: false,
minRotation: 45,
maxRotation: 45,
count: 13
}
},
x: {
min: 1612781975085.5466,
max: 1620287255085.5466,
ticks: {
autoSkip: false,
minRotation: 45,
maxRotation: 45,
count: 13
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 350,
width: 350
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/rotated-5.js | test/fixtures/scale.linear/rotated-5.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
min: 0,
max: 500000,
ticks: {
minRotation: 5,
maxRotation: 5,
}
},
x: {
min: 0,
max: 500000,
ticks: {
minRotation: 5,
maxRotation: 5,
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 350,
width: 350
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/tick-step-min-max-step-fp.js | test/fixtures/scale.linear/tick-step-min-max-step-fp.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9334',
config: {
type: 'line',
options: {
scales: {
y: {
display: false,
},
x: {
type: 'linear',
min: 7.2,
max: 21.6,
ticks: {
stepSize: 1.8
}
},
}
}
},
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/scale.linear/tick-count-min-max.js | test/fixtures/scale.linear/tick-count-min-max.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/4234',
config: {
type: 'line',
options: {
scales: {
y: {
max: 50,
min: 0,
ticks: {
count: 21,
}
},
x: {
display: false
}
}
}
},
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/scale.linear/tick-count-min-max-not-aligned.js | test/fixtures/scale.linear/tick-count-min-max-not-aligned.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/4234',
config: {
type: 'line',
options: {
scales: {
y: {
max: 27,
min: -3,
ticks: {
count: 11,
}
},
x: {
display: false
}
}
}
},
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/scale.linear/tick-step-min-max.js | test/fixtures/scale.linear/tick-step-min-max.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/4234',
config: {
type: 'line',
options: {
scales: {
y: {
max: 27,
min: -3,
ticks: {
stepSize: 3,
}
},
x: {
display: false
}
}
}
},
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/scale.linear/tick-count-min-max-not-int.js | test/fixtures/scale.linear/tick-count-min-max-not-int.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9078',
config: {
type: 'bar',
data: {
datasets: [{
data: [
{x: 1, y: 3.5},
{x: 2, y: 4.7},
{x: 3, y: 7.3},
{x: 4, y: 6.7}
]
}]
},
options: {
scales: {
x: {
type: 'linear',
display: false,
},
y: {
min: 3.5,
max: 8.5,
ticks: {
count: 6,
}
}
}
}
},
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/scale.linear/tiny-numbers.js | test/fixtures/scale.linear/tiny-numbers.js | // Should generate max and min that are not equal when data contains values that are very close to each other
module.exports = {
config: {
type: 'scatter',
data: {
datasets: [{
data: [
{x: 1, y: 1.8548483304974972},
{x: 2, y: 1.8548483304974974},
]
}],
},
},
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/scale.linear/tick-count-data-limits.js | test/fixtures/scale.linear/tick-count-data-limits.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/4234',
config: {
type: 'line',
data: {
datasets: [{
data: [0, 2, 45, 30]
}],
labels: ['A', 'B', 'C', 'D']
},
options: {
scales: {
y: {
ticks: {
count: 21,
callback: (v) => v.toString(),
}
},
x: {
display: false
}
}
}
},
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/scale.linear/issue-8806.js | test/fixtures/scale.linear/issue-8806.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8806',
config: {
type: 'bar',
data: {
labels: ['0', '1', '2', '3', '4', '5', '6'],
datasets: [{
label: '# of Votes',
data: [32, 46, 28, 21, 20, 13, 27]
}]
},
options: {
scales: {
x: {display: false},
y: {ticks: {maxTicksLimit: 4}, min: 0}
}
}
},
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/scale.linear/grace/issue-8912.js | test/fixtures/scale.linear/grace/issue-8912.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8912',
config: {
type: 'bar',
data: {
labels: ['Red', 'Blue'],
datasets: [{
data: [10, -10]
}]
},
options: {
plugins: false,
scales: {
x: {
display: false,
},
y: {
grace: '100%'
}
}
}
},
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/scale.linear/grace/grace-neg.js | test/fixtures/scale.linear/grace/grace-neg.js | module.exports = {
config: {
type: 'bar',
data: {
labels: ['a'],
datasets: [{
data: [-0.18],
}],
},
options: {
indexAxis: 'y',
scales: {
y: {
display: false
},
x: {
grace: '5%'
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 512,
height: 128
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/grace/grace-beginAtZero.js | test/fixtures/scale.linear/grace/grace-beginAtZero.js | module.exports = {
config: {
type: 'bar',
data: {
labels: ['a', 'b'],
datasets: [{
data: [100, 0],
backgroundColor: 'blue'
}, {
xAxisID: 'x2',
data: [0, 100],
backgroundColor: 'red'
}],
},
options: {
indexAxis: 'y',
scales: {
y: {
display: false
},
x: {
position: 'top',
beginAtZero: true,
grace: '10%',
},
x2: {
position: 'bottom',
type: 'linear',
beginAtZero: false,
grace: '10%',
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 512,
height: 128
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/grace/grace-pos.js | test/fixtures/scale.linear/grace/grace-pos.js | module.exports = {
config: {
type: 'bar',
data: {
labels: ['a'],
datasets: [{
data: [0.18],
}],
},
options: {
indexAxis: 'y',
scales: {
y: {
display: false
},
x: {
grace: '5%'
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 512,
height: 128
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | ERROR: type should be string, got "https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/grace/grace-10%.js" | test/fixtures/scale.linear/grace/grace-10%.js | module.exports = {
config: {
type: 'bar',
data: {
labels: ['a', 'b'],
datasets: [{
data: [90, -10],
}],
},
options: {
indexAxis: 'y',
scales: {
y: {
display: false
},
x: {
grace: '10%'
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 512,
height: 128
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/grace/grace.js | test/fixtures/scale.linear/grace/grace.js | module.exports = {
config: {
type: 'bar',
data: {
labels: ['a', 'b'],
datasets: [{
data: [1.2, -0.2],
}],
},
options: {
indexAxis: 'y',
scales: {
y: {
display: false
},
x: {
grace: 0.3
}
}
}
},
options: {
spriteText: true,
canvas: {
width: 512,
height: 128
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/includeBounds.js | test/fixtures/scale.linear/min-max-skip/includeBounds.js | module.exports = {
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1225.2,
min: 369.5,
ticks: {
includeBounds: false
}
},
x: {
min: 20,
max: 100,
ticks: {
includeBounds: false
}
}
}
}
},
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/scale.linear/min-max-skip/edge-case-4.js | test/fixtures/scale.linear/min-max-skip/edge-case-4.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8982',
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 200,
width: 557
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/edge-case-2.js | test/fixtures/scale.linear/min-max-skip/edge-case-2.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8982',
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 197,
width: 420
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/rotated-case-3.js | test/fixtures/scale.linear/min-max-skip/rotated-case-3.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 22.5
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 67.5
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 234,
width: 224
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/rotated-case-4.js | test/fixtures/scale.linear/min-max-skip/rotated-case-4.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 22.5
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 67.5
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 235,
width: 225
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/rotated-case-2.js | test/fixtures/scale.linear/min-max-skip/rotated-case-2.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 22.5
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 67.5
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 232,
width: 222
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/edge-case-3.js | test/fixtures/scale.linear/min-max-skip/edge-case-3.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8982',
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 199,
width: 556
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/rotated-case-1.js | test/fixtures/scale.linear/min-max-skip/rotated-case-1.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 22.5
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false,
minRotation: 67.5
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 231,
width: 221
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.linear/min-max-skip/min-max-skip.js | test/fixtures/scale.linear/min-max-skip/min-max-skip.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/7734',
config: {
type: 'line',
options: {
scales: {
y: {
max: 1225.2,
min: 369.5,
},
x: {
display: false
}
}
}
},
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/scale.linear/min-max-skip/no-collision.js | test/fixtures/scale.linear/min-max-skip/no-collision.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9025',
threshold: 0.2,
config: {
type: 'line',
data: {
datasets: [{
data: [
{x: 10000000, y: 65},
{x: 20000000, y: 12},
{x: 30000000, y: 23},
{x: 40000000, y: 51},
{x: 50000000, y: 17},
{x: 60000000, y: 23}
]
}]
},
options: {
scales: {
x: {
type: 'linear',
min: 10000000,
max: 60000000,
ticks: {
minRotation: 45,
maxRotation: 45,
count: 6
}
}
}
}
},
options: {
canvas: {
width: 200,
height: 200
},
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/scale.linear/min-max-skip/edge-case-1.js | test/fixtures/scale.linear/min-max-skip/edge-case-1.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8982',
config: {
type: 'scatter',
options: {
scales: {
y: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
},
x: {
max: 1069,
min: 230,
ticks: {
autoSkip: false
}
}
}
}
},
options: {
spriteText: true,
canvas: {
height: 196,
width: 407
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.polarArea/polar-area-animation-scale.js | test/fixtures/controller.polarArea/polar-area-animation-scale.js | const canvas = document.createElement('canvas');
canvas.width = 512;
canvas.height = 512;
const ctx = canvas.getContext('2d');
module.exports = {
config: {
type: 'polarArea',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data: [1, 5, 10, 2, 4],
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderWidth: 4,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
animation: {
animateRotate: false,
animateScale: true,
duration: 8000,
easing: 'linear'
},
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: false
},
scales: {
r: {
ticks: {
display: false,
}
}
}
},
},
options: {
canvas: {
height: 512,
width: 512
},
run: function(chart) {
const animator = Chart.animator;
const anims = animator._getAnims(chart);
// disable animator
const backup = animator._refresh;
animator._refresh = function() { };
return new Promise((resolve) => {
window.requestAnimationFrame(() => {
const start = anims.items[0]._start;
for (let i = 0; i < 16; i++) {
animator._update(start + i * 500);
let x = i % 4 * 128;
let y = Math.floor(i / 4) * 128;
ctx.drawImage(chart.canvas, x, y, 128, 128);
}
Chart.helpers.clearCanvas(chart.canvas);
chart.ctx.drawImage(canvas, 0, 0);
animator._refresh = backup;
resolve();
});
});
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.polarArea/last-slice-animate.js | test/fixtures/controller.polarArea/last-slice-animate.js | const canvas = document.createElement('canvas');
canvas.width = 512;
canvas.height = 512;
const ctx = canvas.getContext('2d');
module.exports = {
config: {
type: 'polarArea',
data: {
labels: ['A'],
datasets: [{
data: [20],
backgroundColor: 'red',
}]
},
options: {
animation: {
duration: 0,
easing: 'linear'
},
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: false
},
scales: {
r: {
ticks: {
display: false,
}
}
}
},
},
options: {
canvas: {
height: 512,
width: 512
},
run: function(chart) {
chart.options.animation.duration = 8000;
chart.toggleDataVisibility(0);
chart.update();
const animator = Chart.animator;
// disable animator
const backup = animator._refresh;
animator._refresh = function() { };
return new Promise((resolve) => {
window.requestAnimationFrame(() => {
const anims = animator._getAnims(chart);
const start = anims.items[0]._start;
for (let i = 0; i < 16; i++) {
animator._update(start + i * 500);
let x = i % 4 * 128;
let y = Math.floor(i / 4) * 128;
ctx.drawImage(chart.canvas, x, y, 128, 128);
}
Chart.helpers.clearCanvas(chart.canvas);
chart.ctx.drawImage(canvas, 0, 0);
animator._refresh = backup;
resolve();
});
});
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.polarArea/polar-area-animation-rotate.js | test/fixtures/controller.polarArea/polar-area-animation-rotate.js | const canvas = document.createElement('canvas');
canvas.width = 512;
canvas.height = 512;
const ctx = canvas.getContext('2d');
module.exports = {
config: {
type: 'polarArea',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data: [1, 5, 10, 2, 4],
backgroundColor: [
'rgba(255, 99, 132, 0.8)',
'rgba(54, 162, 235, 0.8)',
'rgba(255, 206, 86, 0.8)',
'rgba(75, 192, 192, 0.8)',
'rgba(153, 102, 255, 0.8)'
],
borderWidth: 4,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
animation: {
animateRotate: true,
animateScale: false,
duration: 8000,
easing: 'linear'
},
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: false
},
scales: {
r: {
ticks: {
display: false,
}
}
}
},
},
options: {
canvas: {
height: 512,
width: 512
},
run: function(chart) {
const animator = Chart.animator;
const anims = animator._getAnims(chart);
// disable animator
const backup = animator._refresh;
animator._refresh = function() { };
return new Promise((resolve) => {
window.requestAnimationFrame(() => {
const start = anims.items[0]._start;
for (let i = 0; i < 16; i++) {
animator._update(start + i * 500);
let x = i % 4 * 128;
let y = Math.floor(i / 4) * 128;
ctx.drawImage(chart.canvas, x, y, 128, 128);
}
Chart.helpers.clearCanvas(chart.canvas);
chart.ctx.drawImage(canvas, 0, 0);
animator._refresh = backup;
resolve();
});
});
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.polarArea/borderDash/value.js | test/fixtures/controller.polarArea/borderDash/value.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [5, 2, 4, 7, 6, 8],
borderAlign: 'inner',
borderColor: 'black'
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderWidth: 1,
borderDash: [3, 3]
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderDash/scriptable.js | test/fixtures/controller.polarArea/borderDash/scriptable.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [5, 2, 4, 7, 6, 8]
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: 'black',
borderWidth: 1,
borderDash: function(ctx) {
var value = (ctx.dataIndex || 0) % 2;
return value === 0 ? [3, 3] : [];
}
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderColor/value-dataset.js | test/fixtures/controller.polarArea/borderColor/value-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderColor: '#ff0000'
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderWidth: 8
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderColor/indexable-element-options.js | test/fixtures/controller.polarArea/borderColor/indexable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: [
'#ff88ff',
'#888888',
'#ff8800',
'#00ff88',
'#8800ff',
'#ffff88'
],
borderWidth: 8
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderColor/scriptable-dataset.js | test/fixtures/controller.polarArea/borderColor/scriptable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 6 ? '#00ff00'
: value > 2 ? '#0000ff'
: '#ff00ff';
}
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderWidth: 8
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderColor/scriptable-element-options.js | test/fixtures/controller.polarArea/borderColor/scriptable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff00ff'
: value > 6 ? '#0000ff'
: value > 2 ? '#ff0000'
: '#00ff00';
},
borderWidth: 8
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderColor/value-element-options.js | test/fixtures/controller.polarArea/borderColor/value-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#00ff00',
borderWidth: 8
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderColor/indexable-dataset.js | test/fixtures/controller.polarArea/borderColor/indexable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00',
'#ff00ff',
'#000000'
]
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderWidth: 8
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/backgroundColor/value-dataset.js | test/fixtures/controller.polarArea/backgroundColor/value-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
backgroundColor: '#ff0000'
},
]
},
options: {
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/backgroundColor/indexable-element-options.js | test/fixtures/controller.polarArea/backgroundColor/indexable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: [
'#ff88ff',
'#888888',
'#ff8800',
'#00ff88',
'#8800ff',
'#ffff88'
]
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/backgroundColor/scriptable-dataset.js | test/fixtures/controller.polarArea/backgroundColor/scriptable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
backgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 6 ? '#00ff00'
: value > 2 ? '#0000ff'
: '#ff00ff';
}
},
]
},
options: {
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/backgroundColor/scriptable-element-options.js | test/fixtures/controller.polarArea/backgroundColor/scriptable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 8 ? '#ff0000'
: value > 6 ? '#00ff00'
: value > 2 ? '#0000ff'
: '#ff00ff';
}
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/backgroundColor/value-element-options.js | test/fixtures/controller.polarArea/backgroundColor/value-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: '#00ff00'
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/backgroundColor/indexable-dataset.js | test/fixtures/controller.polarArea/backgroundColor/indexable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
backgroundColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00',
'#ff00ff',
'#000000'
]
},
]
},
options: {
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderWidth/value-dataset.js | test/fixtures/controller.polarArea/borderWidth/value-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderWidth: 2
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderWidth/indexable-element-options.js | test/fixtures/controller.polarArea/borderWidth/indexable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
borderWidth: [
5,
4,
3,
2,
1,
0
]
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderWidth/scriptable-dataset.js | test/fixtures/controller.polarArea/borderWidth/scriptable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderWidth: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return Math.abs(value);
}
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderWidth/scriptable-element-options.js | test/fixtures/controller.polarArea/borderWidth/scriptable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
borderWidth: function(ctx) {
return ctx.dataIndex * 2;
}
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderWidth/value-element-options.js | test/fixtures/controller.polarArea/borderWidth/value-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
borderWidth: 4
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderWidth/indexable-dataset.js | test/fixtures/controller.polarArea/borderWidth/indexable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderWidth: [
0,
1,
2,
3,
4,
5
]
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#888',
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderAlign/value-dataset.js | test/fixtures/controller.polarArea/borderAlign/value-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderAlign: 'inner',
borderColor: '#00ff00',
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#0000ff',
borderWidth: 4,
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderAlign/indexable-element-options.js | test/fixtures/controller.polarArea/borderAlign/indexable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff0000',
borderWidth: 5,
borderAlign: [
'center',
'inner',
'center',
'inner',
'center',
'inner',
]
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderAlign/scriptable-dataset.js | test/fixtures/controller.polarArea/borderAlign/scriptable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderAlign: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 'inner' : 'center';
},
borderColor: '#0000ff',
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff00ff',
borderWidth: 8,
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderAlign/scriptable-element-options.js | test/fixtures/controller.polarArea/borderAlign/scriptable-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff00ff',
borderWidth: 8,
borderAlign: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
return value > 4 ? 'center' : 'inner';
}
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderAlign/value-element-options.js | test/fixtures/controller.polarArea/borderAlign/value-element-options.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in element (fallback)
data: [0, 2, 4, null, 6, 8],
}
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderAlign: 'center',
borderColor: '#0000ff',
borderWidth: 4,
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/borderAlign/indexable-dataset.js | test/fixtures/controller.polarArea/borderAlign/indexable-dataset.js | module.exports = {
config: {
type: 'polarArea',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 2, 4, null, 6, 8],
borderAlign: [
'center',
'inner',
'center',
'inner',
'center',
'inner',
],
borderColor: '#00ff00'
},
]
},
options: {
elements: {
arc: {
backgroundColor: 'transparent',
borderColor: '#ff0000',
borderWidth: 5,
}
},
scales: {
r: {
display: false
}
}
}
},
options: {
canvas: {
height: 256,
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.polarArea/pointLabels/centered-180.js | test/fixtures/controller.polarArea/pointLabels/centered-180.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
startAngle: 180,
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/displayAuto.js | test/fixtures/controller.polarArea/pointLabels/displayAuto.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: new Array(50).fill(5),
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: new Array(50).fill(0).map((el, i) => ['label ' + i, 'line 2'])
},
options: {
scales: {
r: {
pointLabels: {
display: 'auto',
}
}
}
}
},
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.polarArea/pointLabels/default-45.js | test/fixtures/controller.polarArea/pointLabels/default-45.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
startAngle: 45,
pointLabels: {
display: 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.polarArea/pointLabels/default-180.js | test/fixtures/controller.polarArea/pointLabels/default-180.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
startAngle: 180,
pointLabels: {
display: 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.polarArea/pointLabels/default.js | test/fixtures/controller.polarArea/pointLabels/default.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
pointLabels: {
display: 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.polarArea/pointLabels/centered.js | test/fixtures/controller.polarArea/pointLabels/centered.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/centered-45.js | test/fixtures/controller.polarArea/pointLabels/centered-45.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
scales: {
r: {
startAngle: 45,
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/overlapping.js | test/fixtures/controller.polarArea/pointLabels/overlapping.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: new Array(50).fill(5),
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: new Array(50).fill(0).map((el, i) => ['label ' + i, 'line 2'])
},
options: {
scales: {
r: {
pointLabels: {
display: 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.polarArea/pointLabels/displayAuto-180.js | test/fixtures/controller.polarArea/pointLabels/displayAuto-180.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: new Array(50).fill(5),
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: new Array(50).fill(0).map((el, i) => ['label ' + i, 'line 2'])
},
options: {
scales: {
r: {
startAngle: 180,
pointLabels: {
display: 'auto',
}
}
}
}
},
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.polarArea/pointLabels/withTitle/top-centered-45.js | test/fixtures/controller.polarArea/pointLabels/withTitle/top-centered-45.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
startAngle: 45,
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/withTitle/bottom-centered.js | test/fixtures/controller.polarArea/pointLabels/withTitle/bottom-centered.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
position: 'bottom',
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/withTitle/left-centered-45.js | test/fixtures/controller.polarArea/pointLabels/withTitle/left-centered-45.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
position: 'left',
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
startAngle: 45,
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/withTitle/top-default.js | test/fixtures/controller.polarArea/pointLabels/withTitle/top-default.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
pointLabels: {
display: 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.polarArea/pointLabels/withTitle/right-centered.js | test/fixtures/controller.polarArea/pointLabels/withTitle/right-centered.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
position: 'right',
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/withTitle/top-centered.js | test/fixtures/controller.polarArea/pointLabels/withTitle/top-centered.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/withTitle/left-centered.js | test/fixtures/controller.polarArea/pointLabels/withTitle/left-centered.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
position: 'left',
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
pointLabels: {
display: true,
centerPointLabels: 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.polarArea/pointLabels/withTitle/top-default-45.js | test/fixtures/controller.polarArea/pointLabels/withTitle/top-default-45.js | module.exports = {
config: {
type: 'polarArea',
data: {
datasets: [{
data: [1, 2, 3, 4],
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003']
}],
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']]
},
options: {
plugins: {
title: {
display: true,
text: 'Chart Title'
},
legend: false
},
scales: {
r: {
startAngle: 45,
pointLabels: {
display: true
}
}
}
}
},
options: {
spriteText: true
}
};
| 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.