Skip to content

Commit cc8e513

Browse files
authored
Add test for normalized option (#8552)
1 parent 3214005 commit cc8e513

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
threshold: 0.01,
3+
config: {
4+
type: 'line',
5+
data: {
6+
datasets: [{
7+
data: [
8+
{x: '2017', y: null},
9+
{x: '2018', y: 1},
10+
{x: '2019', y: 2},
11+
{x: '2020', y: 3},
12+
{x: '2021', y: 4}
13+
],
14+
fill: false
15+
}]
16+
},
17+
options: {
18+
normalized: true,
19+
scales: {
20+
x: {
21+
type: 'timeseries',
22+
time: {
23+
parser: 'YYYY'
24+
},
25+
distribution: 'linear',
26+
ticks: {
27+
source: 'data'
28+
}
29+
},
30+
y: {
31+
display: false
32+
}
33+
}
34+
}
35+
},
36+
options: {
37+
spriteText: true
38+
}
39+
};
21.6 KB
Loading

0 commit comments

Comments
 (0)