Skip to content

Commit 810563f

Browse files
committed
test heatmap text
1 parent 222ed47 commit 810563f

10 files changed

+16
-1
lines changed

test/image/baselines/13.png

49.7 KB
Loading

test/image/baselines/4.png

26.7 KB
Loading
18.2 KB
Loading
17.2 KB
Loading
28.1 KB
Loading

test/image/mocks/13.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"data": [
33
{
4+
"texttemplate": "%{z:.1f}",
5+
"textfont": {"size": 8},
46
"z": [
57
[
68
1,

test/image/mocks/4.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"data": [
33
{
4+
"texttemplate": "%{z}",
45
"z": [
56
[
67
1,

test/image/mocks/heatmap_categoryorder.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
},
1414
"data": [{
1515
"type": "heatmap",
16+
"texttemplate": "x: %{x}<br>y: %{y}<br>z: %{z}",
17+
"textfont": {
18+
"family": "Raleway",
19+
"size": 14
20+
},
1621

1722
"x": ["z", "y", "x", "w"],
1823
"y": ["d", "c", "b", "a"],

test/image/mocks/heatmap_columnar.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"type": "heatmap",
44
"x": ["a", "a", "a", "b", "b", "b", "c", "c", "c"],
55
"y": ["A", "B", "C", "A", "B", "C", "A", "B", "C"],
6-
"z": [0, 50, 100, 50, 0, 255, 100, 510, 1010]
6+
"z": [0, 50, 100, 50, 0, 255, 100, 510, 1010],
7+
"text": ["zero", "fifty", "one hundred", "fifty", "zero", "two hundred<br>and fifty-five", "one hundred", "five hundred<br>and ten", "one thousand ten"],
8+
"texttemplate": "%{text}",
9+
"textfont": {
10+
"size": 20,
11+
"color": "rgba(255,255,255,0.5)"
12+
}
713
}],
814
"layout": {
915
"xaxis": {

test/image/mocks/heatmap_xyz-gaps-on-sides.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"data": [
33
{
4+
"texttemplate": "%{z:.3f}",
45
"x": [
56
50076,
67
-42372,

0 commit comments

Comments
 (0)