Skip to content

Commit 4fed40e

Browse files
committed
fixed heatmapgl defaults
1 parent b0e7fa3 commit 4fed40e

File tree

2 files changed

+155
-0
lines changed

2 files changed

+155
-0
lines changed

src/traces/heatmapgl/defaults.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
2121
coerce('text');
2222
coerce('zsmooth');
2323

24+
coerce('tooltip');
25+
coerce('tooltiptemplate');
26+
2427
colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: '', cLetter: 'z'});
2528
};
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"data": [
3+
{
4+
"type": "heatmapgl",
5+
"z": [
6+
[
7+
125,
8+
106,
9+
89,
10+
74,
11+
61,
12+
50,
13+
41,
14+
34,
15+
29,
16+
26
17+
],
18+
[
19+
116,
20+
97,
21+
80,
22+
65,
23+
52,
24+
41,
25+
32,
26+
25,
27+
20,
28+
17
29+
],
30+
[
31+
109,
32+
90,
33+
73,
34+
58,
35+
45,
36+
34,
37+
25,
38+
18,
39+
13,
40+
10
41+
],
42+
[
43+
104,
44+
85,
45+
68,
46+
53,
47+
40,
48+
29,
49+
20,
50+
13,
51+
8,
52+
5
53+
],
54+
[
55+
101,
56+
82,
57+
65,
58+
50,
59+
37,
60+
26,
61+
17,
62+
10,
63+
5,
64+
2
65+
],
66+
[
67+
100,
68+
81,
69+
64,
70+
49,
71+
36,
72+
25,
73+
16,
74+
9,
75+
4,
76+
1
77+
],
78+
[
79+
101,
80+
82,
81+
65,
82+
50,
83+
37,
84+
26,
85+
17,
86+
10,
87+
5,
88+
2
89+
],
90+
[
91+
104,
92+
85,
93+
68,
94+
53,
95+
40,
96+
29,
97+
20,
98+
13,
99+
8,
100+
5
101+
],
102+
[
103+
109,
104+
90,
105+
73,
106+
58,
107+
45,
108+
34,
109+
25,
110+
18,
111+
13,
112+
10
113+
],
114+
[
115+
116,
116+
97,
117+
80,
118+
65,
119+
52,
120+
41,
121+
32,
122+
25,
123+
20,
124+
17
125+
]
126+
],
127+
"colorscale": "Viridis",
128+
"tooltip":{"bgcolor":"rgba(255, 255, 255, 0.2)"},
129+
"tooltiptemplate": "%{x}<br>y: %{y}<br>z: %{z}"
130+
}
131+
],
132+
"layout": {
133+
"font": {
134+
"weight": "bold",
135+
"style": "italic",
136+
"variant": "small-caps"
137+
},
138+
"height": 450,
139+
"width": 550
140+
},
141+
"config": {
142+
"editable": true,
143+
"modeBarButtonsToAdd": [
144+
"tooltip",
145+
"hoverclosest",
146+
"hovercompare",
147+
"togglespikelines"
148+
],
149+
"displaylogo": false,
150+
"displayModeBar": true
151+
}
152+
}

0 commit comments

Comments
 (0)