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/scale.timeseries/normalize.js | test/fixtures/scale.timeseries/normalize.js | module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
datasets: [{
data: [
{x: '2017', y: null},
{x: '2018', y: 1},
{x: '2019', y: 2},
{x: '2020', y: 3},
{x: '2021', y: 4}
],
fill: false
}]
},
options: {
normalized: true,
scales: {
x: {
type: 'timeseries',
time: {
parser: 'YYYY'
},
ticks: {
source: 'data'
}
},
y: {
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.timeseries/ticks-reverse-min.js | test/fixtures/scale.timeseries/ticks-reverse-min.js | module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
min: '2012',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
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.timeseries/source-data-offset-min-max.js | test/fixtures/scale.timeseries/source-data-offset-min-max.js | module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
min: '2012',
max: '2051',
offset: true,
time: {
parser: 'YYYY',
},
ticks: {
source: 'data'
}
},
y: {
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.timeseries/data-timestamps.js | test/fixtures/scale.timeseries/data-timestamps.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
datasets: [{data: [
{x: 1687849697000, y: 904},
{x: 1687817063000, y: 905},
{x: 1687694268000, y: 913},
{x: 1687609438000, y: 914},
{x: 1687561387000, y: 916},
{x: 1686875127000, y: 918},
{x: 1686873138000, y: 920},
{x: 1686872777000, y: 928},
{x: 1686081641000, y: 915}
], fill: false}, {data: [
{x: 1687816803000, y: 1105},
{x: 1686869490000, y: 1114},
{x: 1686869397000, y: 1103},
{x: 1686869225000, y: 1091},
{x: 1686556516000, y: 1078}
]}]
},
options: {
scales: {
x: {
type: 'timeseries',
bounds: 'data',
time: {
unit: 'day'
},
ticks: {
source: 'auto'
}
},
y: {
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.timeseries/source-labels.js | test/fixtures/scale.timeseries/source-labels.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'labels'
}
},
y: {
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.timeseries/financial-daily.js | test/fixtures/scale.timeseries/financial-daily.js | const data = [{x: 631180800000, y: 31.80}, {x: 631267200000, y: 30.20}, {x: 631353600000, y: 29.84}, {x: 631440000000, y: 29.72}, {x: 631526400000, y: 28.91}, {x: 631785600000, y: 29.55}, {x: 631872000000, y: 30.39}, {x: 631958400000, y: 29.54}, {x: 632044800000, y: 28.86}, {x: 632131200000, y: 30.75}, {x: 632390400000, y: 31.86}, {x: 632476800000, y: 33.59}, {x: 632563200000, y: 31.22}, {x: 632649600000, y: 30.12}, {x: 632736000000, y: 30.68}, {x: 632995200000, y: 31.46}, {x: 633081600000, y: 30.77}, {x: 633168000000, y: 30.27}, {x: 633254400000, y: 29.64}, {x: 633340800000, y: 30.53}, {x: 633600000000, y: 30.79}, {x: 633686400000, y: 30.27}, {x: 633772800000, y: 30.18}, {x: 633859200000, y: 27.72}, {x: 633945600000, y: 27.83}, {x: 634204800000, y: 27.82}, {x: 634291200000, y: 29.10}, {x: 634377600000, y: 28.34}, {x: 634464000000, y: 29.52}, {x: 634550400000, y: 28.69}, {x: 634809600000, y: 28.23}, {x: 634896000000, y: 27.45}, {x: 634982400000, y: 27.40}, {x: 635068800000, y: 28.39}, {x: 635155200000, y: 30.03}, {x: 635414400000, y: 31.19}, {x: 635500800000, y: 32.30}, {x: 635587200000, y: 33.84}, {x: 635673600000, y: 32.34}, {x: 635760000000, y: 31.96}, {x: 636019200000, y: 31.95}, {x: 636105600000, y: 32.84}, {x: 636192000000, y: 30.80}, {x: 636278400000, y: 31.54}, {x: 636364800000, y: 30.81}, {x: 636624000000, y: 32.99}, {x: 636710400000, y: 32.25}, {x: 636796800000, y: 33.87}, {x: 636883200000, y: 35.75}, {x: 636969600000, y: 35.71}, {x: 637228800000, y: 36.60}, {x: 637315200000, y: 35.65}, {x: 637401600000, y: 34.36}, {x: 637488000000, y: 33.61}, {x: 637574400000, y: 34.24}, {x: 637833600000, y: 32.79}, {x: 637920000000, y: 34.41}, {x: 638006400000, y: 34.11}, {x: 638092800000, y: 33.91}, {x: 638179200000, y: 33.33}, {x: 638438400000, y: 32.99}, {x: 638524800000, y: 34.17}, {x: 638611200000, y: 33.50}, {x: 638697600000, y: 35.64}, {x: 638784000000, y: 35.50}, {x: 639039600000, y: 33.11}, {x: 639126000000, y: 34.08}, {x: 639212400000, y: 35.69}, {x: 639298800000, y: 38.24}, {x: 639385200000, y: 40.86}, {x: 639644400000, y: 41.99}, {x: 639730800000, y: 44.45}, {x: 639817200000, y: 45.06}, {x: 639903600000, y: 44.32}, {x: 639990000000, y: 43.70}, {x: 640249200000, y: 44.97}, {x: 640335600000, y: 44.92}, {x: 640422000000, y: 44.11}, {x: 640508400000, y: 44.42}, {x: 640594800000, y: 43.90}, {x: 640854000000, y: 41.91}, {x: 640940400000, y: 41.60}, {x: 641026800000, y: 41.84}, {x: 641113200000, y: 42.55}, {x: 641199600000, y: 40.56}, {x: 641458800000, y: 39.99}, {x: 641545200000, y: 43.51}, {x: 641631600000, y: 43.17}, {x: 641718000000, y: 40.52}, {x: 641804400000, y: 41.06}, {x: 642063600000, y: 40.15}, {x: 642150000000, y: 43.82}, {x: 642236400000, y: 43.19}, {x: 642322800000, y: 40.99}, {x: 642409200000, y: 41.16}, {x: 642668400000, y: 41.02}, {x: 642754800000, y: 40.03}, {x: 642841200000, y: 36.46}, {x: 642927600000, y: 39.11}, {x: 643014000000, y: 41.10}, {x: 643273200000, y: 41.15}, {x: 643359600000, y: 39.01}, {x: 643446000000, y: 39.48}, {x: 643532400000, y: 41.89}, {x: 643618800000, y: 40.74}, {x: 643878000000, y: 38.88}, {x: 643964400000, y: 38.11}, {x: 644050800000, y: 40.39}, {x: 644137200000, y: 38.28}, {x: 644223600000, y: 39.96}, {x: 644482800000, y: 39.37}, {x: 644569200000, y: 39.39}, {x: 644655600000, y: 39.62}, {x: 644742000000, y: 38.99}, {x: 644828400000, y: 40.25}, {x: 645087600000, y: 42.85}, {x: 645174000000, y: 45.91}, {x: 645260400000, y: 46.66}, {x: 645346800000, y: 48.08}, {x: 645433200000, y: 51.00}, {x: 645692400000, y: 50.61}, {x: 645778800000, y: 54.55}, {x: 645865200000, y: 53.59}, {x: 645951600000, y: 53.39}, {x: 646038000000, y: 54.61}, {x: 646297200000, y: 55.02}, {x: 646383600000, y: 57.35}, {x: 646470000000, y: 56.95}, {x: 646556400000, y: 60.08}, {x: 646642800000, y: 59.80}, {x: 646902000000, y: 61.29}, {x: 646988400000, y: 63.45}, {x: 647074800000, y: 62.07}, {x: 647161200000, y: 59.01}, {x: 647247600000, y: 59.76}, {x: 647506800000, y: 60.08}, {x: 647593200000, y: 60.96}, {x: 647679600000, y: 60.56}, {x: 647766000000, y: 58.60}, {x: 647852400000, y: 57.40}, {x: 648111600000, y: 59.86}, {x: 648198000000, y: 58.76}, {x: 648284400000, y: 57.54}, {x: 648370800000, y: 57.78}, {x: 648457200000, y: 54.33}, {x: 648716400000, y: 54.57}, {x: 648802800000, y: 53.69}, {x: 648889200000, y: 57.02}, {x: 648975600000, y: 52.30}, {x: 649062000000, y: 49.79}, {x: 649321200000, y: 47.40}, {x: 649407600000, y: 45.44}, {x: 649494000000, y: 46.75}, {x: 649580400000, y: 44.19}, {x: 649666800000, y: 43.05}, {x: 649926000000, y: 43.99}, {x: 650012400000, y: 45.99}, {x: 650098800000, y: 42.15}, {x: 650185200000, y: 41.84}, {x: 650271600000, y: 43.30}, {x: 650530800000, y: 41.57}, {x: 650617200000, y: 42.13}, {x: 650703600000, y: 43.29}, {x: 650790000000, y: 43.98}, {x: 650876400000, y: 44.51}, {x: 651135600000, y: 45.50}, {x: 651222000000, y: 43.63}, {x: 651308400000, y: 41.93}, {x: 651394800000, y: 38.41}, {x: 651481200000, y: 41.01}, {x: 651740400000, y: 38.17}, {x: 651826800000, y: 38.32}, {x: 651913200000, y: 38.27}, {x: 651999600000, y: 36.10}, {x: 652086000000, y: 34.62}, {x: 652345200000, y: 33.91}, {x: 652431600000, y: 34.25}, {x: 652518000000, y: 33.97}, {x: 652604400000, y: 35.11}, {x: 652690800000, y: 35.05}, {x: 652950000000, y: 36.37}, {x: 653036400000, y: 35.54}, {x: 653122800000, y: 35.80}, {x: 653209200000, y: 36.75}, {x: 653295600000, y: 35.48}, {x: 653554800000, y: 36.78}, {x: 653641200000, y: 34.35}, {x: 653727600000, y: 32.62}, {x: 653814000000, y: 32.66}, {x: 653900400000, y: 31.45}, {x: 654159600000, y: 29.29}, {x: 654246000000, y: 31.18}, {x: 654332400000, y: 29.47}, {x: 654418800000, y: 28.40}, {x: 654505200000, y: 28.21}, {x: 654764400000, y: 27.73}, {x: 654850800000, y: 27.08}, {x: 654937200000, y: 25.32}, {x: 655023600000, y: 25.69}, {x: 655110000000, y: 27.28}, {x: 655369200000, y: 28.53}, {x: 655455600000, y: 27.88}, {x: 655542000000, y: 28.17}, {x: 655628400000, y: 26.22}, {x: 655714800000, y: 26.07}, {x: 655974000000, y: 28.42}, {x: 656060400000, y: 28.27}, {x: 656146800000, y: 29.76}, {x: 656233200000, y: 29.58}, {x: 656319600000, y: 29.41}, {x: 656578800000, y: 29.34}, {x: 656665200000, y: 29.45}, {x: 656751600000, y: 27.93}, {x: 656838000000, y: 27.68}, {x: 656924400000, y: 27.42}, {x: 657187200000, y: 25.79}, {x: 657273600000, y: 25.84}, {x: 657360000000, y: 26.00}, {x: 657446400000, y: 26.57}, {x: 657532800000, y: 26.66}, {x: 657792000000, y: 26.40}, {x: 657878400000, y: 28.06}, {x: 657964800000, y: 27.58}, {x: 658051200000, y: 27.18}, {x: 658137600000, y: 27.71}, {x: 658396800000, y: 26.37}, {x: 658483200000, y: 26.53}, {x: 658569600000, y: 26.19}, {x: 658656000000, y: 25.29}, {x: 658742400000, y: 27.33}, {x: 659001600000, y: 26.08}, {x: 659088000000, y: 26.26}, {x: 659174400000, y: 26.35}, {x: 659260800000, y: 24.88}, {x: 659347200000, y: 23.71}, {x: 659606400000, y: 25.77}, {x: 659692800000, y: 26.03}, {x: 659779200000, y: 27.38}, {x: 659865600000, y: 27.82}, {x: 659952000000, y: 27.61}, {x: 660211200000, y: 26.15}, {x: 660297600000, y: 26.79}, {x: 660384000000, y: 26.78}, {x: 660470400000, y: 28.69}, {x: 660556800000, y: 29.38}, {x: 660816000000, y: 30.16}, {x: 660902400000, y: 29.42}, {x: 660988800000, y: 29.06}, {x: 661075200000, y: 28.05}, {x: 661161600000, y: 29.48}, {x: 661420800000, y: 28.48}, {x: 661507200000, y: 28.67}, {x: 661593600000, y: 28.27}, {x: 661680000000, y: 27.29}, {x: 661766400000, y: 26.88}, {x: 662025600000, y: 27.12}, {x: 662112000000, y: 27.02}, {x: 662198400000, y: 27.08}, {x: 662284800000, y: 24.53}, {x: 662371200000, y: 25.19}, {x: 662630400000, y: 26.70}, {x: 662716800000, y: 27.23}, {x: 662803200000, y: 26.26}, {x: 662889600000, y: 26.46}, {x: 662976000000, y: 25.38}, {x: 663235200000, y: 25.23}, {x: 663321600000, y: 25.53}, {x: 663408000000, y: 25.71}, {x: 663494400000, y: 25.39}, {x: 663580800000, y: 24.35}, {x: 663840000000, y: 23.64}, {x: 663926400000, y: 22.98}, {x: 664012800000, y: 22.75}, {x: 664099200000, y: 22.70}, {x: 664185600000, y: 21.56}, {x: 664444800000, y: 22.65}, {x: 664531200000, y: 21.54}, {x: 664617600000, y: 20.68}, {x: 664704000000, y: 21.37}, {x: 664790400000, y: 22.44}, {x: 665049600000, y: 23.89}, {x: 665136000000, y: 25.02}, {x: 665222400000, y: 26.84}, {x: 665308800000, y: 26.11}, {x: 665395200000, y: 25.91}, {x: 665654400000, y: 27.21}, {x: 665740800000, y: 26.37}, {x: 665827200000, y: 26.81}, {x: 665913600000, y: 26.42}, {x: 666000000000, y: 26.73}, {x: 666259200000, y: 27.25}, {x: 666345600000, y: 25.01}, {x: 666432000000, y: 24.55}, {x: 666518400000, y: 25.34}, {x: 666604800000, y: 25.37}, {x: 666864000000, y: 27.51}, {x: 666950400000, y: 27.51}, {x: 667036800000, y: 28.65}, {x: 667123200000, y: 28.90}, {x: 667209600000, y: 29.22}, {x: 667468800000, y: 29.77}, {x: 667555200000, y: 29.21}, {x: 667641600000, y: 29.81}, {x: 667728000000, y: 27.75}, {x: 667814400000, y: 28.56}, {x: 668073600000, y: 28.06}, {x: 668160000000, y: 26.70}, {x: 668246400000, y: 26.39}, {x: 668332800000, y: 26.42}, {x: 668419200000, y: 29.05}, {x: 668678400000, y: 27.84}, {x: 668764800000, y: 27.67}, {x: 668851200000, y: 26.75}, {x: 668937600000, y: 26.20}, {x: 669024000000, y: 27.33}, {x: 669283200000, y: 27.55}, {x: 669369600000, y: 26.79}, {x: 669456000000, y: 25.29}, {x: 669542400000, y: 25.17}, {x: 669628800000, y: 25.55}, {x: 669888000000, y: 23.87}, {x: 669974400000, y: 22.92}, {x: 670060800000, y: 23.80}, {x: 670147200000, y: 24.18}, {x: 670233600000, y: 22.56}, {x: 670492800000, y: 21.93}, {x: 670579200000, y: 20.96}, {x: 670665600000, y: 21.94}, {x: 670752000000, y: 21.48}, {x: 670838400000, y: 22.17}, {x: 671094000000, y: 22.68}, {x: 671180400000, y: 20.56}, {x: 671266800000, y: 18.98}, {x: 671353200000, y: 19.93}, {x: 671439600000, y: 19.53}, {x: 671698800000, y: 18.93}, {x: 671785200000, y: 19.41}, {x: 671871600000, y: 18.61}, {x: 671958000000, y: 18.88}, {x: 672044400000, y: 18.70}, {x: 672303600000, y: 18.80}, {x: 672390000000, y: 17.72}, {x: 672476400000, y: 17.65}, {x: 672562800000, y: 17.99}, {x: 672649200000, y: 17.01}, {x: 672908400000, y: 17.05}, {x: 672994800000, y: 16.39}, {x: 673081200000, y: 15.96}, {x: 673167600000, y: 15.82}, {x: 673254000000, y: 16.26}, {x: 673513200000, y: 16.33}, {x: 673599600000, y: 15.73}, {x: 673686000000, y: 15.02}, {x: 673772400000, y: 14.51}, {x: 673858800000, y: 14.71}, {x: 674118000000, y: 15.29}, {x: 674204400000, y: 15.46}, {x: 674290800000, y: 15.30}, {x: 674377200000, y: 14.14}, {x: 674463600000, y: 13.94}, {x: 674722800000, y: 13.01}, {x: 674809200000, y: 13.59}, {x: 674895600000, y: 13.67}, {x: 674982000000, y: 13.28}, {x: 675068400000, y: 13.11}, {x: 675327600000, y: 13.52}, {x: 675414000000, y: 14.02}, {x: 675500400000, y: 14.53}, {x: 675586800000, y: 14.61}, {x: 675673200000, y: 14.53}, {x: 675932400000, y: 14.29}, {x: 676018800000, y: 14.46}, {x: 676105200000, y: 14.07}, {x: 676191600000, y: 13.91}, {x: 676278000000, y: 14.08}, {x: 676537200000, y: 13.63}, {x: 676623600000, y: 14.38}, {x: 676710000000, y: 14.86}, {x: 676796400000, y: 14.82}, {x: 676882800000, y: 14.04}, {x: 677142000000, y: 14.63}, {x: 677228400000, y: 14.83}, {x: 677314800000, y: 15.33}, {x: 677401200000, y: 14.67}, {x: 677487600000, y: 14.18}, {x: 677746800000, y: 14.40}, {x: 677833200000, y: 14.45}, {x: 677919600000, y: 14.78}, {x: 678006000000, y: 14.93}, {x: 678092400000, y: 14.09}, {x: 678351600000, y: 13.56}, {x: 678438000000, y: 14.26}, {x: 678524400000, y: 14.36}, {x: 678610800000, y: 14.82}, {x: 678697200000, y: 15.96}, {x: 678956400000, y: 15.83}, {x: 679042800000, y: 15.92}, {x: 679129200000, y: 15.29}, {x: 679215600000, y: 16.29}, {x: 679302000000, y: 15.31}, {x: 679561200000, y: 15.13}, {x: 679647600000, y: 15.59}, {x: 679734000000, y: 14.97}, {x: 679820400000, y: 15.81}, {x: 679906800000, y: 15.59}, {x: 680166000000, y: 14.83}, {x: 680252400000, y: 14.57}, {x: 680338800000, y: 14.24}, {x: 680425200000, y: 14.49}, {x: 680511600000, y: 13.80}, {x: 680770800000, y: 14.17}, {x: 680857200000, y: 14.40}, {x: 680943600000, y: 14.31}, {x: 681030000000, y: 13.89}, {x: 681116400000, y: 13.59}, {x: 681375600000, y: 13.36}, {x: 681462000000, y: 13.33}, {x: 681548400000, y: 13.26}, {x: 681634800000, y: 13.71}, {x: 681721200000, y: 13.67}, {x: 681980400000, y: 12.87}, {x: 682066800000, y: 14.03}, {x: 682153200000, y: 13.95}, {x: 682239600000, y: 13.11}, {x: 682326000000, y: 14.05}, {x: 682585200000, y: 14.47}, {x: 682671600000, y: 14.45}, {x: 682758000000, y: 15.14}, {x: 682844400000, y: 15.65}, {x: 682930800000, y: 15.15}, {x: 683190000000, y: 15.22}, {x: 683276400000, y: 15.38}, {x: 683362800000, y: 16.42}, {x: 683449200000, y: 16.26}, {x: 683535600000, y: 16.51}, {x: 683794800000, y: 15.66}, {x: 683881200000, y: 15.88}, {x: 683967600000, y: 16.36}, {x: 684054000000, y: 15.87}, {x: 684140400000, y: 15.61}, {x: 684399600000, y: 16.63}, {x: 684486000000, y: 15.88}, {x: 684572400000, y: 17.21}, {x: 684658800000, y: 18.46}, {x: 684745200000, y: 18.76}, {x: 685004400000, y: 18.39}, {x: 685090800000, y: 18.14}, {x: 685177200000, y: 17.31}, {x: 685263600000, y: 17.21}, {x: 685350000000, y: 17.17}, {x: 685609200000, y: 17.21}, {x: 685695600000, y: 16.86}, {x: 685782000000, y: 17.17}, {x: 685868400000, y: 16.20}, {x: 685954800000, y: 15.14}, {x: 686214000000, y: 15.05}, {x: 686300400000, y: 16.09}, {x: 686386800000, y: 16.40}, {x: 686473200000, y: 15.83}, {x: 686559600000, y: 16.53}, {x: 686818800000, y: 16.32}, {x: 686905200000, y: 16.47}, {x: 686991600000, y: 16.59}, {x: 687078000000, y: 16.51}, {x: 687164400000, y: 17.41}, {x: 687423600000, y: 18.17}, {x: 687510000000, y: 17.63}, {x: 687596400000, y: 17.62}, {x: 687682800000, y: 17.69}, {x: 687769200000, y: 17.54}, {x: 688028400000, y: 16.56}, {x: 688114800000, y: 16.83}, {x: 688201200000, y: 15.98}, {x: 688287600000, y: 16.52}, {x: 688374000000, y: 17.08}, {x: 688636800000, y: 17.27}, {x: 688723200000, y: 18.18}, {x: 688809600000, y: 18.67}, {x: 688896000000, y: 18.97}, {x: 688982400000, y: 20.31}, {x: 689241600000, y: 21.30}, {x: 689328000000, y: 20.96}, {x: 689414400000, y: 20.01}, {x: 689500800000, y: 21.13}, {x: 689587200000, y: 21.52}, {x: 689846400000, y: 22.08}, {x: 689932800000, y: 21.88}, {x: 690019200000, y: 21.18}, {x: 690105600000, y: 22.79}, {x: 690192000000, y: 22.51}, {x: 690451200000, y: 23.66}, {x: 690537600000, y: 23.43}, {x: 690624000000, y: 24.08}, {x: 690710400000, y: 24.83}, {x: 690796800000, y: 23.49}, {x: 691056000000, y: 23.43}, {x: 691142400000, y: 23.98}, {x: 691228800000, y: 24.52}, {x: 691315200000, y: 23.32}, {x: 691401600000, y: 23.63}, {x: 691660800000, y: 21.74}, {x: 691747200000, y: 20.03}, {x: 691833600000, y: 20.37}, {x: 691920000000, y: 21.09}, {x: 692006400000, y: 21.33}, {x: 692265600000, y: 20.48}, {x: 692352000000, y: 20.15}, {x: 692438400000, y: 20.33}, {x: 692524800000, y: 19.53}, {x: 692611200000, y: 19.34}, {x: 692870400000, y: 18.63}, {x: 692956800000, y: 18.42}, {x: 693043200000, y: 19.49}, {x: 693129600000, y: 18.75}, {x: 693216000000, y: 18.11}, {x: 693475200000, y: 17.40}, {x: 693561600000, y: 17.40}, {x: 693648000000, y: 17.73}, {x: 693734400000, y: 18.36}, {x: 693820800000, y: 18.14}, {x: 694080000000, y: 18.71}, {x: 694166400000, y: 17.97}, {x: 694252800000, y: 18.90}, {x: 694339200000, y: 18.31}, {x: 694425600000, y: 18.67}, {x: 694684800000, y: 18.78}, {x: 694771200000, y: 19.53}, {x: 694857600000, y: 19.41}, {x: 694944000000, y: 19.42}, {x: 695030400000, y: 20.29}, {x: 695289600000, y: 21.08}, {x: 695376000000, y: 20.69}, {x: 695462400000, y: 21.37}, {x: 695548800000, y: 20.67}, {x: 695635200000, y: 20.79}, {x: 695894400000, y: 20.39}, {x: 695980800000, y: 19.98}, {x: 696067200000, y: 19.35}, {x: 696153600000, y: 18.60}, {x: 696240000000, y: 18.67}, {x: 696499200000, y: 19.41}, {x: 696585600000, y: 20.62}, {x: 696672000000, y: 21.09}, {x: 696758400000, y: 21.43}, {x: 696844800000, y: 20.31}, {x: 697104000000, y: 19.40}, {x: 697190400000, y: 19.82}, {x: 697276800000, y: 19.55}, {x: 697363200000, y: 19.77}, {x: 697449600000, y: 19.33}, {x: 697708800000, y: 18.75}, {x: 697795200000, y: 18.50}, {x: 697881600000, y: 18.39}, {x: 697968000000, y: 19.19}, {x: 698054400000, y: 19.93}, {x: 698313600000, y: 20.15}, {x: 698400000000, y: 22.09}, {x: 698486400000, y: 20.29}, {x: 698572800000, y: 20.37}, {x: 698659200000, y: 19.06}, {x: 698918400000, y: 20.51}, {x: 699004800000, y: 20.06}, {x: 699091200000, y: 19.54}, {x: 699177600000, y: 17.89}, {x: 699264000000, y: 17.57}, {x: 699523200000, y: 16.88}, {x: 699609600000, y: 17.26}, {x: 699696000000, y: 17.15}, {x: 699782400000, y: 15.73}, {x: 699868800000, y: 15.08}, {x: 700128000000, y: 14.73}, {x: 700214400000, y: 14.58}, {x: 700300800000, y: 14.33}, {x: 700387200000, y: 14.76}, {x: 700473600000, y: 15.44}, {x: 700732800000, y: 16.63}, {x: 700819200000, y: 15.63}, {x: 700905600000, y: 15.61}, {x: 700992000000, y: 16.88}, {x: 701078400000, y: 16.26}, {x: 701337600000, y: 15.95}, {x: 701424000000, y: 15.41}, {x: 701510400000, y: 16.14}, {x: 701596800000, y: 15.77}, {x: 701683200000, y: 15.84}, {x: 701942400000, y: 14.41}, {x: 702028800000, y: 15.62}, {x: 702115200000, y: 15.62}, {x: 702201600000, y: 15.85}, {x: 702288000000, y: 17.18}, {x: 702543600000, y: 17.58}, {x: 702630000000, y: 19.25}, {x: 702716400000, y: 19.77}, {x: 702802800000, y: 20.66}, {x: 702889200000, y: 19.70}, {x: 703148400000, y: 20.01}, {x: 703234800000, y: 19.93}, {x: 703321200000, y: 19.94}, {x: 703407600000, y: 19.77}, {x: 703494000000, y: 19.83}];
module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
data: {
datasets: [{
data,
type: 'line',
pointRadius: 0,
fill: false,
tension: 0,
borderWidth: 2
}]
},
options: {
animation: {
duration: 0
},
scales: {
x: {
type: 'timeseries',
offset: true,
ticks: {
major: {
enabled: true,
},
font: function(context) {
return context.tick && context.tick.major ? {weight: 'bold'} : undefined;
},
source: 'data',
autoSkip: true,
autoSkipPadding: 75,
maxRotation: 0,
sampleSize: 100,
maxTicksLimit: 3
},
// manually set major ticks so that test passes in all time zones with moment adapter
afterBuildTicks: function(scale) {
const ticks = scale.ticks;
const major = [0, 264, 522];
for (let i = 0; i < ticks.length; i++) {
ticks[i].major = major.indexOf(i) >= 0;
}
}
},
y: {
type: 'linear',
border: {
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.timeseries/ticks-reverse-max.js | test/fixtures/scale.timeseries/ticks-reverse-max.js | module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
max: '2050',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
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.timeseries/ticks-reverse.js | test/fixtures/scale.timeseries/ticks-reverse.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
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.timeseries/source-auto.js | test/fixtures/scale.timeseries/source-auto.js | module.exports = {
threshold: 0.01,
tolerance: 0.0025,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'auto'
}
},
y: {
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.timeseries/source-data.js | test/fixtures/scale.timeseries/source-data.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'data'
}
},
y: {
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.timeseries/source-labels-offset-min-max.js | test/fixtures/scale.timeseries/source-labels-offset-min-max.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
min: '2012',
max: '2051',
offset: true,
time: {
parser: 'YYYY',
},
ticks: {
source: 'labels'
}
},
y: {
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.timeseries/ticks-reverse-min-max.js | test/fixtures/scale.timeseries/ticks-reverse-min-max.js | module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
min: '2012',
max: '2050',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
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/plugin.filler/radar/beforeDraw.js | test/fixtures/plugin.filler/radar/beforeDraw.js | module.exports = {
config: {
type: 'radar',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [9, 7, 3, 5, 2, 3],
fill: 'origin',
borderColor: 'red',
backgroundColor: 'green',
pointRadius: 12,
pointBackgroundColor: 'red'
}]
},
options: {
layout: {
padding: 20
},
plugins: {
legend: false,
filler: {
drawTime: 'beforeDraw'
}
},
scales: {
r: {
angleLines: {
color: 'rgba(0,0,0,0.5)',
lineWidth: 2
},
grid: {
color: 'rgba(0,0,0,0.5)',
lineWidth: 2
},
pointLabels: {
display: false
},
ticks: {
beginAtZero: true,
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/plugin.filler/radar/dataset/order.js | test/fixtures/plugin.filler/radar/dataset/order.js | module.exports = {
config: {
type: 'radar',
data: {
labels: ['English', 'Maths', 'Physics', 'Chemistry', 'Biology', 'History'],
datasets: [
{
order: 1,
borderColor: '#D50000',
backgroundColor: 'rgba(245, 205, 121,0.5)',
data: [65, 75, 70, 80, 60, 80]
},
{
order: 0,
backgroundColor: 'rgba(0, 168, 255,1)',
data: [54, 65, 60, 70, 70, 75]
}
]
},
options: {
plugins: {
legend: false,
title: false,
tooltip: false
},
scales: {
r: {
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/plugin.filler/line/stack-multiple-scales.js | test/fixtures/plugin.filler/line/stack-multiple-scales.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['0', '1', '2', '3'],
datasets: [{
backgroundColor: 'rgba(255, 0, 0, 0.5)',
data: [null, 1, 1, 1],
fill: 'stack'
}, {
backgroundColor: 'rgba(0, 255, 0, 0.5)',
data: [null, 2, 2, 2],
fill: 'stack'
}, {
backgroundColor: 'rgba(0, 0, 255, 0.5)',
data: [null, 3, 3, 3],
fill: 'stack'
}, {
backgroundColor: 'rgba(255, 0, 255, 0.5)',
data: [0.5, 0.5, 0.5, null],
fill: 'stack',
yAxisID: 'y2'
}, {
backgroundColor: 'rgba(0, 0, 0, 0.5)',
data: [1.5, 1.5, 1.5, null],
fill: 'stack',
yAxisID: 'y2'
}, {
backgroundColor: 'rgba(255, 255, 0, 0.5)',
data: [2.5, 2.5, 2.5, null],
fill: 'stack',
yAxisID: 'y2'
}]
},
options: {
responsive: false,
spanGaps: false,
scales: {
x: {
display: false
},
y: {
position: 'right',
stacked: true,
min: 0
},
y2: {
position: 'left',
stacked: true,
min: 0
}
},
elements: {
point: {
radius: 0
},
line: {
borderColor: 'transparent',
tension: 0
}
},
plugins: {
legend: false,
title: false,
tooltip: false
}
}
},
options: {
spriteText: true,
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/plugin.filler/line/before-datasets-draw.js | test/fixtures/plugin.filler/line/before-datasets-draw.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['15:00', '16:00', '17:00', '18:00', '19:00', '20:00'],
datasets: [
{
borderColor: '#00ADEE80',
backgroundColor: '#00ADEE',
data: [0, 1, 1, 2, 2, 0],
},
{
borderColor: '#BD262880',
backgroundColor: '#BD2628',
data: [0, 2, 2, 1, 1, 1],
}
]
},
options: {
borderWidth: 4,
fill: true,
radius: 20,
pointBackgroundColor: '#ffff',
cubicInterpolationMode: 'monotone',
plugins: {
legend: false,
filler: {
drawTime: 'beforeDatasetsDraw'
}
},
scales: {
x: {
display: false,
},
y: {
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/plugin.filler/line/before-dataset-draw.js | test/fixtures/plugin.filler/line/before-dataset-draw.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['15:00', '16:00', '17:00', '18:00', '19:00', '20:00'],
datasets: [
{
borderColor: '#00ADEE80',
backgroundColor: '#00ADEE',
data: [0, 1, 1, 2, 2, 0],
},
{
borderColor: '#BD262880',
backgroundColor: '#BD2628',
data: [0, 2, 2, 1, 1, 1],
}
]
},
options: {
borderWidth: 4,
fill: true,
radius: 20,
pointBackgroundColor: '#ffff',
cubicInterpolationMode: 'monotone',
plugins: {
legend: false,
filler: {
drawTime: 'beforeDatasetDraw'
}
},
scales: {
x: {
display: false,
},
y: {
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/plugin.filler/line/points-outside-canvas-update.js | test/fixtures/plugin.filler/line/points-outside-canvas-update.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8699',
config: {
type: 'line',
data: {
datasets: [{
backgroundColor: 'red',
data: [{x: 0, y: 3}, {x: 2, y: -3}, {x: 4, y: 0}, {x: 6, y: 5}, {x: 8, y: -5}, {x: 10, y: 0}],
fill: 'origin'
}]
},
options: {
plugins: {
legend: false,
title: false,
},
scales: {
x: {
type: 'linear',
display: false
},
y: {
display: false
}
}
}
},
options: {
run(chart) {
chart.scales.x.options.min = 5;
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.filler/line/shape.js | test/fixtures/plugin.filler/line/shape.js | const data = [];
for (let rad = 0; rad <= Math.PI * 2; rad += Math.PI / 45) {
data.push({
x: Math.cos(rad),
y: Math.sin(rad)
});
}
module.exports = {
config: {
type: 'line',
data: {
datasets: [{
data,
fill: 'shape',
backgroundColor: 'rgba(255, 0, 0, 0.5)',
}]
},
options: {
plugins: {
legend: false
},
scales: {
x: {
type: 'linear',
display: false
},
y: {
type: 'linear',
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/plugin.filler/line/above-below-vertical-linechart.js | test/fixtures/plugin.filler/line/above-below-vertical-linechart.js | module.exports = {
config: {
type: 'line',
data: {
labels: [1, 2, 3, 4],
datasets: [
{
data: [200, 400, 200, 400],
cubicInterpolationMode: 'monotone',
tension: 0.4,
spanGaps: true,
borderColor: 'blue',
pointRadius: 0,
fill: {
target: 1,
below: 'rgba(255, 0, 0, 0.4)',
above: 'rgba(53, 221, 53, 0.4)',
}
},
{
data: [400, 200, 400, 200],
cubicInterpolationMode: 'monotone',
tension: 0.4,
spanGaps: true,
borderColor: 'orange',
pointRadius: 0,
},
]
},
options: {
indexAxis: 'y',
// maintainAspectRatio: false,
plugins: {
filler: {
propagate: false
},
datalabels: {
display: false
},
legend: {
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/plugin.filler/line/points-outside-canvas-initial.js | test/fixtures/plugin.filler/line/points-outside-canvas-initial.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8699',
config: {
type: 'line',
data: {
datasets: [{
backgroundColor: 'red',
data: [{x: 0, y: 3}, {x: 2, y: -3}, {x: 4, y: 0}, {x: 6, y: 5}, {x: 8, y: -5}, {x: 10, y: 0}],
fill: 'origin'
}]
},
options: {
plugins: {
legend: false,
title: false,
},
scales: {
x: {
display: false,
type: 'linear',
min: 5
},
y: {
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/plugin.filler/line/vertical.js | test/fixtures/plugin.filler/line/vertical.js | const data = [
{y: 1, x: 12},
{y: 3, x: 14},
{y: 4, x: 20},
{y: 6, x: 13},
{y: 9, x: 18},
];
module.exports = {
config: {
type: 'line',
data: {
datasets: [{
data: data,
borderColor: 'red',
fill: false,
}, {
data: data.map((v) => ({y: v.y, x: 2 * v.x - 1.5 * v.y})),
fill: '-1',
borderColor: 'blue',
backgroundColor: 'rgba(255, 200, 0, 0.5)',
}]
},
options: {
indexAxis: 'y',
radius: 0,
plugins: {
legend: false
},
scales: {
x: {
display: false,
type: 'linear'
},
y: {
display: false,
type: 'linear'
}
}
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.filler/line/segments/alignToPixels.js | test/fixtures/plugin.filler/line/segments/alignToPixels.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [
{x: 0, y: 0},
{x: 1, y: 20},
{x: 1.00001, y: 30},
{x: 2, y: 100},
{x: 2.00001, y: 100}
],
backgroundColor: '#FF000070',
borderColor: 'black',
radius: 0,
segment: {
borderDash: ctx => ctx.p0.parsed.x > 1 ? [10, 5] : undefined,
},
fill: true
}
]
},
options: {
plugins: {
legend: false
},
scales: {
x: {
type: 'linear',
alignToPixels: true,
display: false
},
y: {
display: false
}
}
}
},
options: {
canvas: {
width: 300,
height: 240
}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.filler/line/segments/gap.js | test/fixtures/plugin.filler/line/segments/gap.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['a', 'b', 'c', 'd', 'e', 'f'],
datasets: [{
data: [1, 3, NaN, NaN, 2, 1],
borderColor: 'transparent',
backgroundColor: 'black',
fill: true,
segment: {
backgroundColor: ctx => ctx.p0.skip || ctx.p1.skip ? 'red' : undefined,
},
spanGaps: true
}]
},
options: {
scales: {
x: {display: false},
y: {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/plugin.filler/line/segments/slope.js | test/fixtures/plugin.filler/line/segments/slope.js | function slope({p0, p1}) {
return (p0.y - p1.y) / (p1.x - p0.x);
}
module.exports = {
config: {
type: 'line',
data: {
labels: ['a', 'b', 'c', 'd', 'e', 'f'],
datasets: [{
data: [1, 2, 3, 3, 2, 1],
backgroundColor: 'black',
borderColor: 'orange',
fill: true,
segment: {
backgroundColor: ctx => slope(ctx) > 0 ? 'green' : slope(ctx) < 0 ? 'red' : undefined,
}
}]
},
options: {
plugins: {
legend: false
},
scales: {
x: {display: false},
y: {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/plugin.filler/line/drawTimeFillFalse/beforeDraw.js | test/fixtures/plugin.filler/line/drawTimeFillFalse/beforeDraw.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['0', '1', '2', '3', '4', '5'],
datasets: [{
backgroundColor: 'red',
data: [3, -3, 0, 5, -5, 0],
fill: false
}]
},
options: {
plugins: {
legend: false,
title: false,
filler: {
drawTime: 'beforeDraw'
}
},
}
},
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.filler/line/drawTimeFillFalse/beforeDatasetDraw.js | test/fixtures/plugin.filler/line/drawTimeFillFalse/beforeDatasetDraw.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['0', '1', '2', '3', '4', '5'],
datasets: [{
backgroundColor: 'red',
data: [3, -3, 0, 5, -5, 0],
fill: false
}]
},
options: {
plugins: {
legend: false,
title: false,
filler: {
drawTime: 'beforeDatasetDraw'
}
},
}
},
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.filler/line/drawTimeFillFalse/beforeDatasetsDraw.js | test/fixtures/plugin.filler/line/drawTimeFillFalse/beforeDatasetsDraw.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['0', '1', '2', '3', '4', '5'],
datasets: [{
backgroundColor: 'red',
data: [3, -3, 0, 5, -5, 0],
fill: false
}]
},
options: {
plugins: {
legend: false,
title: false,
filler: {
drawTime: 'beforeDatasetsDraw'
}
},
}
},
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.filler/line/dataset/clip-bounds-y-off.js | test/fixtures/plugin.filler/line/dataset/clip-bounds-y-off.js | const labels = [1, 2, 3, 4, 5, 6, 7];
const values = [65, 59, 80, 81, 56, 55, 40];
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/12052',
config: {
type: 'line',
data: {
labels,
datasets: [
{
data: values.map(v => v - 10),
fill: '1',
borderColor: 'rgb(255, 0, 0)',
backgroundColor: 'rgba(255, 0, 0, 0.25)',
yAxisID: 'y1',
},
{
data: values,
fill: false,
borderColor: 'rgb(255, 0, 0)',
yAxisID: 'y1',
},
{
data: values,
fill: false,
borderColor: 'rgb(0, 0, 255)',
yAxisID: 'y2',
},
{
data: values.map(v => v + 10),
fill: '-1',
borderColor: 'rgb(0, 0, 255)',
backgroundColor: 'rgba(0, 0, 255, 0.25)',
yAxisID: 'y2',
}
]
},
options: {
clip: false,
animation: false,
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false
},
elements: {
point: {
radius: 0
},
line: {
cubicInterpolationMode: 'monotone',
borderColor: 'transparent',
tension: 0
}
},
scales: {
y2: {
axis: 'y',
stack: 'stack',
max: 80,
display: false,
},
y1: {
min: 50,
axis: 'y',
stack: 'stack',
display: false,
},
x: {
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/plugin.filler/line/dataset/clip-bounds-x-off.js | test/fixtures/plugin.filler/line/dataset/clip-bounds-x-off.js | const labels = [1, 2, 3, 4, 5, 6, 7];
const values = [65, 59, 80, 81, 56, 55, 40];
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/12052',
config: {
type: 'line',
data: {
labels,
datasets: [
{
data: values.map(v => v - 10),
fill: '1',
borderColor: 'rgb(255, 0, 0)',
backgroundColor: 'rgba(255, 0, 0, 0.25)',
xAxisID: 'x1',
},
{
data: values,
fill: false,
borderColor: 'rgb(255, 0, 0)',
xAxisID: 'x1',
},
{
data: values,
fill: false,
borderColor: 'rgb(0, 0, 255)',
xAxisID: 'x2',
},
{
data: values.map(v => v + 10),
fill: '-1',
borderColor: 'rgb(0, 0, 255)',
backgroundColor: 'rgba(0, 0, 255, 0.25)',
xAxisID: 'x2',
}
]
},
options: {
clip: false,
indexAxis: 'y',
animation: false,
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false
},
elements: {
point: {
radius: 0
},
line: {
cubicInterpolationMode: 'monotone',
borderColor: 'transparent',
tension: 0
}
},
scales: {
x2: {
axis: 'x',
stack: 'stack',
max: 80,
display: false,
},
x1: {
min: 50,
axis: 'x',
stack: 'stack',
display: false,
},
y: {
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/plugin.filler/line/dataset/interpolated.js | test/fixtures/plugin.filler/line/dataset/interpolated.js | const data1 = [];
const data2 = [];
const data3 = [];
for (let i = 0; i < 200; i++) {
const a = i / Math.PI / 10;
data1.push({x: i, y: i < 86 || i > 104 && i < 178 ? Math.sin(a) : NaN});
if (i % 10 === 0) {
data2.push({x: i, y: Math.cos(a)});
}
if (i % 15 === 0) {
data3.push({x: i, y: Math.cos(a + Math.PI / 2)});
}
}
module.exports = {
config: {
type: 'line',
data: {
datasets: [{
borderColor: 'rgba(255, 0, 0, 0.5)',
backgroundColor: 'rgba(255, 0, 0, 0.25)',
data: data1,
fill: false,
}, {
borderColor: 'rgba(0, 0, 255, 0.5)',
backgroundColor: 'rgba(0, 0, 255, 0.25)',
data: data2,
fill: 0,
}, {
borderColor: 'rgba(0, 255, 0, 0.5)',
backgroundColor: 'rgba(0, 255, 0, 0.25)',
data: data3,
fill: 1,
}]
},
options: {
animation: false,
responsive: false,
datasets: {
line: {
tension: 0.4,
borderWidth: 1,
pointRadius: 1.5,
}
},
plugins: {
legend: false,
title: false,
tooltip: false
},
scales: {
x: {
type: 'linear',
display: false
},
y: {
type: 'linear',
display: false
}
}
}
},
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.filler/line/dataset/clip-bounds-y.js | test/fixtures/plugin.filler/line/dataset/clip-bounds-y.js | const labels = [1, 2, 3, 4, 5, 6, 7];
const values = [65, 59, 80, 81, 56, 55, 40];
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/12052',
config: {
type: 'line',
data: {
labels,
datasets: [
{
data: values.map(v => v - 10),
fill: '1',
borderColor: 'rgb(255, 0, 0)',
backgroundColor: 'rgba(255, 0, 0, 0.25)',
yAxisID: 'y1',
},
{
data: values,
fill: false,
borderColor: 'rgb(255, 0, 0)',
yAxisID: 'y1',
},
{
data: values,
fill: false,
borderColor: 'rgb(0, 0, 255)',
yAxisID: 'y2',
},
{
data: values.map(v => v + 10),
fill: '-1',
borderColor: 'rgb(0, 0, 255)',
backgroundColor: 'rgba(0, 0, 255, 0.25)',
yAxisID: 'y2',
}
]
},
options: {
animation: false,
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false
},
elements: {
point: {
radius: 0
},
line: {
cubicInterpolationMode: 'monotone',
borderColor: 'transparent',
tension: 0
}
},
scales: {
y2: {
axis: 'y',
stack: 'stack',
max: 80,
display: false,
},
y1: {
min: 50,
axis: 'y',
stack: 'stack',
display: false,
},
x: {
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/plugin.filler/line/dataset/clip-bounds-x.js | test/fixtures/plugin.filler/line/dataset/clip-bounds-x.js | const labels = [1, 2, 3, 4, 5, 6, 7];
const values = [65, 59, 80, 81, 56, 55, 40];
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/12052',
config: {
type: 'line',
data: {
labels,
datasets: [
{
data: values.map(v => v - 10),
fill: '1',
borderColor: 'rgb(255, 0, 0)',
backgroundColor: 'rgba(255, 0, 0, 0.25)',
xAxisID: 'x1',
},
{
data: values,
fill: false,
borderColor: 'rgb(255, 0, 0)',
xAxisID: 'x1',
},
{
data: values,
fill: false,
borderColor: 'rgb(0, 0, 255)',
xAxisID: 'x2',
},
{
data: values.map(v => v + 10),
fill: '-1',
borderColor: 'rgb(0, 0, 255)',
backgroundColor: 'rgba(0, 0, 255, 0.25)',
xAxisID: 'x2',
}
]
},
options: {
indexAxis: 'y',
animation: false,
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false
},
elements: {
point: {
radius: 0
},
line: {
cubicInterpolationMode: 'monotone',
borderColor: 'transparent',
tension: 0
}
},
scales: {
x2: {
axis: 'x',
stack: 'stack',
max: 80,
display: false,
},
x1: {
min: 50,
axis: 'x',
stack: 'stack',
display: false,
},
y: {
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/element.line/default.js | test/fixtures/element.line/default.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/last-span.js | test/fixtures/element.line/skip/last-span.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 0, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: NaN, y: -5}],
borderColor: 'red',
fill: true,
spanGaps: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/last.js | test/fixtures/element.line/skip/last.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 0, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: NaN, y: -5}],
borderColor: 'red',
fill: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/middle.js | test/fixtures/element.line/skip/middle.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 0, y: 10}, {x: 5, y: 0}, {x: NaN, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/middle-span.js | test/fixtures/element.line/skip/middle-span.js | module.exports = {
config: {
type: 'line',
parsing: false,
data: {
datasets: [
{
data: [{x: 0, y: 10}, {x: 5, y: 0}, {x: null, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: true,
spanGaps: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/all.js | test/fixtures/element.line/skip/all.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 0, y: NaN}, {x: NaN, y: 0}, {x: NaN, y: -10}, {x: 19, y: NaN}],
borderColor: 'red',
fill: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/first-span.js | test/fixtures/element.line/skip/first-span.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: NaN, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: true,
spanGaps: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/skip/first.js | test/fixtures/element.line/skip/first.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: NaN, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: true,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/stepped/after.js | test/fixtures/element.line/stepped/after.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
tension: 0,
stepped: 'after'
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/stepped/default.js | test/fixtures/element.line/stepped/default.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
tension: 0,
stepped: true
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/stepped/middle.js | test/fixtures/element.line/stepped/middle.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
tension: 0,
stepped: 'middle'
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/stepped/before.js | test/fixtures/element.line/stepped/before.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
tension: 0,
stepped: 'before'
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/tension/zero.js | test/fixtures/element.line/tension/zero.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
tension: 0
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/tension/default.js | test/fixtures/element.line/tension/default.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/tension/one.js | test/fixtures/element.line/tension/one.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
tension: 1
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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/element.line/cubicInterpolationMode/monotone-vertical.js | test/fixtures/element.line/cubicInterpolationMode/monotone-vertical.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 10, y: 1}, {x: 0, y: 5}, {x: -10, y: 15}, {x: -5, y: 19}],
borderColor: 'red',
fill: false,
cubicInterpolationMode: 'monotone'
}
]
},
options: {
indexAxis: 'y',
scales: {
x: {display: false, min: -15, max: 15},
y: {type: 'linear', display: false, min: 0, max: 20}
}
}
},
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/element.line/cubicInterpolationMode/monotone-horizontal.js | test/fixtures/element.line/cubicInterpolationMode/monotone-horizontal.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [
{
data: [{x: 1, y: 10}, {x: 5, y: 0}, {x: 15, y: -10}, {x: 19, y: -5}],
borderColor: 'red',
fill: false,
cubicInterpolationMode: 'monotone'
}
]
},
options: {
scales: {
x: {type: 'linear', display: false, min: 0, max: 20},
y: {display: false, min: -15, max: 15}
}
}
},
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.time/ticks-unit.js | test/fixtures/scale.time/ticks-unit.js | module.exports = {
threshold: 0.05,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2015-01-01T20:00:00', '2015-01-02T21:00:00'],
},
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'hour',
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 1200, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/offset-with-no-ticks.js | test/fixtures/scale.time/offset-with-no-ticks.js | const data = {
datasets: [
{
data: [
{
x: moment('15/10/2020', 'DD/MM/YYYY').valueOf(),
y: 55
},
{
x: moment('18/10/2020', 'DD/MM/YYYY').valueOf(),
y: 10
},
{
x: moment('19/10/2020', 'DD/MM/YYYY').valueOf(),
y: 15
}
],
backgroundColor: 'blue'
},
{
data: [
{
x: moment('15/10/2020', 'DD/MM/YYYY').valueOf(),
y: 6
},
{
x: moment('18/10/2020', 'DD/MM/YYYY').valueOf(),
y: 11
},
{
x: moment('19/10/2020', 'DD/MM/YYYY').valueOf(),
y: 16
}
],
backgroundColor: 'green',
},
{
data: [
{
x: moment('15/10/2020', 'DD/MM/YYYY').valueOf(),
y: 7
},
{
x: moment('18/10/2020', 'DD/MM/YYYY').valueOf(),
y: 12
},
{
x: moment('19/10/2020', 'DD/MM/YYYY').valueOf(),
y: 17
}
],
backgroundColor: 'red',
}
]
};
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/7991',
config: {
type: 'bar',
data,
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'month',
},
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 256, 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.time/ticks-round.js | test/fixtures/scale.time/ticks-round.js | module.exports = {
threshold: 0.05,
config: {
type: 'line',
data: {
labels: ['2015-01-01T20:00:00', '2015-02-02T21:00:00', '2015-02-21T01:00:00']
},
options: {
scales: {
x: {
type: 'time',
bounds: 'ticks',
time: {
unit: 'week',
round: 'week'
}
},
y: {
display: false
}
}
}
},
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/scale.time/ticks-stepsize.js | test/fixtures/scale.time/ticks-stepsize.js | module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2015-01-01T20:00:00', '2015-01-01T21:00:00']
},
options: {
scales: {
x: {
type: 'time',
bounds: 'ticks',
time: {
unit: 'hour',
},
ticks: {
stepSize: 2
}
},
y: {
display: false
}
}
}
},
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.time/data-xy.js | test/fixtures/scale.time/data-xy.js | function newDateFromRef(days) {
return moment('01/01/2015 12:00', 'DD/MM/YYYY HH:mm').add(days, 'd').toDate();
}
module.exports = {
threshold: 0.01,
tolerance: 0.003,
config: {
type: 'line',
data: {
datasets: [{
data: [{
x: newDateFromRef(0),
y: 1
}, {
x: newDateFromRef(1),
y: 10
}, {
x: newDateFromRef(2),
y: 0
}, {
x: newDateFromRef(4),
y: 5
}, {
x: newDateFromRef(6),
y: 77
}, {
x: newDateFromRef(7),
y: 9
}, {
x: newDateFromRef(9),
y: 5
}],
fill: false
}],
},
options: {
scales: {
x: {
type: 'time',
position: 'bottom',
ticks: {
maxRotation: 0
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 800, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/offset-with-2-ticks.js | test/fixtures/scale.time/offset-with-2-ticks.js | const data = {
datasets: [
{
label: 1,
backgroundColor: 'orange',
data: [
{
x: '2021-03-24',
y: 464
}
]
},
{
label: 2,
backgroundColor: 'red',
data: [
{
x: '2021-03-24',
y: 464
}
]
},
{
label: 3,
backgroundColor: 'blue',
data: [
{
x: '2021-03-24',
y: 390
}
]
},
{
label: 4,
backgroundColor: 'purple',
data: [
{
x: '2021-03-25',
y: 464
}
]
},
{
label: 5,
backgroundColor: 'black',
data: [
{
x: '2021-03-25',
y: 464
}
]
},
{
label: 6,
backgroundColor: 'cyan',
data: [
{
x: '2021-03-25',
y: 390
}
]
}
]
};
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8718',
config: {
type: 'bar',
data,
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'day',
},
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 256, 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.time/source-data-linear.js | test/fixtures/scale.time/source-data-linear.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'data'
}
},
y: {
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.time/bar-large-gap-between-data.js | test/fixtures/scale.time/bar-large-gap-between-data.js | var date = moment('May 24 2020', 'MMM DD YYYY');
module.exports = {
threshold: 0.05,
config: {
type: 'bar',
data: {
datasets: [{
backgroundColor: 'rgba(255, 0, 0, 0.5)',
data: [
{
x: date.clone().add(-2, 'day'),
y: 20,
},
{
x: date.clone().add(-1, 'day'),
y: 30,
},
{
x: date,
y: 40,
},
{
x: date.clone().add(1, 'day'),
y: 50,
},
{
x: date.clone().add(7, 'day'),
y: 10,
}
]
}]
},
options: {
scales: {
x: {
display: false,
type: 'time',
ticks: {
source: 'auto'
},
time: {
unit: 'day'
}
},
y: {
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.time/source-auto-linear.js | test/fixtures/scale.time/source-auto-linear.js | module.exports = {
threshold: 0.01,
tolerance: 0.0025,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'auto'
}
},
y: {
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.time/source-labels-linear-offset-min-max.js | test/fixtures/scale.time/source-labels-linear-offset-min-max.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4, 5], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
min: '2012',
max: '2051',
offset: true,
time: {
parser: 'YYYY',
},
ticks: {
source: 'labels'
}
},
y: {
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.time/custom-parser.js | test/fixtures/scale.time/custom-parser.js | module.exports = {
threshold: 0.01,
tolerance: 0.0025,
config: {
type: 'line',
data: {
labels: ['foo', 'bar'],
datasets: [{
data: [0, 1],
fill: false
}],
},
options: {
scales: {
x: {
type: 'time',
position: 'bottom',
time: {
unit: 'day',
round: true,
parser: function(label) {
return label === 'foo' ?
moment('2000/01/02', 'YYYY/MM/DD') :
moment('2016/05/08', 'YYYY/MM/DD');
}
},
ticks: {
source: 'labels'
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 256, 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.time/offset-with-1-tick.js | test/fixtures/scale.time/offset-with-1-tick.js | const data = {
datasets: [
{
label: 6,
backgroundColor: 'red',
data: [
{
x: '2021-03-24',
y: 464
}
]
},
{
label: 1,
backgroundColor: 'red',
data: [
{
x: '2021-03-24',
y: 464
}
]
},
{
label: 17,
backgroundColor: 'blue',
data: [
{
x: '2021-03-24',
y: 390
}
]
}
]
};
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8718',
config: {
type: 'bar',
data,
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'day',
},
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 256, 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.time/ticks-reverse-linear.js | test/fixtures/scale.time/ticks-reverse-linear.js | module.exports = {
threshold: 0.01,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
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.time/autoskip-major.js | test/fixtures/scale.time/autoskip-major.js | var date = moment('Jan 01 1990', 'MMM DD YYYY');
var data = [];
for (var i = 0; i < 60; i++) {
data.push({x: date.valueOf(), y: i});
date = date.clone().add(1, 'month');
}
module.exports = {
threshold: 0.05,
config: {
type: 'line',
data: {
datasets: [{
xAxisID: 'x',
data: data,
fill: false
}],
},
options: {
scales: {
x: {
type: 'time',
ticks: {
major: {
enabled: true
},
source: 'data',
autoSkip: true,
maxRotation: 0
}
},
y: {
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.time/ticks-reverse.js | test/fixtures/scale.time/ticks-reverse.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2021'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
reverse: true,
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'labels',
},
},
y: {
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.time/ticks-minunit.js | test/fixtures/scale.time/ticks-minunit.js | module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2015-01-01T20:00:00', '2015-01-02T21:00:00'],
},
options: {
scales: {
x: {
type: 'time',
bounds: 'ticks',
time: {
minUnit: 'day'
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 256, 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.time/labels-date.js | test/fixtures/scale.time/labels-date.js | function newDateFromRef(days) {
return moment('01/01/2015 12:00', 'DD/MM/YYYY HH:mm').add(days, 'd').toDate();
}
module.exports = {
threshold: 0.1,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: [newDateFromRef(0), newDateFromRef(1), newDateFromRef(2), newDateFromRef(4), newDateFromRef(6), newDateFromRef(7), newDateFromRef(9)],
fill: false
},
options: {
scales: {
x: {
type: 'time',
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 1000, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/source-labels-linear.js | test/fixtures/scale.time/source-labels-linear.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'labels'
}
},
y: {
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.time/data-ty.js | test/fixtures/scale.time/data-ty.js | function newDateFromRef(days) {
return moment('01/01/2015 12:00', 'DD/MM/YYYY HH:mm').add(days, 'd').toDate();
}
module.exports = {
threshold: 0.01,
tolerance: 0.003,
config: {
type: 'line',
data: {
datasets: [{
data: [{
t: newDateFromRef(0),
y: 1
}, {
t: newDateFromRef(1),
y: 10
}, {
t: newDateFromRef(2),
y: 0
}, {
t: newDateFromRef(4),
y: 5
}, {
t: newDateFromRef(6),
y: 77
}, {
t: newDateFromRef(7),
y: 9
}, {
t: newDateFromRef(9),
y: 5
}],
fill: false,
parsing: {
xAxisKey: 't'
}
}],
},
options: {
scales: {
x: {
type: 'time',
position: 'bottom',
ticks: {
maxRotation: 0
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 800, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/labels-strings.js | test/fixtures/scale.time/labels-strings.js | module.exports = {
threshold: 0.05,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2015-01-01T12:00:00', '2015-01-02T21:00:00', '2015-01-03T22:00:00', '2015-01-05T23:00:00', '2015-01-07T03:00', '2015-01-08T10:00', '2015-01-10T12:00']
},
options: {
scales: {
x: {
type: 'time',
},
y: {
display: false
}
}
}
},
options: {
spriteText: true,
canvas: {width: 1000, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/ticks-reverse-linear-min-max.js | test/fixtures/scale.time/ticks-reverse-linear-min-max.js | module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4, 5], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
min: '2012',
max: '2050',
time: {
parser: 'YYYY'
},
reverse: true,
ticks: {
source: 'labels'
}
},
y: {
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.time/ticks-reverse-offset.js | test/fixtures/scale.time/ticks-reverse-offset.js | module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2021'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
reverse: true,
offset: true,
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'labels',
},
},
y: {
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.time/skip-null-gridlines.js | test/fixtures/scale.time/skip-null-gridlines.js | module.exports = {
threshold: 0.01,
tolerance: 0.0025,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'auto',
callback: (tick, index) => index % 2 === 0 ? null : tick,
}
},
y: {
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.time/labels.js | test/fixtures/scale.time/labels.js | var timeOpts = {
parser: 'YYYY',
unit: 'year',
displayFormats: {
year: 'YYYY'
}
};
module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: ['1975', '1976', '1977'],
xLabels: ['1985', '1986', '1987'],
yLabels: ['1995', '1996', '1997']
},
options: {
scales: {
x: {
type: 'time',
labels: ['2015', '2016', '2017'],
time: timeOpts
},
x2: {
type: 'time',
position: 'bottom',
time: timeOpts
},
y: {
type: 'time',
time: timeOpts
},
y2: {
position: 'left',
type: 'time',
labels: ['2005', '2006', '2007'],
time: timeOpts
}
}
}
},
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.time/ticks-capacity.js | test/fixtures/scale.time/ticks-capacity.js | module.exports = {
threshold: 0.01,
tolerance: 0.002,
config: {
type: 'line',
data: {
labels: [
'2012-01-01', '2013-01-01', '2014-01-01', '2015-01-01',
'2016-01-01', '2017-01-01', '2018-01-01', '2019-01-01'
]
},
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'year'
}
},
y: {
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.time/skip-undefined-gridlines.js | test/fixtures/scale.time/skip-undefined-gridlines.js | module.exports = {
threshold: 0.01,
tolerance: 0.0025,
config: {
type: 'line',
data: {
labels: ['2017', '2018', '2019', '2020', '2025'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'YYYY',
unit: 'year'
},
ticks: {
source: 'auto',
callback: (tick, index) => index % 2 === 0 ? undefined : tick,
}
},
y: {
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.time/invalid-data.js | test/fixtures/scale.time/invalid-data.js | module.exports = {
description: 'Invalid data, https://github.com/chartjs/Chart.js/issues/5563',
config: {
type: 'line',
data: {
datasets: [{
data: [{
x: '14:45:00',
y: 20,
}, {
x: '20:30:00',
y: 10,
}, {
x: '25:15:00',
y: 15,
}, {
x: null,
y: 15,
}, {
x: undefined,
y: 15,
}, {
x: NaN,
y: 15,
}, {
x: 'monday',
y: 15,
}],
}]
},
options: {
scales: {
x: {
type: 'time',
time: {
parser: 'HH:mm:ss',
unit: 'hour'
},
},
},
layout: {
padding: 16
}
}
},
options: {
spriteText: true,
canvas: {width: 1000, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/offset-auto-skip-ticks.js | test/fixtures/scale.time/offset-auto-skip-ticks.js | const data = {
labels: [],
datasets: [{
label: 'Dataset',
borderColor: '#2f54eb',
data: [{
y: 3,
x: 1646345700000
}, {
y: 7,
x: 1646346600000
}, {
y: 9,
x: 1646347500000
}, {
y: 5,
x: 1646348400000
}, {
y: 5,
x: 1646349300000
}],
}]
};
module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/10215',
config: {
type: 'bar',
data,
options: {
maintainAspectRatio: false,
scales: {
x: {
type: 'time',
offset: true,
offsetAfterAutoskip: true,
axis: 'x',
grid: {
offset: true
},
},
y: {
display: false,
}
}
}
},
options: {
spriteText: true,
canvas: {width: 600, height: 400}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.time/negative-times.js | test/fixtures/scale.time/negative-times.js | module.exports = {
config: {
type: 'line',
data: {
datasets: [{
fill: true,
backgroundColor: 'red',
data: [
{x: -1000000, y: 1},
{x: 1000000000, y: 2}
]
}]
},
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'day'
},
ticks: {
display: false
}
},
y: {
ticks: {
display: false
}
}
},
plugins: {
legend: false,
title: false,
tooltip: false
}
}
},
options: {
canvas: {width: 1000, height: 200}
}
};
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/element.point/point-style-image.js | test/fixtures/element.point/point-style-image.js | var imageCanvas = document.createElement('canvas');
var imageContext = imageCanvas.getContext('2d');
imageCanvas.width = 40;
imageCanvas.height = 40;
imageContext.fillStyle = '#f00';
imageContext.beginPath();
imageContext.moveTo(20, 0);
imageContext.lineTo(10, 40);
imageContext.lineTo(20, 30);
imageContext.closePath();
imageContext.fill();
imageContext.fillStyle = '#a00';
imageContext.beginPath();
imageContext.moveTo(20, 0);
imageContext.lineTo(30, 40);
imageContext.lineTo(20, 30);
imageContext.closePath();
imageContext.fill();
module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5, 6, 7],
datasets: [{
data: [0, 0, 0, 0, 0, 0, 0, 0],
showLine: false
}]
},
options: {
responsive: false,
elements: {
point: {
pointStyle: imageCanvas,
rotation: [0, 45, 90, 135, 180, 225, 270, 315]
}
},
layout: {
padding: 20
},
scales: {
x: {display: false},
y: {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/element.point/rotation.js | test/fixtures/element.point/rotation.js | var gradient;
var datasets = ['circle', 'cross', 'crossRot', 'dash', 'line', 'rect', 'rectRounded', 'rectRot', 'star', 'triangle', false].map(function(style, y) {
return {
pointStyle: style,
data: Array.apply(null, Array(17)).map(function(v, x) {
return {x: x, y: 11 - y};
})
};
});
var angles = Array.apply(null, Array(17)).map(function(v, i) {
return -180 + i * 22.5;
});
module.exports = {
config: {
type: 'bubble',
data: {
datasets: datasets
},
options: {
responsive: false,
elements: {
point: {
rotation: angles,
radius: 10,
backgroundColor: function(context) {
if (!gradient) {
gradient = context.chart.ctx.createLinearGradient(0, 0, 512, 256);
gradient.addColorStop(0, '#ff0000');
gradient.addColorStop(1, '#0000ff');
}
return gradient;
},
borderColor: '#cccccc'
}
},
layout: {
padding: 20
},
scales: {
x: {display: false},
y: {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/doughnut-offset.js | test/fixtures/controller.doughnut/doughnut-offset.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['Red', 'Blue', 'Yellow'],
datasets: [{
data: [12, 4, 6],
backgroundColor: ['red', 'blue', 'yellow']
}]
},
options: {
offset: 40,
layout: {
padding: 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-rotation-circumference-8x8.js | test/fixtures/controller.doughnut/doughnut-rotation-circumference-8x8.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)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
rotation: -360,
circumference: 180,
events: []
}
},
options: {
canvas: {
height: 512,
width: 512
},
run: function(chart) {
return new Promise((resolve) => {
for (let i = 0; i < 64; i++) {
const col = i % 8;
const row = Math.floor(i / 8);
const evenodd = row % 2 ? 1 : -1;
chart.options.rotation = col * 45 * evenodd;
chart.options.circumference = 360 - row * 45;
chart.update();
ctx.drawImage(chart.canvas, col * 64, row * 64, 64, 64);
}
ctx.strokeStyle = 'red';
ctx.lineWidth = 0.5;
ctx.beginPath();
for (let i = 1; i < 8; i++) {
ctx.moveTo(i * 64, 0);
ctx.lineTo(i * 64, 511);
ctx.moveTo(0, i * 64);
ctx.lineTo(511, i * 64);
}
ctx.stroke();
Chart.helpers.clearCanvas(chart.canvas);
chart.ctx.drawImage(canvas, 0, 0);
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/doughnut-set-active-elements.js | test/fixtures/controller.doughnut/doughnut-set-active-elements.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9248',
config: {
type: 'doughnut',
data: {
datasets: [
{
data: [34, 33, 17, 16],
backgroundColor: ['#D92323', '#E45757', '#ED8D8D', '#F5C4C4']
}
]
},
options: {
events: [], // for easier saving of the fixture only
borderWidth: 0,
hoverBorderWidth: 4,
hoverBorderColor: 'black',
cutout: '80%',
}
},
options: {
run(chart) {
chart.setActiveElements([{datasetIndex: 0, index: 1}]);
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.doughnut/event-replay.js | test/fixtures/controller.doughnut/event-replay.js | function drawMousePoint(ctx, center) {
ctx.beginPath();
ctx.arc(center.x, center.y, 8, 0, Math.PI * 2);
ctx.fillStyle = 'yellow';
ctx.fill();
}
const canvas = document.createElement('canvas');
canvas.width = 512;
canvas.height = 512;
const ctx = canvas.getContext('2d');
module.exports = {
config: {
type: 'pie',
data: {
datasets: [{
backgroundColor: ['red', 'green', 'blue'],
hoverBackgroundColor: 'black',
data: [1, 1, 1]
}]
}
},
options: {
canvas: {
width: 512,
height: 512
},
async run(chart) {
ctx.drawImage(chart.canvas, 0, 0, 256, 256);
const arc = chart.getDatasetMeta(0).data[0];
const center = arc.getCenterPoint();
await jasmine.triggerMouseEvent(chart, 'mousemove', arc);
drawMousePoint(chart.ctx, center);
ctx.drawImage(chart.canvas, 256, 0, 256, 256);
chart.toggleDataVisibility(0);
chart.update();
drawMousePoint(chart.ctx, center);
ctx.drawImage(chart.canvas, 0, 256, 256, 256);
await jasmine.triggerMouseEvent(chart, 'mouseout', arc);
ctx.drawImage(chart.canvas, 256, 256, 256, 256);
Chart.helpers.clearCanvas(chart.canvas);
chart.ctx.drawImage(canvas, 0, 0);
}
}
};
| 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-outer-radius-percent.js | test/fixtures/controller.doughnut/doughnut-outer-radius-percent.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)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
radius: '30%',
}
}
};
| 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-hidden-single.js | test/fixtures/controller.doughnut/doughnut-hidden-single.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)'
],
}, {
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)'
],
}]
},
options: {
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: false
}
},
},
options: {
run(chart) {
chart.hide(0, 4);
chart.hide(1, 2);
}
}
};
| 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-rotation-300.js | test/fixtures/controller.doughnut/doughnut-rotation-300.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)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
rotation: 300
}
}
};
| 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/single-slice-opacity.js | test/fixtures/controller.doughnut/single-slice-opacity.js | module.exports = {
threshold: 0.05,
config: {
type: 'doughnut',
data: {
labels: ['A'],
datasets: [{
data: [1],
backgroundColor: 'rgba(0,0,0,0.3)',
borderColor: 'rgba(0,0,0,0.5)'
}]
},
},
options: {
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.doughnut/single-slice-circumference-405.js | test/fixtures/controller.doughnut/single-slice-circumference-405.js | module.exports = {
threshold: 0.05,
config: {
type: 'doughnut',
data: {
labels: ['A'],
datasets: [{
data: [1],
backgroundColor: 'rgba(0,0,0,0.3)',
borderColor: 'rgba(0,0,0,0.5)',
circumference: 405
}]
},
},
options: {
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.doughnut/doughnut-full-to-semi.js | test/fixtures/controller.doughnut/doughnut-full-to-semi.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/9832',
config: {
type: 'doughnut',
data: {
datasets: [{
label: 'Set 1',
data: [50, 50, 25],
backgroundColor: ['#BF616A', '#D08770', '#EBCB8B'],
borderWidth: 0
},
{
label: 'Se1 2',
data: [50, 50, 25],
backgroundColor: ['#BF616A', '#D08770', '#EBCB8B'],
borderWidth: 0
}]
},
options: {
rotation: -90
}
},
options: {
canvas: {
width: 512,
height: 512
},
run(chart) {
chart.options.circumference = 180;
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.doughnut/doughnut-hidden.js | test/fixtures/controller.doughnut/doughnut-hidden.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: 4,
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: false
}
},
plugins: [{
id: 'hide',
afterInit(chart) {
chart.toggleDataVisibility(4);
}
}]
}
};
| 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-spacing-and-offset.js | test/fixtures/controller.doughnut/doughnut-spacing-and-offset.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,
offset: [0, 50, 0, 0, 0],
}
}
};
| 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-hide-last.js | test/fixtures/controller.doughnut/doughnut-animation-hide-last.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],
backgroundColor: 'rgba(255, 99, 132, 0.8)',
borderWidth: 4,
borderColor: 'rgb(255, 99, 132)',
}]
},
options: {
animation: {
duration: 0,
easing: 'linear',
},
responsive: false,
plugins: {
legend: false,
title: false,
tooltip: false,
filler: 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.doughnut/pie-offset.js | test/fixtures/controller.doughnut/pie-offset.js | module.exports = {
config: {
type: 'pie',
data: {
labels: ['Red', 'Blue', 'Yellow'],
datasets: [{
data: [12, 4, 6],
backgroundColor: ['red', 'blue', 'yellow']
}]
},
options: {
offset: 40,
layout: {
padding: 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-outer-radius-pixels.js | test/fixtures/controller.doughnut/doughnut-outer-radius-pixels.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)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
options: {
radius: 150,
}
}
};
| 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-NaN.js | test/fixtures/controller.doughnut/doughnut-NaN.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A', 'B', 'C', 'D', 'E'],
datasets: [{
data: [1, 5, NaN, 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)'
],
borderColor: [
'rgb(255, 99, 132)',
'rgb(54, 162, 235)',
'rgb(255, 206, 86)',
'rgb(75, 192, 192)',
'rgb(153, 102, 255)'
]
}]
},
}
};
| 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/single-slice-offset.js | test/fixtures/controller.doughnut/single-slice-offset.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['A'],
datasets: [{
data: [385],
backgroundColor: 'rgba(0,0,0,0.3)',
borderColor: 'rgba(0,0,0,0.5)',
}]
},
options: {
offset: 20
}
}
};
| 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-parsing.js | test/fixtures/controller.doughnut/doughnut-parsing.js | module.exports = {
config: {
type: 'doughnut',
data: {
labels: ['Red', 'Blue', 'Yellow'],
datasets: [{
data: [
{foo: 12},
{foo: 4},
{foo: 6},
],
backgroundColor: ['red', 'blue', 'yellow']
}]
},
options: {
parsing: {
key: 'foo'
}
}
}
};
| 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-rotation-per-dataset.js | test/fixtures/controller.doughnut/doughnut-rotation-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)'
],
rotation: -90
}, {
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)'
],
rotation: 0
}]
},
options: {
circumference: 180,
responsive: false
}
}
};
| 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.