Skip to content

Commit 3168078

Browse files
committed
test shape legends and groups in multiple legends
1 parent 58b1cb1 commit 3168078

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
2.26 KB
Loading

test/image/mocks/text_on_shapes_reversed_axes.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
},
9999
{
100100
"showlegend": true,
101+
"legendgroup": "group 1",
102+
"legendgrouptitle": { "text": "group 1" },
101103
"label": {"text": "label 5"},
102104
"editable": true,
103105
"layer": "below",
@@ -109,6 +111,7 @@
109111
},
110112
{
111113
"showlegend": true,
114+
"legendgroup": "group 1",
112115
"label": {"text": "label 6"},
113116
"editable": true,
114117
"line": {
@@ -120,6 +123,7 @@
120123
},
121124
{
122125
"showlegend": true,
126+
"legend": "legend2",
123127
"label": {"text": "label 7"},
124128
"editable": true,
125129
"line": {
@@ -137,7 +141,17 @@
137141
"line": {
138142
"color": "pink"
139143
},
140-
"showlegend": true
144+
"showlegend": true,
145+
"legend": "legend2",
146+
"legendgroup": "group 2",
147+
"legendgrouptitle": { "text": "new shapes group" }
148+
},
149+
"legend2": {
150+
"y": 0,
151+
"bgcolor": "lightblue",
152+
"title": {
153+
"text": "Legend 2"
154+
}
141155
}
142156
},
143157
"config": {

0 commit comments

Comments
 (0)