|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "name": "scatter", |
| 5 | + "x": [ |
| 6 | + "A", |
| 7 | + "B", |
| 8 | + "C", |
| 9 | + "D", |
| 10 | + 2000.0 |
| 11 | + ], |
| 12 | + "y": [ |
| 13 | + 100, |
| 14 | + 200, |
| 15 | + 150, |
| 16 | + 190, |
| 17 | + 50 |
| 18 | + ], |
| 19 | + "type": "scatter" |
| 20 | + }, |
| 21 | + { |
| 22 | + "name": "bar", |
| 23 | + "x": [ |
| 24 | + "A", |
| 25 | + "B", |
| 26 | + "C", |
| 27 | + "D", |
| 28 | + 2000.0 |
| 29 | + ], |
| 30 | + "y": [ |
| 31 | + 50, |
| 32 | + 70, |
| 33 | + 90, |
| 34 | + 35, |
| 35 | + 55 |
| 36 | + ], |
| 37 | + "type": "bar", |
| 38 | + "yaxis":"y2" |
| 39 | + } |
| 40 | + ], |
| 41 | + "layout": { |
| 42 | + "shapes": [ |
| 43 | + { |
| 44 | + "name": "dashdot line", |
| 45 | + "fillcolor": "rgba(179,179,179,1)", |
| 46 | + "layer": "above", |
| 47 | + "line": { |
| 48 | + "color": "rgba(66,127,109,1)", |
| 49 | + "dash": "dashdot" |
| 50 | + }, |
| 51 | + "type": "line", |
| 52 | + "x0": 0.4, |
| 53 | + "x1": 0.4, |
| 54 | + "xref": "x", |
| 55 | + "y0": 0.0, |
| 56 | + "y1": 1.0, |
| 57 | + "yref": "paper" |
| 58 | + }, |
| 59 | + { |
| 60 | + "name": "horizontal line", |
| 61 | + "fillcolor": "rgba(179,179,179,1)", |
| 62 | + "layer": "above", |
| 63 | + "line": { |
| 64 | + "color": "rgba(0,0,0,1)" |
| 65 | + }, |
| 66 | + "type": "line", |
| 67 | + "x0": 0.0, |
| 68 | + "x1": 1.0, |
| 69 | + "xref": "paper", |
| 70 | + "y0": 120.0, |
| 71 | + "y1": 120.0, |
| 72 | + "yref": "y" |
| 73 | + }, |
| 74 | + { |
| 75 | + "name": "blue rect", |
| 76 | + "fillcolor": "rgba(108,173,225,1)", |
| 77 | + "layer": "between", |
| 78 | + "label": { |
| 79 | + "text": "hello, I am between gridlines and traces!" |
| 80 | + }, |
| 81 | + "line": { |
| 82 | + "color": "rgba(108,173,225,1)" |
| 83 | + }, |
| 84 | + "type": "rect", |
| 85 | + "x0": "B", |
| 86 | + "x1": "D", |
| 87 | + "xref": "x", |
| 88 | + "y0": 35, |
| 89 | + "y1": 65.0 |
| 90 | + }, |
| 91 | + { |
| 92 | + "name": "big rect", |
| 93 | + "fillcolor": "rgba(179,179,179,1)", |
| 94 | + "layer": "below", |
| 95 | + "line": { |
| 96 | + "color": "rgba(179,179,179,1)" |
| 97 | + }, |
| 98 | + "type": "rect", |
| 99 | + "x0": "C", |
| 100 | + "x1": 0.25, |
| 101 | + "xref": "x", |
| 102 | + "y0": 0.0, |
| 103 | + "y1": 1.0, |
| 104 | + "yref": "paper" |
| 105 | + }, |
| 106 | + { |
| 107 | + "name": "dashed rect", |
| 108 | + "fillcolor": "rgba(130,143,198,1)", |
| 109 | + "layer": "between", |
| 110 | + "line": { |
| 111 | + "color": "rgba(0,0,0,1)", |
| 112 | + "dash": "dash", |
| 113 | + "width": 3.0 |
| 114 | + }, |
| 115 | + "type": "rect", |
| 116 | + "x0": "D", |
| 117 | + "x1": 5, |
| 118 | + "y0": 140, |
| 119 | + "y1": 200 |
| 120 | + } |
| 121 | + ], |
| 122 | + "yaxis": { |
| 123 | + "gridcolor": "red", |
| 124 | + "insiderange": [ |
| 125 | + "0", |
| 126 | + "215" |
| 127 | + ], |
| 128 | + "type": "linear" |
| 129 | + }, |
| 130 | + "yaxis2": { |
| 131 | + "gridwidth": 2, |
| 132 | + "side": "right", |
| 133 | + "overlaying": "y" |
| 134 | + } |
| 135 | + |
| 136 | + } |
| 137 | +} |
0 commit comments