repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/hover-radius-zero.js
test/fixtures/controller.bubble/hover-radius-zero.js
module.exports = { config: { type: 'bubble', data: { labels: [2, 2, 2, 2], datasets: [{ data: [ [1, 1], [1, 2], [1, 3, 20], [1, 4, 20] ] }, { data: [1, 2, 3, 4] }, { data: [{x: 3, y: 1}, {x: 3, y: 2}, {x: 3, y: 3, ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bubble/clip.js
test/fixtures/controller.bubble/clip.js
module.exports = { config: { type: 'line', data: { labels: [0, 5, 10, 15, 20, 25, 30, 50, 55, 60], datasets: [{ data: [6, 11, 10, 10, 3, 22, 7, 24], type: 'bubble', label: 'test', borderColor: '#3e95cd', fill: false }] }, options: { scale...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/anglelines-scriptable.js
test/fixtures/scale.radialLinear/anglelines-scriptable.js
module.exports = { config: { type: 'radar', data: { labels: ['A', 'B', 'C', 'D', 'E'] }, options: { responsive: false, scales: { r: { grid: { display: true, }, angleLines: { color: function(context) { return ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/backgroundColor.js
test/fixtures/scale.radialLinear/backgroundColor.js
module.exports = { threshold: 0.01, config: { type: 'radar', data: { labels: [1, 2, 3, 4, 5, 6], datasets: [ { data: [3, 2, 2, 1, 3, 1] } ] }, options: { plugins: { legend: false, tooltip: false, filler: false }, s...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/anglelines-reverse-scale.js
test/fixtures/scale.radialLinear/anglelines-reverse-scale.js
module.exports = { config: { type: 'radar', data: { labels: ['A', 'B', 'C', 'D', 'E'], datasets: [{ data: [1, 1, 2, 3, 5] }] }, options: { responsive: false, scales: { r: { reverse: true, grid: { display: 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.radialLinear/ticks-below-zero.js
test/fixtures/scale.radialLinear/ticks-below-zero.js
module.exports = { config: { type: 'radar', data: { labels: ['A', 'B', 'C', 'D', 'E'] }, options: { responsive: false, scales: { r: { min: -1, max: 1, grid: { display: true, color: 'blue', lineWidth: 2 ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/gridlines-scriptable.js
test/fixtures/scale.radialLinear/gridlines-scriptable.js
module.exports = { config: { type: 'radar', data: { labels: ['A', 'B', 'C', 'D', 'E'] }, options: { responsive: false, scales: { r: { grid: { display: true, color: function(context) { return context.index % 2 === 0 ? 'green' : '...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/circular-backgroundColor.js
test/fixtures/scale.radialLinear/circular-backgroundColor.js
module.exports = { threshold: 0.05, config: { type: 'radar', data: { labels: [1, 2, 3, 4, 5, 6], datasets: [ { data: [3, 2, 2, 1, 3, 1] } ] }, options: { plugins: { legend: false, tooltip: false, filler: false }, s...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/anglelines-indexable.js
test/fixtures/scale.radialLinear/anglelines-indexable.js
module.exports = { config: { type: 'radar', data: { labels: ['A', 'B', 'C', 'D', 'E'] }, options: { responsive: false, scales: { r: { grid: { display: true, }, angleLines: { color: ['red', 'green'], lineWidth: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/pointLabels/padding.js
test/fixtures/scale.radialLinear/pointLabels/padding.js
module.exports = { config: { type: 'radar', data: { labels: [ ['VENTE ET', 'COMMERCIALISATION'], ['GESTION', 'FINANCIÈRE'], 'NUMÉRIQUE', ['ADMINISTRATION', 'ET OPÉRATION'], ['RESSOURCES', 'HUMAINES'], 'INNOVATION' ], datasets: [ { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/pointLabels/background.js
test/fixtures/scale.radialLinear/pointLabels/background.js
module.exports = { tolerance: 0.01, config: { type: 'radar', data: { labels: [ ['VENTE ET', 'COMMERCIALISATION'], ['GESTION', 'FINANCIÈRE'], 'NUMÉRIQUE', ['ADMINISTRATION', 'ET OPÉRATION'], ['RESSOURCES', 'HUMAINES'], 'INNOVATION' ], datasets...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/pointLabels/no-more-than-half-radius.js
test/fixtures/scale.radialLinear/pointLabels/no-more-than-half-radius.js
module.exports = { config: { type: 'radar', data: { labels: ['Too long label 1', 'Too long label 2', 'Too long label 3', 'Too long label 4'], datasets: [ { backgroundColor: '#E43E51', data: [1, 1, 1, 1] } ] }, options: { scales: { r: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/pointLabels/scriptable-color-small.js
test/fixtures/scale.radialLinear/pointLabels/scriptable-color-small.js
module.exports = { config: { type: 'radar', data: { labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange', 'Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange', 'Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange', 'Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'], datasets: [{ ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.radialLinear/pointLabels/border-radius.js
test/fixtures/scale.radialLinear/pointLabels/border-radius.js
module.exports = { tolerance: 0.01, config: { type: 'radar', data: { labels: [ ['VENTE ET', 'COMMERCIALISATION'], ['GESTION', 'FINANCIÈRE'], 'NUMÉRIQUE', ['ADMINISTRATION', 'ET OPÉRATION'], ['RESSOURCES', 'HUMAINES'], 'INNOVATION' ], datasets...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.tooltip/box-padding.js
test/fixtures/plugin.tooltip/box-padding.js
const data = []; for (let x = 0; x < 3; x++) { for (let y = 0; y < 3; y++) { data.push({x, y}); } } module.exports = { config: { type: 'scatter', data: { datasets: [{ data, backgroundColor: 'red', radius: 1, hoverRadius: 0 }], }, options: { sc...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.tooltip/opacity.js
test/fixtures/plugin.tooltip/opacity.js
var patternCanvas = document.createElement('canvas'); var patternContext = patternCanvas.getContext('2d'); patternCanvas.width = 6; patternCanvas.height = 6; patternContext.fillStyle = '#ff0000'; patternContext.fillRect(0, 0, 6, 6); patternContext.fillStyle = '#ffff00'; patternContext.fillRect(0, 0, 4, 4); var patter...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.tooltip/corner-radius.js
test/fixtures/plugin.tooltip/corner-radius.js
const data = []; for (let x = 0; x < 3; x++) { for (let y = 0; y < 3; y++) { data.push({x, y}); } } module.exports = { config: { type: 'scatter', data: { datasets: [{ data, backgroundColor: 'red', radius: 1, hoverRadius: 0 }], }, options: { sc...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.tooltip/positioning.js
test/fixtures/plugin.tooltip/positioning.js
const data = []; for (let x = 0; x < 3; x++) { for (let y = 0; y < 3; y++) { data.push({x, y}); } } module.exports = { config: { type: 'scatter', data: { datasets: [{ data, backgroundColor: 'red', radius: 1, hoverRadius: 0 }], }, options: { sc...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.tooltip/color-box-border-dash.js
test/fixtures/plugin.tooltip/color-box-border-dash.js
module.exports = { config: { type: 'line', data: { datasets: [{ data: [8, 7, 6, 5], pointBorderColor: '#ff0000', pointBackgroundColor: '#00ff00', showLine: false }], labels: ['', '', '', ''] }, options: { scales: { 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.tooltip/color-box-border-radius.js
test/fixtures/plugin.tooltip/color-box-border-radius.js
module.exports = { config: { type: 'line', data: { datasets: [{ data: [8, 7, 6, 5], pointBorderColor: '#ff0000', pointBackgroundColor: '#00ff00', showLine: false }], labels: ['', '', '', ''] }, options: { scales: { 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.tooltip/caret-position.js
test/fixtures/plugin.tooltip/caret-position.js
const data = []; for (let x = 1; x < 4; x++) { for (let y = 1; y < 4; y++) { data.push({x, y}); } } module.exports = { config: { type: 'scatter', data: { datasets: [{ data, backgroundColor: 'red', radius: 8, hoverRadius: 0 }], }, options: { sc...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/plugin.tooltip/point-style.js
test/fixtures/plugin.tooltip/point-style.js
const pointStyles = ['circle', 'cross', 'crossRot', 'dash', 'line', 'rect', 'rectRounded', 'rectRot', 'star', 'triangle', false]; function newDataset(pointStyle, i) { return { label: '', data: pointStyles.map(() => i), pointStyle: pointStyle, pointBackgroundColor: '#0000ff', pointBorderColor: '#0...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.datasetController/stacked-initial-render.js
test/fixtures/core.datasetController/stacked-initial-render.js
module.exports = { config: { type: 'line', data: { labels: [0, 1, 2, 3, 4, 5, 6], datasets: [ { // option in dataset data: [9, 13, 15, 25, 22, 15, 21], stack: 'construction_stack', borderWidth: 10, borderColor: 'rgb(54, 162, 235)' }...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/mixed/bar+line.js
test/fixtures/mixed/bar+line.js
module.exports = { config: { data: { datasets: [ { type: 'line', data: [6, 16, 3, 19], borderColor: '#0000ff', fill: false }, { type: 'bar', data: [5, 20, 1, 10], backgroundColor: '#00ff00', borderColor: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/mixed/bar+line-stacked.js
test/fixtures/mixed/bar+line-stacked.js
module.exports = { config: { data: { datasets: [ { type: 'bar', stack: 'mixed', data: [5, 20, 1, 10], backgroundColor: '#00ff00', borderColor: '#ff0000' }, { type: 'line', stack: 'mixed', data: [6, 16, 3,...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.scatter/showLine/changed.js
test/fixtures/controller.scatter/showLine/changed.js
module.exports = { description: 'showLine option should draw a line if true', config: { type: 'scatter', data: { datasets: [{ data: [{x: 10, y: 15}, {x: 15, y: 10}], pointRadius: 10, backgroundColor: 'red', label: 'dataset1' }], }, options: { scales:...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.scatter/showLine/true.js
test/fixtures/controller.scatter/showLine/true.js
module.exports = { description: 'showLine option should draw a line if true', config: { type: 'scatter', data: { datasets: [{ data: [{x: 10, y: 15}, {x: 15, y: 10}], pointRadius: 10, backgroundColor: 'red', showLine: true, label: 'dataset1' }], }, ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.scatter/showLine/undefined.js
test/fixtures/controller.scatter/showLine/undefined.js
module.exports = { description: 'showLine option should not draw a line if undefined', config: { type: 'scatter', data: { datasets: [{ data: [{x: 10, y: 15}, {x: 15, y: 10}], pointRadius: 10, backgroundColor: 'red', label: 'dataset1' }], }, options: { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.category/ticks-from-data.js
test/fixtures/scale.category/ticks-from-data.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { datasets: [{ data: [10, 5, 0, 25, 78], backgroundColor: 'transparent' }], labels: ['tick1', 'tick2', 'tick3', 'tick4', 'tick5'] }, options: { indexAxis: 'y', scales: { x: {display...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.category/max-ticks-limit-a.js
test/fixtures/scale.category/max-ticks-limit-a.js
const data = Array.from({length: 42}, (_, i) => i + 1); const labels = data.map(v => 'tick' + v); module.exports = { description: 'https://github.com/chartjs/Chart.js/issues/7302', config: { type: 'bar', data: { datasets: [{ data }], labels }, options: { scales: { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.category/max-ticks-limit-b.js
test/fixtures/scale.category/max-ticks-limit-b.js
const data = Array.from({length: 42}, (_, i) => i + 1); const labels = data.map(v => 'tick' + v); module.exports = { description: 'https://github.com/chartjs/Chart.js/issues/7302', config: { type: 'bar', data: { datasets: [{ data }], labels }, options: { scales: { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.category/invalid-data.js
test/fixtures/scale.category/invalid-data.js
module.exports = { config: { type: 'line', data: { labels: ['a', 'b', 'c', 'd', 'e', 'f', 'g'], datasets: [{ data: [ {x: 'a', y: 1}, {x: null, y: 1}, {x: 2, y: 1}, {x: undefined, y: 1}, {x: 4, y: 1}, {x: NaN, y: 1}, {x: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/scale.category/max-ticks-limit-norotation.js
test/fixtures/scale.category/max-ticks-limit-norotation.js
const data = Array.from({length: 42}, (_, i) => i + 1); const labels = data.map(v => 'tick' + v); module.exports = { description: 'https://github.com/chartjs/Chart.js/issues/10856', config: { type: 'bar', data: { datasets: [{ data }], labels }, options: { scales: { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.interaction/drawActiveElementsOnTop-false.js
test/fixtures/core.interaction/drawActiveElementsOnTop-false.js
module.exports = { config: { type: 'bubble', data: { datasets: [{ data: [ {x: 1, y: 1, r: 80}, {x: 1, y: 1, r: 20} ], drawActiveElementsOnTop: false, backgroundColor: (ctx) => (ctx.dataIndex === 1 ? 'red' : 'blue'), hoverBackgroundColor: 'yello...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.interaction/nearest-partial-bar.js
test/fixtures/core.interaction/nearest-partial-bar.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b', 'c'], datasets: [ { data: [220, 250, 225], }, ], }, options: { events: ['click'], interaction: { mode: 'nearest' }, plugins: { tooltip: true, ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/core.interaction/nearest-point-behind-scale.js
test/fixtures/core.interaction/nearest-point-behind-scale.js
module.exports = { config: { type: 'scatter', data: { datasets: [{ data: [{x: 1, y: 1}, {x: 48, y: 1}] }] }, options: { events: ['click'], interaction: { mode: 'nearest', intersect: false }, plugins: { tooltip: true, legend: f...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/bar-base-value.js
test/fixtures/controller.bar/bar-base-value.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 3, 4], datasets: [ { data: [5, 20, 10, 11], base: 10, backgroundColor: '#00ff00', borderColor: '#ff0000', borderWidth: 2, } ] }, options: { scales:...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/chart-area-clip.js
test/fixtures/controller.bar/chart-area-clip.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 3, 4], datasets: [ { data: [5, 20, -5, -20], borderColor: '#ff0000' } ] }, options: { layout: { padding: { left: 0, right: 0, top: 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.bar/bar-animation-hide-show.js
test/fixtures/controller.bar/bar-animation-hide-show.js
const canvas = document.createElement('canvas'); canvas.width = 512; canvas.height = 512; const ctx = canvas.getContext('2d'); module.exports = { config: { type: 'bar', data: { labels: [0], datasets: [ { data: [1], backgroundColor: 'rgba(255,0,0,0.5)' }, ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/horizontal-borders.js
test/fixtures/controller.bar/horizontal-borders.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderWidth: 2 }, { // option in element (fallback) data: [...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/bar-default-begin-at-zero.js
test/fixtures/controller.bar/bar-default-begin-at-zero.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 3, 4], datasets: [ { data: [5, 20, 1, 10], backgroundColor: '#00ff00', borderColor: '#ff0000' } ] }, options: { scales: { x: {display: false}, y: {disp...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/aligned-pixels.js
test/fixtures/controller.bar/aligned-pixels.js
module.exports = { config: { type: 'bar', data: { labels: ['a'], datasets: [{ data: [-1] }, { data: [1] }] }, options: { indexAxis: 'y', events: [], backgroundColor: 'navy', devicePixelRatio: 1.25, scales: { x: {display: fal...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/vertical-stacked-no-overlap.js
test/fixtures/controller.bar/minBarLength/vertical-stacked-no-overlap.js
const minBarLength = 50; module.exports = { config: { type: 'bar', data: { labels: [1, 2, 3, 4], datasets: [ { data: [1, -1, 1, 20], backgroundColor: '#bb000066', minBarLength }, { data: [1, -1, -1, -20], backgroundColor: '...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/vertical-stacked.js
test/fixtures/controller.bar/minBarLength/vertical-stacked.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4], datasets: [{ data: [0, 0.01, 30], backgroundColor: '#00ff00', borderColor: '#000', borderWidth: 4, minBarLength: 20, yAxisID: 'y2', }] }, options: { scales...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/vertical-neg.js
test/fixtures/controller.bar/minBarLength/vertical-neg.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2], datasets: [ { data: [0, -0.01, -30], backgroundColor: '#00ff00', borderColor: '#000', borderWidth: 4, minBarLength: 20 } ] }, options: { scales...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/horizontal-neg.js
test/fixtures/controller.bar/minBarLength/horizontal-neg.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2], datasets: [ { data: [0, -0.01, -30], backgroundColor: '#00ff00', borderColor: '#000', borderWidth: 4, minBarLength: 20 } ] }, options: { indexA...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/vertical-pos.js
test/fixtures/controller.bar/minBarLength/vertical-pos.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2], datasets: [ { data: [0, 0.01, 30], backgroundColor: '#00ff00', borderColor: '#000', borderWidth: 4, minBarLength: 20 } ] }, options: { scales: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/horizontal.js
test/fixtures/controller.bar/minBarLength/horizontal.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4], datasets: [ { data: [0, -0.01, 0.01, 30, -30], backgroundColor: '#00ff00', borderColor: '#000', borderSkipped: ctx => ctx.raw === 0 ? false : 'start', borderWidth: 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.bar/minBarLength/horizontal-stacked-no-overlap.js
test/fixtures/controller.bar/minBarLength/horizontal-stacked-no-overlap.js
const minBarLength = 50; module.exports = { config: { type: 'bar', data: { labels: [1, 2, 3, 4], datasets: [ { data: [1, -1, 1, 20], backgroundColor: '#bb000066', minBarLength }, { data: [1, -1, -1, -20], backgroundColor: '...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/horizontal-pos.js
test/fixtures/controller.bar/minBarLength/horizontal-pos.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2], datasets: [ { data: [0, 0.01, 30], backgroundColor: '#00ff00', borderColor: '#000', borderWidth: 4, minBarLength: 20 } ] }, options: { indexAxi...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/horizontal-stacked.js
test/fixtures/controller.bar/minBarLength/horizontal-stacked.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4], datasets: [{ data: [0, 0.01, 30], backgroundColor: '#00ff00', borderColor: '#000', borderWidth: 4, minBarLength: 20, xAxisID: 'x2', }] }, options: { indexA...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/minBarLength/vertical.js
test/fixtures/controller.bar/minBarLength/vertical.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4], datasets: [ { data: [0, -0.01, 0.01, 30, -30], backgroundColor: '#00ff00', borderColor: '#000', borderSkipped: ctx => ctx.raw === 0 ? false : 'start', borderWidth: 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.bar/floatBar/data-as-objects-horizontal.js
test/fixtures/controller.bar/floatBar/data-as-objects-horizontal.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b', 'c'], datasets: [ { data: [{y: 'b', x: [2, 8]}, {y: 'c', x: [2, 5]}], backgroundColor: '#ff0000' }, { data: [{y: 'a', x: 10}, {y: 'c', x: [6, 10]}], backgroundColor:...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/floatBar/data-as-objects.js
test/fixtures/controller.bar/floatBar/data-as-objects.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b', 'c'], datasets: [ { data: [{x: 'b', y: [2, 8]}, {x: 'c', y: [2, 5]}], backgroundColor: '#ff0000' }, { data: [{x: 'a', y: 10}, {x: 'c', y: [6, 10]}], backgroundColor:...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderColor/border+dpr.js
test/fixtures/controller.bar/borderColor/border+dpr.js
module.exports = { threshold: 0, tolerance: 0, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5, 6], datasets: [ { // option in dataset data: [5, 4, 3, 2, 3, 4, 5], }, ] }, options: { events: [], devicePixelRatio: 1.5, ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderColor/value.js
test/fixtures/controller.bar/borderColor/value.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderColor: '#ff0000' }, { // option in element (fallback) data: [0, 5, 10, n...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderColor/indexable.js
test/fixtures/controller.bar/borderColor/indexable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderColor: [ '#ff0000', '#00ff00', '#0000ff', '#ffff00', ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderColor/scriptable.js
test/fixtures/controller.bar/borderColor/scriptable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderColor: function(ctx) { var value = ctx.dataset.data[ctx.dataIndex] || 0; return valu...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderRadius/no-spacing.js
test/fixtures/controller.bar/borderRadius/no-spacing.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], datasets: [ { data: [9, 25, 13, 17, 12, 21, 20, 19, 6, 12, 14, 20], categoryPercentage: 1, barPer...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderRadius/border-radius-stacked-number-mixed-chart.js
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number-mixed-chart.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { backgroundColor: 'red', data: [12, 19, 12, 5, 4, 12], }, { backgroundColor: 'green', data: [12, 19, -4, 5, 8, 3], ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderRadius/border-radius-stacked-number.js
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { backgroundColor: 'red', data: [12, 19, 12, 5, 4, 12], }, { backgroundColor: 'green', data: [12, 19, -4, 5, 8, 3], }...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderRadius/border-radius-stacked-number-with-order.js
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number-with-order.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { backgroundColor: 'red', data: [12, 19, 12, 5, 4, 12], order: 2, }, { backgroundColor: 'green', data: [12, 19, -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.bar/borderRadius/border-radius.js
test/fixtures/controller.bar/borderRadius/border-radius.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderWidth: 2, borderRadius: 5 }, { // option in element (...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderSkipped/middle.js
test/fixtures/controller.bar/borderSkipped/middle.js
module.exports = { threshold: 0.01, config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { backgroundColor: 'red', data: [12, 19, 12, 5, 4, 12], }, { backgroundColor: 'green', data: [12, 19, -4, 5, 8, 3], }...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderSkipped/value.js
test/fixtures/controller.bar/borderSkipped/value.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3], datasets: [ { // option in dataset data: [0, 5, -10, null], borderSkipped: 'top' }, { // option in dataset data: [0, 5, -10, null], borderSkip...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderSkipped/indexable.js
test/fixtures/controller.bar/borderSkipped/indexable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderSkipped: [ 'top', 'top', 'right', 'right', 'bott...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderSkipped/scriptable.js
test/fixtures/controller.bar/borderSkipped/scriptable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderSkipped: function(ctx) { var value = ctx.dataset.data[ctx.dataIndex] || 0; return va...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/skipNull/bar-skip-null.js
test/fixtures/controller.bar/skipNull/bar-skip-null.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 3, 4], datasets: [ { data: [5, 20, 1, 10], backgroundColor: '#00ff00', borderColor: '#ff0000' }, { data: [10, null, 1, undefined], backgroundColor: '#ff0000', ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/skipNull/combinations.js
test/fixtures/controller.bar/skipNull/combinations.js
module.exports = { config: { type: 'bar', data: { labels: ['0', '1', '2', '3', '4', '5', '6', '7'], datasets: [ { data: [null, 1000, null, 1000, null, 1000, null, 1000], backgroundColor: '#00ff00', borderColor: '#ff0000' }, { data: [n...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/skipNull/bar-skip-null-object-data.js
test/fixtures/controller.bar/skipNull/bar-skip-null-object-data.js
module.exports = { config: { type: 'bar', data: { datasets: [ { data: {0: 5, 1: 20, 2: 1, 3: 10}, backgroundColor: '#00ff00', borderColor: '#ff0000' }, { data: {0: 10, 1: null, 2: 1, 3: NaN}, backgroundColor: '#ff0000', ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/backgroundColor/loopable.js
test/fixtures/controller.bar/backgroundColor/loopable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 2, 3, 4, 5, 6], backgroundColor: [ '#ff0000', '#00ff00', '#0000ff' ] }, { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/backgroundColor/value.js
test/fixtures/controller.bar/backgroundColor/value.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], backgroundColor: '#ff0000' }, { // option in element (fallback) data: [0, 5, 1...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/backgroundColor/indexable.js
test/fixtures/controller.bar/backgroundColor/indexable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], backgroundColor: [ '#ff0000', '#00ff00', '#0000ff', '#ffff00', ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/backgroundColor/scriptable.js
test/fixtures/controller.bar/backgroundColor/scriptable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], backgroundColor: function(ctx) { var value = ctx.dataset.data[ctx.dataIndex] || 0; return ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/not-grouped/on-time.js
test/fixtures/controller.bar/not-grouped/on-time.js
const data1 = [ { x: '2017-11-02T20:30:00', y: 27 }, { x: '2017-11-03T20:53:00', y: 30 }, { x: '2017-11-06T05:46:00', y: 19 }, { x: '2017-11-06T21:03:00', y: 28 }, { x: '2017-11-07T20:49:00', y: 29 }, { x: '2017-11-08T21:52:00', y: 33 } ]; const d...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/not-grouped/mixed.js
test/fixtures/controller.bar/not-grouped/mixed.js
module.exports = { description: 'https://github.com/chartjs/Chart.js/issues/9281', config: { type: 'bar', data: { labels: [0, 1, 2], datasets: [ { label: 'data 1', data: [1, 2, 2], backgroundColor: 'rgb(255,0,0,0.7)', grouped: true }, ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderWidth/scriptable-object.js
test/fixtures/controller.bar/borderWidth/scriptable-object.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderSkipped: false, borderWidth: function(ctx) { var value = ctx.dataset.data[ctx.dataInde...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderWidth/object.js
test/fixtures/controller.bar/borderWidth/object.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderSkipped: false, borderWidth: {bottom: 1, left: 2, top: 3, right: 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.bar/borderWidth/negative.js
test/fixtures/controller.bar/borderWidth/negative.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderWidth: -2 }, { // option in element (fallback) data: [0, 5, 10, null, -1...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderWidth/value.js
test/fixtures/controller.bar/borderWidth/value.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderWidth: 2 }, { // option in element (fallback) data: [0, 5, 10, null, -10...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderWidth/indexable-object.js
test/fixtures/controller.bar/borderWidth/indexable-object.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderSkipped: false, borderWidth: [ {}, {bottom: 1, left: 1, top: 1, right: 1},...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderWidth/indexable.js
test/fixtures/controller.bar/borderWidth/indexable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderWidth: [ 0, 1, 2, 3, 4, 5 ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/borderWidth/scriptable.js
test/fixtures/controller.bar/borderWidth/scriptable.js
module.exports = { config: { type: 'bar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], borderWidth: function(ctx) { var value = ctx.dataset.data[ctx.dataIndex] || 0; return Math...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/baseLine/top.js
test/fixtures/controller.bar/baseLine/top.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [-1, -2] }] }, options: { scales: { 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/controller.bar/baseLine/left.js
test/fixtures/controller.bar/baseLine/left.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [1, 2] }] }, options: { indexAxis: 'y', scales: { y: { display: f...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/baseLine/mid-x.js
test/fixtures/controller.bar/baseLine/mid-x.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [1, -1] }] }, options: { indexAxis: 'y', scales: { y: { display: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/baseLine/bottom.js
test/fixtures/controller.bar/baseLine/bottom.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [1, 2] }] }, options: { scales: { 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/controller.bar/baseLine/value-x.js
test/fixtures/controller.bar/baseLine/value-x.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [1, 3] }] }, options: { base: 2, indexAxis: 'y', scales: { y: { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/baseLine/right.js
test/fixtures/controller.bar/baseLine/right.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [-1, -2] }] }, options: { indexAxis: 'y', scales: { y: { display:...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/baseLine/mid-y.js
test/fixtures/controller.bar/baseLine/mid-y.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [1, -1] }] }, options: { scales: { 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/controller.bar/baseLine/value-y.js
test/fixtures/controller.bar/baseLine/value-y.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b'], datasets: [{ backgroundColor: '#AAFFCC', borderColor: '#0000FF', borderWidth: 1, data: [1, 3] }] }, options: { base: 2, scales: { 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/controller.bar/data/object-index-axis-y.js
test/fixtures/controller.bar/data/object-index-axis-y.js
module.exports = { config: { type: 'bar', data: { datasets: [{ label: '# of Votes', data: {a: 1, b: 3, c: 2} }] }, options: { indexAxis: 'y' } }, 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/controller.bar/data/parsing.js
test/fixtures/controller.bar/data/parsing.js
const data = [{x: 'Jan', net: 100, cogs: 50, gm: 50}, {x: 'Feb', net: 120, cogs: 55, gm: 75}]; module.exports = { config: { type: 'bar', data: { labels: ['Jan', 'Feb'], datasets: [{ label: 'Net sales', backgroundColor: 'blue', data: data, parsing: { yAxis...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/data/object.js
test/fixtures/controller.bar/data/object.js
module.exports = { config: { type: 'bar', data: { labels: ['a', 'b', 'c'], datasets: [ { data: {a: 10, b: 2, c: -5}, backgroundColor: '#ff0000' }, { data: {a: 8, b: 12, c: 5}, backgroundColor: '#00ff00' } ] }, op...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/stacking/remove-dataset.js
test/fixtures/controller.bar/stacking/remove-dataset.js
var barChartData = { labels: [0, 1, 2, 3, 4, 5, 6], datasets: [ { backgroundColor: 'red', data: [ // { x: 0, y: 0 }, {x: 1, y: 5}, {x: 2, y: 5}, {x: 3, y: 5}, {x: 4, y: 5}, {x: 5, y: 5}, {x: 6, y: 5} ] }, { backgroundColor: ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/stacking/logarithmic-strings.js
test/fixtures/controller.bar/stacking/logarithmic-strings.js
module.exports = { config: { type: 'bar', data: { datasets: [{ data: ['10', '100', '10', '100'], backgroundColor: '#ff0000' }, { data: ['100', '10', '0', '100'], backgroundColor: '#00ff00' }], labels: ['label1', 'label2', 'label3', 'label4'] }, o...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/stacking/issue-9105.js
test/fixtures/controller.bar/stacking/issue-9105.js
module.exports = { description: 'https://github.com/chartjs/Chart.js/issues/9105', config: { type: 'bar', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June'], datasets: [ { backgroundColor: 'rgba(255,99,132,0.8)', label: 'Dataset 1', dat...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/stacking/logarithmic.js
test/fixtures/controller.bar/stacking/logarithmic.js
module.exports = { config: { type: 'bar', data: { datasets: [{ data: [10, 100, 10, 100], backgroundColor: '#ff0000' }, { data: [100, 10, 0, 100], backgroundColor: '#00ff00' }], labels: ['label1', 'label2', 'label3', 'label4'] }, options: { ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/stacking/replace-data.js
test/fixtures/controller.bar/stacking/replace-data.js
var barChartData = { labels: ['January', 'February', 'March'], datasets: [ { label: 'Dataset 1', backgroundColor: 'red', data: [5, 5, 5] }, { label: 'Dataset 2', backgroundColor: 'blue', data: [5, 5, 5] }, { label: 'Dataset 3', backgroundColor: 'gr...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false
chartjs/Chart.js
https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.bar/stacking/stacked-and-multiple-axis.js
test/fixtures/controller.bar/stacking/stacked-and-multiple-axis.js
module.exports = { config: { type: 'bar', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ { label: 'Dataset 1', data: [100, 90, 100, 50, 99, 87, 34], backgroundColor: 'rgba(255,99,132,0.8)', stack: 'a', ...
javascript
MIT
a153556861074e827358446ec937555ac58c3d11
2026-01-04T14:56:49.667758Z
false