Skip to content

Commit 5c93270

Browse files
committed
Add a mock to showcase an image trace on a date axis
1 parent 2cce0e9 commit 5c93270

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
12.5 KB
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"data": [{
3+
"type": "image",
4+
"zmax": [1, 1, 1],
5+
"x0": 2011,
6+
"dx": 3.154e+10,
7+
"y0": 10,
8+
"z": [
9+
[[1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 0]],
10+
[[0, 1, 0], [0, 0, 1], [1, 0, 0], [0, 0, 0]],
11+
[[1, 0, 0], [1, 0, 0], [0, 0, 1], [0, 0, 0]]
12+
]
13+
}],
14+
"layout": {
15+
"width": 400, "height": 400, "title": {"text": "Image on date axis"},
16+
"yaxis": {"scaleanchor": false},
17+
"xaxis": {"type": "date"}
18+
}
19+
}

0 commit comments

Comments
 (0)