Skip to content

Commit

Permalink
Add test for normalized option
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Mar 1, 2021
1 parent 3214005 commit 887b032
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/fixtures/scale.timeseries/normalize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
threshold: 0.01,
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'
},
distribution: 'linear',
ticks: {
source: 'data'
}
},
y: {
display: false
}
}
}
},
options: {
spriteText: true
}
};
Binary file added test/fixtures/scale.timeseries/normalize.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 887b032

Please sign in to comment.