|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "line": { |
| 5 | + "color": "blue", |
| 6 | + "width": 15 |
| 7 | + }, |
| 8 | + "mode": "lines", |
| 9 | + "x": ["A", "B", "C", "D"], |
| 10 | + "y": [1, 2, 3, 4], |
| 11 | + "zorder": 8 |
| 12 | + }, |
| 13 | + { |
| 14 | + "line": { |
| 15 | + "color": "darkblue", |
| 16 | + "width": 15 |
| 17 | + }, |
| 18 | + "mode": "lines", |
| 19 | + "x": ["A", "B", "C", "D"], |
| 20 | + "y": [1.2, 2.2, 3.2, 4.2], |
| 21 | + "zorder": 7 |
| 22 | + }, |
| 23 | + { |
| 24 | + "line": { |
| 25 | + "color": "orange", |
| 26 | + "width": 15 |
| 27 | + }, |
| 28 | + "mode": "lines", |
| 29 | + "x": ["A", "B", "C", "D"], |
| 30 | + "y": [2, 3, 4, 1], |
| 31 | + "yaxis": "y2", |
| 32 | + "zorder": 6 |
| 33 | + }, |
| 34 | + { |
| 35 | + "line": { |
| 36 | + "color": "darkorange", |
| 37 | + "width": 15 |
| 38 | + }, |
| 39 | + "mode": "lines", |
| 40 | + "x": ["A", "B", "C", "D"], |
| 41 | + "y": [2.2, 3.2, 4.2, 1.2], |
| 42 | + "yaxis": "y2", |
| 43 | + "zorder": 5 |
| 44 | + }, |
| 45 | + { |
| 46 | + "line": { |
| 47 | + "color": "green", |
| 48 | + "width": 15 |
| 49 | + }, |
| 50 | + "mode": "lines", |
| 51 | + "x": ["A", "B", "C", "D"], |
| 52 | + "y": [3, 4, 1, 2], |
| 53 | + "xaxis": "x2", |
| 54 | + "zorder": 4 |
| 55 | + }, |
| 56 | + { |
| 57 | + "line": { |
| 58 | + "color": "darkgreen", |
| 59 | + "width": 15 |
| 60 | + }, |
| 61 | + "mode": "lines", |
| 62 | + "x": ["A", "B", "C", "D"], |
| 63 | + "y": [3.2, 4.2, 1.2, 2.2], |
| 64 | + "xaxis": "x2", |
| 65 | + "zorder": 3 |
| 66 | + }, |
| 67 | + { |
| 68 | + "line": { |
| 69 | + "color": "red", |
| 70 | + "width": 15 |
| 71 | + }, |
| 72 | + "mode": "lines", |
| 73 | + "x": ["A", "B", "C", "D"], |
| 74 | + "y": [4, 1, 2, 3], |
| 75 | + "xaxis": "x2", |
| 76 | + "yaxis": "y2", |
| 77 | + "zorder": 2 |
| 78 | + }, |
| 79 | + { |
| 80 | + "line": { |
| 81 | + "color": "darkred", |
| 82 | + "width": 15 |
| 83 | + }, |
| 84 | + "mode": "lines", |
| 85 | + "x": ["A", "B", "C", "D"], |
| 86 | + "y": [4.2, 1.2, 2.2, 3.2], |
| 87 | + "xaxis": "x2", |
| 88 | + "yaxis": "y2", |
| 89 | + "zorder": 1 |
| 90 | + } |
| 91 | + ], |
| 92 | + "layout": { |
| 93 | + "showlegend": true, |
| 94 | + "title": { |
| 95 | + "text": "zorder overlayed subplots", |
| 96 | + "subtitle": { |
| 97 | + "text": "case of multiple traces in one subplot" |
| 98 | + } |
| 99 | + }, |
| 100 | + "width": 600, |
| 101 | + "height": 400, |
| 102 | + "xaxis2": { |
| 103 | + "overlaying": "x", |
| 104 | + "side": "top" |
| 105 | + }, |
| 106 | + "yaxis2": { |
| 107 | + "overlaying": "y", |
| 108 | + "side": "right" |
| 109 | + } |
| 110 | + } |
| 111 | +} |
0 commit comments