|
1 | 1 | {
|
2 | 2 | "data": [
|
3 |
| - {"type": "bar", "name": "100", "y": [100], "yaxis": "y2", "legendgroup": "two"}, |
| 3 | + {"type": "bar", "name": "1", "y": [1], "yaxis": "y2", "legendgroup": "two", "legendrank": 3}, |
4 | 4 | {
|
5 | 5 | "legendrank": 2,
|
6 | 6 | "legendgroup": "pie",
|
7 | 7 | "type": "pie",
|
8 |
| - "labels": ["z","y","x","x","x","y"], |
9 |
| - "sort": false, |
| 8 | + "labels": ["a","b","c","c","c","a"], |
10 | 9 | "textinfo": "none",
|
11 | 10 | "domain": {
|
12 |
| - "x": [0.55, 1], |
| 11 | + "x": [0, 0.45], |
13 | 12 | "y": [0.35, 0.65]
|
14 | 13 | }
|
15 | 14 | },
|
16 | 15 | {
|
17 | 16 | "legendrank": 1,
|
18 | 17 | "legendgroup": "pie",
|
19 | 18 | "type": "pie",
|
20 |
| - "labels": ["a","b","c","c","c","a"], |
| 19 | + "labels": ["z","x","x","x","y", "y"], |
| 20 | + "sort": false, |
21 | 21 | "textinfo": "none",
|
22 | 22 | "domain": {
|
23 |
| - "x": [0, 0.45], |
| 23 | + "x": [0.55, 1], |
24 | 24 | "y": [0.35, 0.65]
|
25 | 25 | }
|
26 | 26 | },
|
27 | 27 | {"type": "scatter", "name": "2", "y": [2], "yaxis": "y", "legendgroup": "one", "legendrank": 2},
|
28 | 28 | {"type": "scatter", "name": "1", "y": [1], "yaxis": "y", "legendgroup": "one", "legendrank": 1},
|
29 |
| - {"type": "bar", "name": "200", "y": [100], "yaxis": "y2", "legendgroup": "two"}, |
| 29 | + {"type": "bar", "name": "2", "y": [2], "yaxis": "y2", "legendgroup": "two", "legendrank": 2}, |
30 | 30 | {"type": "scatter", "name": "3", "y": [3], "yaxis": "y", "legendgroup": "one", "legendrank": 3},
|
31 |
| - {"type": "bar", "name": "300", "y": [100], "yaxis": "y2", "legendgroup": "two"} |
| 31 | + {"type": "bar", "name": "3", "y": [3], "yaxis": "y2", "legendgroup": "two", "legendrank": 1} |
32 | 32 | ],
|
33 | 33 | "layout": {
|
34 |
| - "barmode": "stack", |
35 | 34 | "title": {
|
36 | 35 | "text": "legendrank"
|
37 | 36 | },
|
|
45 | 44 | "domain": [0.7, 1]
|
46 | 45 | },
|
47 | 46 | "yaxis": {
|
| 47 | + "autorange": "reversed", |
48 | 48 | "domain": [0, 0.3]
|
49 | 49 | }
|
50 | 50 | }
|
|
0 commit comments