Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 557e657

Browse files
committed
update multi exponent base mock:
- show base and format in legend item to make it easier to grasp.
1 parent 1df67ee commit 557e657

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed
Loading

test/image/mocks/axes_exponentbase_linear.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
8192,
1212
16384
1313
],
14-
"name": "yaxis1 data",
14+
"name": "default",
1515
"type": "scatter"
1616
},
1717
{
@@ -25,7 +25,7 @@
2525
50000,
2626
60000
2727
],
28-
"name": "yaxis2 data",
28+
"name": "base: 2<br>format: SI",
2929
"yaxis": "y2",
3030
"type": "scatter"
3131
},
@@ -40,7 +40,7 @@
4040
5000,
4141
16000
4242
],
43-
"name": "yaxis3 data",
43+
"name": "base: 8<br>format: power",
4444
"yaxis": "y3",
4545
"type": "scatter"
4646
},
@@ -55,7 +55,7 @@
5555
50000,
5656
60000
5757
],
58-
"name": "yaxis4 data",
58+
"name": "base: 16<br>format: power",
5959
"yaxis": "y4",
6060
"type": "scatter"
6161
},
@@ -70,7 +70,7 @@
7070
500000,
7171
600000
7272
],
73-
"name": "yaxis5 data",
73+
"name": "base: 2<br>format: power",
7474
"yaxis": "y5",
7575
"type": "scatter"
7676
},
@@ -85,7 +85,7 @@
8585
50000000,
8686
60000000
8787
],
88-
"name": "yaxis6 data",
88+
"name": "base: 10<br>format: E",
8989
"yaxis": "y6",
9090
"type": "scatter"
9191
}
@@ -95,7 +95,7 @@
9595
"xaxis": {
9696
"domain": [
9797
0.3,
98-
0.7
98+
0.6
9999
],
100100
"showline": true,
101101
"ticks": "outside",
@@ -153,8 +153,8 @@
153153
"anchor": "free",
154154
"position": 0,
155155
"overlaying": "y",
156-
"exponentbase": 8,
157-
"exponentformat": "B"
156+
"exponentformat": "power",
157+
"exponentbase": 8
158158
},
159159
"yaxis4": {
160160
"title": "yaxis4 title",
@@ -172,7 +172,7 @@
172172
"side": "right",
173173
"overlaying": "y",
174174
"exponentbase": 16,
175-
"exonentformat": "SI"
175+
"exponentformat": "power"
176176
},
177177
"yaxis5": {
178178
"title": "yaxis5 title",
@@ -186,12 +186,12 @@
186186
"color": "#9467bd"
187187
},
188188
"exponentbase": 2,
189-
"exponentformat": "e",
189+
"exponentformat": "power",
190190
"showexponent": "first",
191191
"linecolor": "#9467bd",
192192
"anchor": "free",
193193
"side": "right",
194-
"position": 0.85,
194+
"position": 0.77,
195195
"overlaying": "y"
196196
},
197197
"yaxis6": {
@@ -205,12 +205,12 @@
205205
"tickfont": {
206206
"color": "#8c564b"
207207
},
208-
"exponentbase": "11",
208+
"exponentbase": "10",
209209
"exponentformat": "E",
210210
"linecolor": "#8c564b",
211211
"anchor": "free",
212212
"side": "right",
213-
"position": 1,
213+
"position": 0.95,
214214
"overlaying": "y"
215215
}
216216
}

0 commit comments

Comments
 (0)