We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3214005 commit cc8e513Copy full SHA for cc8e513
test/fixtures/scale.timeseries/normalize.js
@@ -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
37
+ spriteText: true
38
39
+};
test/fixtures/scale.timeseries/normalize.png
21.6 KB
0 commit comments