Skip to content

Commit

Permalink
regression test for chart area clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Feb 20, 2019
1 parent 487bc17 commit 4cc6628
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions test/fixtures/controller.bar/chart-area-clip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
config: {
type: 'bar',
data: {
labels: [0, 1, 3, 4],
datasets: [
{
data: [5, 20, -5, -20],
borderColor: '#ff0000'
}
]
},
options: {
legend: false,
title: false,
layout: {
padding: {
left: 0,
right: 0,
top: 50,
bottom: 50
}
},
elements: {
rectangle: {
backgroundColor: '#00ff00',
borderWidth: 8
}
},
scales: {
xAxes: [{display: false}],
yAxes: [{display: false, ticks: {min: -10, max: 10}}]
}
}
},
options: {
canvas: {
height: 256,
width: 512
}
}
};
Binary file added test/fixtures/controller.bar/chart-area-clip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4cc6628

Please sign in to comment.