Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9a559e

Browse filesBrowse files
committed
add category axis to mock
1 parent e6f76d5 commit a9a559e
Copy full SHA for a9a559e

File tree

Expand file treeCollapse file tree

1 file changed

+21
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+21
-14
lines changed

‎test/image/mocks/zz-text_on_shapes_texttemplate.json

Copy file name to clipboardExpand all lines: test/image/mocks/zz-text_on_shapes_texttemplate.json
+21-14Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@
1717
"xaxis": "x2",
1818
"yaxis": "y2",
1919
"x": [
20-
0,
21-
10
20+
"a",
21+
"b",
22+
"c",
23+
"d",
24+
"e"
2225
],
2326
"y": [
2427
1e-1,
25-
1e+6
28+
10,
29+
1e+3,
30+
1e+5,
31+
1e+7
2632
],
2733
"mode": "markers"
2834
},
@@ -85,6 +91,7 @@
8591
0.525,
8692
1
8793
],
94+
"type": "category",
8895
"gridcolor": "white"
8996
},
9097
"yaxis2": {
@@ -201,17 +208,17 @@
201208
},
202209
{
203210
"label": {
204-
"texttemplate": "dy: %{dy:.2f}<br>dx: %{dx:.2f}<br>slope: %{slope:.2f}<br>length: %{length:.2f}<br>",
211+
"texttemplate": "x0: %{x0}, x1: %{x1}<br>dy: %{dy:.2f}, dx: %{dx:.2f}<br>slope: %{slope:.2f}<br>length: %{length:.2f}<br>",
205212
"textposition": "start",
206213
"yanchor": "top"
207214
},
208215
"layer": "above",
209216
"xref": "x2",
210217
"yref": "y2",
211-
"x0": 1,
212-
"x1": 10,
213-
"y0": 1000000,
214-
"y1": 10000,
218+
"x0": "b",
219+
"x1": "d",
220+
"y0": 1e+7,
221+
"y1": 1e+5,
215222
"type": "line",
216223
"opacity": 0.5,
217224
"line": {
@@ -222,15 +229,15 @@
222229
},
223230
{
224231
"label": {
225-
"texttemplate": "x0: %{x0:.2f}<br>x1: %{x1:.2f}<br>xcenter: %{xcenter:.2f}<br>dx: %{dx:.2f}<br>width: %{width:.2f}<br><br>y0: %{y0:.2f}<br>y1: %{y1:.2f}<br>ycenter: %{ycenter:.2f}<br>dy: %{dy:.2f}<br>height: %{height:.2f}"
232+
"texttemplate": "x0: %{x0}<br>x1: %{x1}<br>xcenter: %{xcenter}<br>dx: %{dx:.2f}<br>width: %{width:.2f}<br><br>y0: %{y0:.2f}<br>y1: %{y1:.2f}<br>ycenter: %{ycenter:.2f}<br>dy: %{dy:.2f}<br>height: %{height:.2f}"
226233
},
227234
"layer": "above",
228235
"xref": "x2",
229236
"yref": "y2",
230-
"x0": 2,
231-
"x1": 6.5,
232-
"y0": 1,
233-
"y1": 20000,
237+
"x0": "b",
238+
"x1": "e",
239+
"y0": 0.1,
240+
"y1": 2e+4,
234241
"type": "circle",
235242
"line": {
236243
"width": 2,
@@ -240,7 +247,7 @@
240247
},
241248
{
242249
"label": {
243-
"texttemplate": "dy: %{dy:.2f}<br>dx: %{dx:.2f}<br>slope: %{slope:.2f}<br>length: %{length:.2f}",
250+
"texttemplate": "dy: %{dy:.2f}, dx: %{dx:.2f}<br>slope: %{slope:.2f}<br>length: %{length:.2f}",
244251
"textposition": "start",
245252
"yanchor": "top"
246253
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.