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