|
| 1 | +{ |
| 2 | + "data": [{ |
| 3 | + "type": "scatter3d", |
| 4 | + "x": [0, 1, 2], |
| 5 | + "y": [0, 2, 1], |
| 6 | + "z": [-5, -2, 4], |
| 7 | + "texttemplate": "%{x}, %{y}, %{z}", |
| 8 | + "mode": "markers+text" |
| 9 | + }, { |
| 10 | + "type": "scattergeo", |
| 11 | + "mode": "markers+text", |
| 12 | + "lon": [ |
| 13 | + -73.57, |
| 14 | + -79.24, |
| 15 | + -123.06 |
| 16 | + ], |
| 17 | + "lat": [ |
| 18 | + 45.5, |
| 19 | + 43.4, |
| 20 | + 49.13 |
| 21 | + ], |
| 22 | + "text": [ |
| 23 | + "Montreal", |
| 24 | + "Toronto", |
| 25 | + "Vancouver" |
| 26 | + ], |
| 27 | + "texttemplate": "%{text} (%{lonlat[0]}, %{lonlat[1]}): %{customdata:.2s}", |
| 28 | + "textposition": "top center", |
| 29 | + "customdata": [1780000, 2930000, 675218], |
| 30 | + "geo": "geo" |
| 31 | + }, { |
| 32 | + "type": "carpet", |
| 33 | + "carpet": "carpet1", |
| 34 | + "a": [0.1, 0.2, 0.3], |
| 35 | + "b": [1, 2, 3], |
| 36 | + "y": [ |
| 37 | + [1, 2.2, 3], |
| 38 | + [1.5, 2.7, 3.5], |
| 39 | + [1.7, 2.9, 3.7] |
| 40 | + ], |
| 41 | + "cheaterslope": 1, |
| 42 | + |
| 43 | + "xaxis": "x2", |
| 44 | + "yaxis": "y2" |
| 45 | + }, |
| 46 | + { |
| 47 | + "type": "scattercarpet", |
| 48 | + "carpet": "carpet1", |
| 49 | + "name": "b = 1.5", |
| 50 | + "mode": "markers+text", |
| 51 | + "a": [0.1, 0.15, 0.25, 0.3], |
| 52 | + "b": [1.5, 1.5, 1.5, 1.5], |
| 53 | + |
| 54 | + "text": ["a", "b", "c", "d"], |
| 55 | + "texttemplate": "%{text}: (%{a}, %{b})", |
| 56 | + "textposition": "top center", |
| 57 | + "xaxis": "x2", |
| 58 | + "yaxis": "y2" |
| 59 | + }, { |
| 60 | + "type": "scattergl", |
| 61 | + "mode": "markers+text", |
| 62 | + "x": [0, 1, 2, 3], |
| 63 | + "y": [0, 1, 4, 9], |
| 64 | + |
| 65 | + "text": ["a", "b", "c", "d"], |
| 66 | + "texttemplate": "%{text}: (%{x}, %{y})", |
| 67 | + "textposition": "top center", |
| 68 | + "xaxis": "x8", |
| 69 | + "yaxis": "y8" |
| 70 | + }, { |
| 71 | + "type": "scatterpolar", |
| 72 | + "mode": "markers+text", |
| 73 | + "text": ["A", "B", "C", "D"], |
| 74 | + "texttemplate": "%{text}: (%{r:0.2f},%{theta:0.2f})", |
| 75 | + "textposition": "top center", |
| 76 | + "r": [1, 0.5, 1, 1.5], |
| 77 | + "theta": [0, 90, 180, 270], |
| 78 | + "showgrid": false |
| 79 | + }, { |
| 80 | + "type": "scatterpolargl", |
| 81 | + "mode": "markers+text", |
| 82 | + "text": ["A", "B", "C", "D"], |
| 83 | + "texttemplate": "%{text}: (%{r:0.2f},%{theta:0.2f})", |
| 84 | + "textposition": "top center", |
| 85 | + "r": [1, 0.5, 1, 1.5], |
| 86 | + "theta": [0, 90, 180, 270], |
| 87 | + "showgrid": false, |
| 88 | + "subplot": "polar2" |
| 89 | + }, { |
| 90 | + "type": "scatterternary", |
| 91 | + "a": [ |
| 92 | + 3, |
| 93 | + 2, |
| 94 | + 5 |
| 95 | + ], |
| 96 | + "b": [ |
| 97 | + 2, |
| 98 | + 5, |
| 99 | + 2 |
| 100 | + ], |
| 101 | + "c": [ |
| 102 | + 5, |
| 103 | + 2, |
| 104 | + 2 |
| 105 | + ], |
| 106 | + "mode": "markers+text", |
| 107 | + "text": ["A", "B", "C"], |
| 108 | + "texttemplate": "%{text}<br>(%{a:.2f}, %{b:.2f}, %{c:.2f})", |
| 109 | + "textposition": "bottom center" |
| 110 | + } |
| 111 | + ], |
| 112 | + "layout": { |
| 113 | + "showlegend": false, |
| 114 | + "width": 1000, |
| 115 | + "height": 500, |
| 116 | + "margin": { |
| 117 | + "t": 50, |
| 118 | + "b": 50, |
| 119 | + "l": 50, |
| 120 | + "r": 50 |
| 121 | + }, |
| 122 | + "geo": { |
| 123 | + "scope": "north america", |
| 124 | + "domain": { |
| 125 | + "row": 0, |
| 126 | + "column": 2 |
| 127 | + }, |
| 128 | + "lonaxis": { |
| 129 | + "range": [ |
| 130 | + -130, |
| 131 | + -55 |
| 132 | + ] |
| 133 | + }, |
| 134 | + "lataxis": { |
| 135 | + "range": [ |
| 136 | + 40, |
| 137 | + 70 |
| 138 | + ] |
| 139 | + }, |
| 140 | + "center": { |
| 141 | + "lat": 57 |
| 142 | + } |
| 143 | + }, |
| 144 | + "mapbox": { |
| 145 | + "domain": {"row": 1, "column": 0}, |
| 146 | + "center": {"lon": -90, "lat": 45}, |
| 147 | + "zoom": 0.7, |
| 148 | + "style": "white-bg" |
| 149 | + }, |
| 150 | + "polar": { |
| 151 | + "radialaxis": { |
| 152 | + "showline": false, |
| 153 | + "linewidth": 0, |
| 154 | + "tickwidth": 2, |
| 155 | + "gridcolor": "white", |
| 156 | + "gridwidth": 0 |
| 157 | + } |
| 158 | + }, |
| 159 | + "polar2": { |
| 160 | + "domain": { |
| 161 | + "row": 1, |
| 162 | + "column": 2 |
| 163 | + }, |
| 164 | + "radialaxis": { |
| 165 | + "showline": false, |
| 166 | + "linewidth": 0, |
| 167 | + "tickwidth": 2, |
| 168 | + "gridcolor": "white", |
| 169 | + "gridwidth": 0 |
| 170 | + } |
| 171 | + }, |
| 172 | + "ternary": { |
| 173 | + "sum": 10, |
| 174 | + "domain": { |
| 175 | + "row": 0, |
| 176 | + "column": 3 |
| 177 | + } |
| 178 | + }, |
| 179 | + "scene": { |
| 180 | + "domain": {"row": 1, "column": 1} |
| 181 | + }, |
| 182 | + "scene1": { |
| 183 | + "domain": {"row": 1, "column": 3} |
| 184 | + }, |
| 185 | + "grid": { |
| 186 | + "rows": 2, |
| 187 | + "columns": 4, |
| 188 | + "pattern": "independent", |
| 189 | + "xgap": 5, |
| 190 | + "ygap": 5 |
| 191 | + } |
| 192 | + } |
| 193 | +} |
0 commit comments