|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "x": ["a", "b", "c", "d", "e"], |
| 5 | + "y": [1, 2, 3, 4, 5], |
| 6 | + "name": "Bar 1", |
| 7 | + "type": "bar", |
| 8 | + "textposition": "outside", |
| 9 | + "text": "bgcolor", |
| 10 | + "marker": { |
| 11 | + "pattern": { |
| 12 | + "shape": "/", |
| 13 | + "bgcolor": ["", "lightblue", "blue", "darkblue", "black"] |
| 14 | + } |
| 15 | + } |
| 16 | + }, |
| 17 | + { |
| 18 | + "x": ["a", "b", "c", "d", "e"], |
| 19 | + "y": [2, 3, 4, 5, 6], |
| 20 | + "name": "Bar 2", |
| 21 | + "type": "bar", |
| 22 | + "textposition": "outside", |
| 23 | + "text": "shape", |
| 24 | + "marker": { |
| 25 | + "pattern": { |
| 26 | + "shape": ["|", "/", "-", "\\", "|"] |
| 27 | + } |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + "x": ["a", "b", "c", "d", "e"], |
| 32 | + "y": [3, 4, 5, 6, 7], |
| 33 | + "name": "Bar 3", |
| 34 | + "type": "bar", |
| 35 | + "textposition": "outside", |
| 36 | + "text": "size", |
| 37 | + "marker": { |
| 38 | + "pattern": { |
| 39 | + "shape": "x", |
| 40 | + "size": [4, 6, 8, 10, 12] |
| 41 | + } |
| 42 | + } |
| 43 | + }, |
| 44 | + { |
| 45 | + "x": ["a", "b", "c", "d", "e"], |
| 46 | + "y": [6, 7, 8, 9, 10], |
| 47 | + "name": "Bar 4", |
| 48 | + "type": "bar", |
| 49 | + "textposition": "outside", |
| 50 | + "text": "solidity", |
| 51 | + "marker": { |
| 52 | + "pattern": { |
| 53 | + "shape": ".", |
| 54 | + "bgcolor": "yellow", |
| 55 | + "solidity": [0.1, 0.3, 0.5, 0.7, 0.9] |
| 56 | + } |
| 57 | + } |
| 58 | + }, |
| 59 | + { |
| 60 | + "x": ["a", "b", "c", "d", "e"], |
| 61 | + "y": [7, 8, 9, 10, 11], |
| 62 | + "name": "Bar 5", |
| 63 | + "type": "bar", |
| 64 | + "textposition": "outside", |
| 65 | + "text": "path", |
| 66 | + "marker": { |
| 67 | + "pattern": { |
| 68 | + "path": [ |
| 69 | + "M0,0H4V4H0Z", |
| 70 | + "M0,0H6V6Z", |
| 71 | + "M0,0V4H4Z", |
| 72 | + "M0,0C0,2,4,2,4,4C4,6,0,6,0,8H2C2,6,6,6,6,4C6,2,2,2,2,0Z", |
| 73 | + "M4,4L7,2A3.5,3.5,0,1,0,7,6Z" |
| 74 | + ], |
| 75 | + "fgcolor": "yellow", |
| 76 | + "bgcolor": "black" |
| 77 | + } |
| 78 | + } |
| 79 | + }, |
| 80 | + { |
| 81 | + "t": ["M", "N", "O", "P"], |
| 82 | + "r": [1, 2, 3, 4], |
| 83 | + "type": "barpolar", |
| 84 | + "name": "Barpolar 1", |
| 85 | + "marker": { |
| 86 | + "color": "red", |
| 87 | + "pattern": { |
| 88 | + "shape": "+", |
| 89 | + "size": [1, 2, 3, 4] |
| 90 | + } |
| 91 | + } |
| 92 | + }, |
| 93 | + { |
| 94 | + "t": ["M", "N", "O", "P"], |
| 95 | + "r": [2, 3, 4, 1], |
| 96 | + "type": "barpolar", |
| 97 | + "name": "Barpolar 2", |
| 98 | + "marker": { |
| 99 | + "color": "rgba(0,127,0,0.5)", |
| 100 | + "pattern": { |
| 101 | + "shape": "x", |
| 102 | + "solidity": 0.75 |
| 103 | + } |
| 104 | + } |
| 105 | + }, |
| 106 | + { |
| 107 | + "t": ["M", "N", "O", "P"], |
| 108 | + "r": [3, 4, 1, 2], |
| 109 | + "type": "barpolar", |
| 110 | + "name": "Barpolar 3", |
| 111 | + "marker": { |
| 112 | + "color": "blue", |
| 113 | + "pattern": { |
| 114 | + "shape": ["|", "-", "|", "-"], |
| 115 | + "solidity": 0.5 |
| 116 | + } |
| 117 | + } |
| 118 | + }, |
| 119 | + { |
| 120 | + "t": ["M", "N", "O", "P"], |
| 121 | + "r": [4, 1, 2, 3], |
| 122 | + "type": "barpolar", |
| 123 | + "name": "Barpolar 4", |
| 124 | + "marker": { |
| 125 | + "color": "orange", |
| 126 | + "pattern": { |
| 127 | + "shape": ".", |
| 128 | + "bgcolor": "yellow", |
| 129 | + "solidity": [0.2, 0.8, 0.6, 0.4] |
| 130 | + } |
| 131 | + } |
| 132 | + }, |
| 133 | + |
| 134 | + { |
| 135 | + "xaxis": "x2", |
| 136 | + "yaxis": "y2", |
| 137 | + "y": ["A", "A", "A", "A", "B", "B", "C"], |
| 138 | + "name": "Histogram 1", |
| 139 | + "type": "histogram", |
| 140 | + "marker": { |
| 141 | + "color": "yellow", |
| 142 | + "line": { |
| 143 | + "color": "black", |
| 144 | + "width": 2 |
| 145 | + }, |
| 146 | + "pattern": { |
| 147 | + "bgcolor": "blue", |
| 148 | + "shape": "." |
| 149 | + } |
| 150 | + } |
| 151 | + }, |
| 152 | + { |
| 153 | + "xaxis": "x2", |
| 154 | + "yaxis": "y2", |
| 155 | + "y": ["C", "C", "C", "C", "B", "B", "A"], |
| 156 | + "name": "Histogram 2", |
| 157 | + "type": "histogram", |
| 158 | + "marker": { |
| 159 | + "color": "yellow", |
| 160 | + "line": { |
| 161 | + "color": "red", |
| 162 | + "width": 4 |
| 163 | + }, |
| 164 | + "pattern": { |
| 165 | + "bgcolor": "rgba(255, 127,0,0.5)", |
| 166 | + "shape": "x" |
| 167 | + } |
| 168 | + } |
| 169 | + }, |
| 170 | + |
| 171 | + { |
| 172 | + "xaxis": "x3", |
| 173 | + "yaxis": "y3", |
| 174 | + "x": [3, 2, 1], |
| 175 | + "y": ["U", "V", "W"], |
| 176 | + "name": "Funnel", |
| 177 | + "type": "funnel", |
| 178 | + "marker": { |
| 179 | + "pattern": { |
| 180 | + "solidity": [0.25, 0.5, 0.75], |
| 181 | + "shape": ["|", "", "-"], |
| 182 | + "bgcolor": "black" |
| 183 | + } |
| 184 | + } |
| 185 | + } |
| 186 | + ], |
| 187 | + "layout": { |
| 188 | + "title": { |
| 189 | + "text": "pattern options" |
| 190 | + }, |
| 191 | + "width": 1000, |
| 192 | + "height": 600, |
| 193 | + |
| 194 | + "xaxis": { |
| 195 | + "domain": [0, 1] |
| 196 | + }, |
| 197 | + "yaxis": { |
| 198 | + "range": [0, 11], |
| 199 | + "domain": [0, 0.475] |
| 200 | + }, |
| 201 | + |
| 202 | + "polar": { |
| 203 | + "domain": { |
| 204 | + "x": [0.35, 0.65], |
| 205 | + "y": [0.525, 1] |
| 206 | + } |
| 207 | + }, |
| 208 | + |
| 209 | + "xaxis2": { |
| 210 | + "anchor": "y2", |
| 211 | + "gridcolor": "black", |
| 212 | + "gridwidth": 2, |
| 213 | + "domain": [0, 0.3] |
| 214 | + }, |
| 215 | + "yaxis2": { |
| 216 | + "anchor": "x2", |
| 217 | + "domain": [0.525, 1] |
| 218 | + }, |
| 219 | + |
| 220 | + "xaxis3": { |
| 221 | + "anchor": "y3", |
| 222 | + "domain": [0.7, 1] |
| 223 | + }, |
| 224 | + "yaxis3": { |
| 225 | + "anchor": "x3", |
| 226 | + "domain": [0.525, 1] |
| 227 | + } |
| 228 | + } |
| 229 | +} |
0 commit comments