|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "type": "box", |
| 5 | + "x": [ |
| 6 | + "day 1", |
| 7 | + "day 1", |
| 8 | + "day 1", |
| 9 | + "day 1", |
| 10 | + "day 1", |
| 11 | + "day 1", |
| 12 | + "day 2", |
| 13 | + "day 2", |
| 14 | + "day 2", |
| 15 | + "day 2", |
| 16 | + "day 2", |
| 17 | + "day 2" |
| 18 | + ], |
| 19 | + "y": [0.2, 0.2, 0.6, 1, 0.5, 0.4, 0.2, 0.7, 0.9, 0.1, 0.5, 0.3] |
| 20 | + }, |
| 21 | + { |
| 22 | + "type": "box", |
| 23 | + "x": [ |
| 24 | + "day 1", |
| 25 | + "day 1", |
| 26 | + "day 1", |
| 27 | + "day 1", |
| 28 | + "day 1", |
| 29 | + "day 1", |
| 30 | + "day 2", |
| 31 | + "day 2", |
| 32 | + "day 2", |
| 33 | + "day 2", |
| 34 | + "day 2", |
| 35 | + "day 2" |
| 36 | + ], |
| 37 | + "y": [0.1, 0.3, 0.1, 0.9, 0.6, 0.6, 0.9, 1, 0.3, 0.6, 0.8, 0.5] |
| 38 | + }, |
| 39 | + { |
| 40 | + "type": "box", |
| 41 | + "x": [ |
| 42 | + "day 1", |
| 43 | + "day 1", |
| 44 | + "day 1", |
| 45 | + "day 1", |
| 46 | + "day 1", |
| 47 | + "day 1", |
| 48 | + "day 2", |
| 49 | + "day 2", |
| 50 | + "day 2", |
| 51 | + "day 2", |
| 52 | + "day 2", |
| 53 | + "day 2" |
| 54 | + ], |
| 55 | + "y": [0.6, 0.7, 0.3, 0.6, 0, 0.5, 0.7, 0.9, 0.5, 0.8, 0.7, 0.2] |
| 56 | + }, |
| 57 | + |
| 58 | + { |
| 59 | + "type": "bar", |
| 60 | + "x": [1, 2, 1], |
| 61 | + "y": ["apples", "bananas", "clementines"], |
| 62 | + "orientation": "h", |
| 63 | + "xaxis": "x2", |
| 64 | + "yaxis": "y2" |
| 65 | + }, |
| 66 | + { |
| 67 | + "type": "bar", |
| 68 | + "x": [1.3, 2.2, 0.8], |
| 69 | + "y": ["apples", "bananas", "clementines"], |
| 70 | + "orientation": "h", |
| 71 | + "xaxis": "x2", |
| 72 | + "yaxis": "y2" |
| 73 | + }, |
| 74 | + { |
| 75 | + "type": "bar", |
| 76 | + "x": [3, 3.2, 1.8], |
| 77 | + "y": ["apples", "bananas", "clementines"], |
| 78 | + "orientation": "h", |
| 79 | + "xaxis": "x2", |
| 80 | + "yaxis": "y2" |
| 81 | + }, |
| 82 | + |
| 83 | + { |
| 84 | + "type": "bar", |
| 85 | + "name": "with dtick !== 1", |
| 86 | + "x": ["a", "b", "c", "d", "e", "f", "g", "h"], |
| 87 | + "y": [1, 2, 1, 2, 1, 3, 4, 1], |
| 88 | + "xaxis": "x3", |
| 89 | + "yaxis": "y3" |
| 90 | + }, |
| 91 | + |
| 92 | + { |
| 93 | + "mode": "markers", |
| 94 | + "marker": { "symbol": "square" }, |
| 95 | + "name": "with overlapping tick labels", |
| 96 | + "x": ["A very long title", "short", "Another very long title"], |
| 97 | + "y": [0, 10, 2], |
| 98 | + "xaxis": "x4", |
| 99 | + "yaxis": "y4" |
| 100 | + } |
| 101 | + ], |
| 102 | + "layout": { |
| 103 | + "title": { |
| 104 | + "text": "Although some ticklabelpositions have a side specified,<br>all category labels are expected to be centered." |
| 105 | + }, |
| 106 | + "boxmode": "group", |
| 107 | + "grid": { |
| 108 | + "rows": 4, |
| 109 | + "columns": 1, |
| 110 | + "pattern": "independent", |
| 111 | + "ygap": 0.2 |
| 112 | + }, |
| 113 | + "xaxis": { |
| 114 | + "ticklabelposition": "inside right", |
| 115 | + "ticks": "outside", |
| 116 | + "tickson": "boundaries", |
| 117 | + "gridcolor": "white", |
| 118 | + "gridwidth": 4 |
| 119 | + }, |
| 120 | + "yaxis2": { |
| 121 | + "ticks": "inside", |
| 122 | + "ticklabelposition": "inside top", |
| 123 | + "tickson": "boundaries", |
| 124 | + "gridcolor": "white", |
| 125 | + "gridwidth": 4 |
| 126 | + }, |
| 127 | + "xaxis3": { |
| 128 | + "ticks": "inside", |
| 129 | + "ticklabelposition": "inside left", |
| 130 | + "tickson": "boundaries", |
| 131 | + "gridcolor": "white", |
| 132 | + "gridwidth": 4, |
| 133 | + "dtick": 2 |
| 134 | + }, |
| 135 | + "xaxis4": { |
| 136 | + "domain": [0.22, 0.78], |
| 137 | + "ticks": "outside", |
| 138 | + "ticklabelposition": "inside", |
| 139 | + "ticklen": 20, |
| 140 | + "tickson": "boundaries", |
| 141 | + "gridcolor": "white", |
| 142 | + "gridwidth": 4 |
| 143 | + }, |
| 144 | + "plot_bgcolor": "lightgrey", |
| 145 | + "showlegend": false, |
| 146 | + "width": 500, |
| 147 | + "height": 800, |
| 148 | + "margin": { "b": 140 } |
| 149 | + } |
| 150 | +} |
0 commit comments