Skip to content

Commit e50a6aa

Browse files
committed
add a mock using template and layout.colorscale
1 parent 75e8910 commit e50a6aa

File tree

2 files changed

+157
-0
lines changed

2 files changed

+157
-0
lines changed

Diff for: test/image/baselines/colorscale_template.png

21.8 KB
Loading

Diff for: test/image/mocks/colorscale_template.json

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"data": [{
3+
"x": [
4+
50076,
5+
-42372,
6+
-19260,
7+
3852,
8+
26964,
9+
-65484,
10+
-42372,
11+
-19260,
12+
3852,
13+
26964,
14+
-88596,
15+
-65484,
16+
-42372,
17+
-19260,
18+
3852,
19+
26964,
20+
50076,
21+
73188,
22+
-65484,
23+
-42372,
24+
-19260,
25+
3852,
26+
26964,
27+
50076,
28+
-42372,
29+
-19260,
30+
3852,
31+
26964,
32+
-88596,
33+
-65484,
34+
-42372,
35+
-19260,
36+
3852,
37+
26964,
38+
50076,
39+
73188,
40+
-88596,
41+
-65484,
42+
-42372,
43+
-19260,
44+
3852,
45+
26964,
46+
50076,
47+
73188
48+
],
49+
"y": [
50+
51851.8,
51+
77841.4,
52+
77841.4,
53+
77841.4,
54+
77841.4,
55+
51851.8,
56+
51851.8,
57+
51851.8,
58+
51851.8,
59+
51851.8,
60+
-26117,
61+
-26117,
62+
-26117,
63+
-26117,
64+
-26117,
65+
-26117,
66+
-26117,
67+
-26117,
68+
-52106.6,
69+
-52106.6,
70+
-52106.6,
71+
-52106.6,
72+
-52106.6,
73+
-52106.6,
74+
-78096.2,
75+
-78096.2,
76+
-78096.2,
77+
-78096.2,
78+
-127.4,
79+
-127.4,
80+
-127.4,
81+
-127.4,
82+
-127.4,
83+
-127.4,
84+
-127.4,
85+
-127.4,
86+
25862.2,
87+
25862.2,
88+
25862.2,
89+
25862.2,
90+
25862.2,
91+
25862.2,
92+
25862.2,
93+
25862.2
94+
],
95+
"z": [
96+
4.361856,
97+
4.234497,
98+
4.321701,
99+
4.450315,
100+
4.416136,
101+
4.210373,
102+
4.32009,
103+
4.246728,
104+
4.293992,
105+
4.316364,
106+
3.908434,
107+
4.433257,
108+
4.364234,
109+
4.308714,
110+
4.275516,
111+
4.126979,
112+
4.296483,
113+
4.320471,
114+
4.339848,
115+
4.39907,
116+
4.345006,
117+
4.315032,
118+
4.295618,
119+
4.262052,
120+
4.154291,
121+
4.404264,
122+
4.33847,
123+
4.270931,
124+
4.032226,
125+
4.381492,
126+
4.328922,
127+
4.24046,
128+
4.349151,
129+
4.202861,
130+
4.256402,
131+
4.28972,
132+
3.956225,
133+
4.337909,
134+
4.31226,
135+
4.259435,
136+
4.146854,
137+
4.235799,
138+
4.238752,
139+
4.299876
140+
],
141+
"type": "heatmap",
142+
"autocolorscale": true
143+
}],
144+
"layout": {
145+
"template": {
146+
"layout": {
147+
"title": "heatmap template",
148+
"colorscale": {
149+
"sequential": [
150+
[0, "rgb(0,0,0)"],
151+
[1, "rgb(255,255,255)"]
152+
]
153+
}
154+
}
155+
}
156+
}
157+
}

0 commit comments

Comments
 (0)