|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + { |
| 4 | + "type": "scattergeo", |
| 5 | + "locations": ["AL"], |
| 6 | + "featureidkey": "properties.name", |
| 7 | + "geojson": { |
| 8 | + "type": "Feature", |
| 9 | + "properties": { |
| 10 | + "name": "AL" |
| 11 | + }, |
| 12 | + "geometry": { |
| 13 | + "type": "Polygon", |
| 14 | + "coordinates": [[ |
| 15 | + [-87.359296, 35.00118], [-85.606675, 34.984749], [-85.431413, 34.124869], [-85.184951, 32.859696], |
| 16 | + [-85.069935, 32.580372], [-84.960397, 32.421541], [-85.004212, 32.322956], [-84.889196, 32.262709], |
| 17 | + [-85.058981, 32.13674], [-85.053504, 32.01077], [-85.141136, 31.840985], [-85.042551, 31.539753], |
| 18 | + [-85.113751, 31.27686], [-85.004212, 31.003013], [-85.497137, 30.997536], [-87.600282, 30.997536], |
| 19 | + [-87.633143, 30.86609], [-87.408589, 30.674397], [-87.446927, 30.510088], [-87.37025, 30.427934], |
| 20 | + [-87.518128, 30.280057], [-87.655051, 30.247195], [-87.90699, 30.411504], [-87.934375, 30.657966], |
| 21 | + [-88.011052, 30.685351], [-88.10416, 30.499135], [-88.137022, 30.318396], [-88.394438, 30.367688], |
| 22 | + [-88.471115, 31.895754], [-88.241084, 33.796253], [-88.098683, 34.891641], [-88.202745, 34.995703], |
| 23 | + [-87.359296, 35.00118] |
| 24 | + ]] |
| 25 | + } |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "type": "choropleth", |
| 30 | + "name": "choropleth + RAW", |
| 31 | + "locations": ["AL"], |
| 32 | + "featureidkey": "properties.id", |
| 33 | + "z": [10], |
| 34 | + "showscale": false, |
| 35 | + "geojson": { |
| 36 | + "type": "Feature", |
| 37 | + "properties": { |
| 38 | + "id": "AL" |
| 39 | + }, |
| 40 | + "geometry": { |
| 41 | + "type": "Polygon", |
| 42 | + "coordinates": [[ |
| 43 | + [-87.359296, 35.00118], [-85.606675, 34.984749], [-85.431413, 34.124869], [-85.184951, 32.859696], |
| 44 | + [-85.069935, 32.580372], [-84.960397, 32.421541], [-85.004212, 32.322956], [-84.889196, 32.262709], |
| 45 | + [-85.058981, 32.13674], [-85.053504, 32.01077], [-85.141136, 31.840985], [-85.042551, 31.539753], |
| 46 | + [-85.113751, 31.27686], [-85.004212, 31.003013], [-85.497137, 30.997536], [-87.600282, 30.997536], |
| 47 | + [-87.633143, 30.86609], [-87.408589, 30.674397], [-87.446927, 30.510088], [-87.37025, 30.427934], |
| 48 | + [-87.518128, 30.280057], [-87.655051, 30.247195], [-87.90699, 30.411504], [-87.934375, 30.657966], |
| 49 | + [-88.011052, 30.685351], [-88.10416, 30.499135], [-88.137022, 30.318396], [-88.394438, 30.367688], |
| 50 | + [-88.471115, 31.895754], [-88.241084, 33.796253], [-88.098683, 34.891641], [-88.202745, 34.995703], |
| 51 | + [-87.359296, 35.00118] |
| 52 | + ]] |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | + ], |
| 57 | + "layout": { |
| 58 | + "geo": { |
| 59 | + "center": { "lon": -86, "lat": 33 }, |
| 60 | + "projection": {"scale": 30} |
| 61 | + }, |
| 62 | + "width": 600, |
| 63 | + "height": 400, |
| 64 | + "showlegend": false, |
| 65 | + "title": { |
| 66 | + "text": "Geo traces with set <b>featureidkey</b>", |
| 67 | + "x": 0.1, |
| 68 | + "xref": "container", |
| 69 | + "xanchor": "left" |
| 70 | + } |
| 71 | + } |
| 72 | +} |
0 commit comments