Skip to content

Commit 97f6b7b

Browse files
committed
add new mock to lock issue 4742
1 parent 615757f commit 97f6b7b

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed
Loading
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"data": [
3+
{
4+
"type": "candlestick",
5+
"x": [
6+
"2020-01-02 17:00",
7+
"2020-01-02 17:10",
8+
"2020-01-02 17:20",
9+
"2020-01-02 17:30",
10+
"2020-01-02 17:40",
11+
"2020-01-02 17:50",
12+
"2020-01-02 18:00",
13+
"2020-01-02 18:10"
14+
],
15+
"open": [
16+
10,
17+
10,
18+
10,
19+
10,
20+
10,
21+
10,
22+
10,
23+
10
24+
],
25+
"high": [
26+
12,
27+
12,
28+
12,
29+
12,
30+
12,
31+
12,
32+
12,
33+
14
34+
],
35+
"low": [
36+
8,
37+
8,
38+
8,
39+
8,
40+
8,
41+
8,
42+
3,
43+
8
44+
],
45+
"close": [
46+
12,
47+
7,
48+
11,
49+
10.5,
50+
9,
51+
8.5,
52+
3,
53+
14
54+
]
55+
}
56+
],
57+
"layout": {
58+
"width": 600,
59+
"height": 400,
60+
"title": {
61+
"text": "Candlestick with rangebreaks"
62+
},
63+
"xaxis": {
64+
"rangebreaks": [
65+
{
66+
"pattern": "hour",
67+
"bounds": [
68+
18,
69+
9
70+
]
71+
}
72+
]
73+
}
74+
}
75+
}

test/jasmine/tests/mock_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var list = [
5050
'autorange-tozero-rangemode',
5151
'axes_booleans',
5252
'axes_breaks',
53+
'axes_breaks-candlestick',
5354
'axes_breaks-finance',
5455
'axes_breaks-gridlines',
5556
'axes_breaks-night_autorange-reversed',
@@ -1078,6 +1079,7 @@ figs['automargin-title-standoff'] = require('@mocks/automargin-title-standoff');
10781079
figs['autorange-tozero-rangemode'] = require('@mocks/autorange-tozero-rangemode');
10791080
// figs['axes_booleans'] = require('@mocks/axes_booleans');
10801081
figs['axes_breaks'] = require('@mocks/axes_breaks');
1082+
figs['axes_breaks-candlestick'] = require('@mocks/axes_breaks-candlestick');
10811083
figs['axes_breaks-finance'] = require('@mocks/axes_breaks-finance');
10821084
figs['axes_breaks-gridlines'] = require('@mocks/axes_breaks-gridlines');
10831085
figs['axes_breaks-night_autorange-reversed'] = require('@mocks/axes_breaks-night_autorange-reversed');

0 commit comments

Comments
 (0)