Skip to content

Commit d3e168a

Browse files
committed
test x and y textemplates on bar and histogram
1 parent a892e4b commit d3e168a

File tree

7 files changed

+5
-1
lines changed

7 files changed

+5
-1
lines changed
3.09 KB
Loading
3.55 KB
Loading
4.77 KB
Loading

test/image/mocks/bar-marker-line-colorscales.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": "%{x}",
45
"marker": {
56
"color": [
67
0,

test/image/mocks/bar_marker_array.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": "%{y:(}",
5+
"textfont": { "size": 32 },
46
"x": [
57
1,
68
2,

test/image/mocks/date_histogram.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": "<b>%{y:.1f}</b><br><br>%{x}",
45
"x": [
56
"2012-01-01 00:00:00",
67
"2012-02-01 00:00:00",

test/image/mocks/histogram_colorscale.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"cmax": 5
1414
},
1515
"x": [ 0, 1, 1, 2, 2, 2, 3, 3, 4 ],
16-
"texttemplate": "%{value}",
16+
"texttemplate": "%{y}",
1717
"textposition": "inside",
1818
"textfont": {
1919
"size": 64

0 commit comments

Comments
 (0)