The Map Shape Series visualises data representing geographic areas such as countries, using colours to denote distinct series or the magnitude of the values.
Simple Map Shapes Copy Link
import {
AgChartOptions,
AgCharts,
AnimationModule,
ContextMenuModule,
CrosshairModule,
LegendModule,
MapShapeSeriesModule,
ModuleRegistry,
} from "ag-charts-enterprise";
import { central, eastern, mountain, pacific } from "./data";
import { topology } from "./topology";
ModuleRegistry.registerModules([
AnimationModule,
CrosshairModule,
LegendModule,
MapShapeSeriesModule,
ContextMenuModule,
]);
const options: AgChartOptions = {
title: {
text: "Timezones Across America",
},
topology,
series: [
{
type: "map-shape",
data: pacific,
idKey: "name",
title: "Pacific",
},
{
type: "map-shape",
data: mountain,
idKey: "name",
title: "Mountain",
},
{
type: "map-shape",
data: central,
idKey: "name",
title: "Central",
},
{
type: "map-shape",
data: eastern,
idKey: "name",
title: "Eastern",
},
],
legend: {
enabled: true,
},
};
options.container = document.getElementById("myChart");
const chart = AgCharts.create(options);
export const eastern = [
{ name: "Connecticut" },
{ name: "Delaware" },
{ name: "Florida" },
{ name: "Georgia" },
{ name: "Indiana" },
{ name: "Kentucky" },
{ name: "Maine" },
{ name: "Maryland" },
{ name: "Massachusetts" },
{ name: "Michigan" },
{ name: "New Hampshire" },
{ name: "New Jersey" },
{ name: "New York" },
{ name: "North Carolina" },
{ name: "Ohio" },
{ name: "Pennsylvania" },
{ name: "Rhode Island" },
{ name: "South Carolina" },
{ name: "Vermont" },
{ name: "Virginia" },
{ name: "West Virginia" },
];
export const central = [
{ name: "Alabama" },
{ name: "Arkansas" },
{ name: "Illinois" },
{ name: "Iowa" },
{ name: "Kansas" },
{ name: "Louisiana" },
{ name: "Minnesota" },
{ name: "Mississippi" },
{ name: "Missouri" },
{ name: "Nebraska" },
{ name: "North Dakota" },
{ name: "Oklahoma" },
{ name: "South Dakota" },
{ name: "Tennessee" },
{ name: "Texas" },
{ name: "Wisconsin" },
];
export const mountain = [
{ name: "Arizona" },
{ name: "Colorado" },
{ name: "Idaho" },
{ name: "Montana" },
{ name: "New Mexico" },
{ name: "Utah" },
{ name: "Wyoming" },
];
export const pacific = [
{ name: "California" },
{ name: "Washington" },
{ name: "Nevada" },
{ name: "Oregon" },
];
// https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html
export const topology = {
type: "FeatureCollection",
features: [
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.477, 39.721],
[-79.487, 39.206],
[-79.091, 39.472],
[-78.707, 39.556],
[-78.461, 39.526],
[-78.383, 39.622],
[-78.082, 39.671],
[-77.83, 39.587],
[-77.72, 39.321],
[-77.46, 39.219],
[-77.463, 39.076],
[-77.12, 38.934],
[-77.039, 38.792],
[-77.13, 38.635],
[-76.864, 38.269],
[-76.591, 38.214],
[-76.393, 38.24],
[-76.393, 38.389],
[-76.518, 38.539],
[-76.559, 38.756],
[-76.45, 38.941],
[-76.425, 39.206],
[-76.233, 39.091],
[-76.362, 38.939],
[-76.336, 38.492],
[-76.218, 38.306],
[-75.889, 38.241],
[-75.899, 37.975],
[-75.67, 37.951],
[-75.242, 38.027],
[-75.049, 38.451],
[-75.694, 38.46],
[-75.789, 39.722],
[-77.469, 39.72],
[-79.477, 39.721],
],
],
},
properties: { name: "Maryland" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-96.453, 43.5],
[-96.522, 43.221],
[-96.439, 43.114],
[-96.622, 42.779],
[-96.446, 42.491],
[-96.348, 42.167],
[-96.065, 41.793],
[-96.118, 41.613],
[-95.923, 41.456],
[-95.811, 40.887],
[-95.889, 40.736],
[-95.766, 40.585],
[-94.534, 40.571],
[-93.136, 40.583],
[-91.729, 40.614],
[-91.419, 40.378],
[-91.34, 40.613],
[-91.121, 40.673],
[-90.952, 40.954],
[-90.957, 41.111],
[-91.114, 41.25],
[-91.028, 41.424],
[-90.701, 41.455],
[-90.34, 41.599],
[-90.181, 41.812],
[-90.161, 42.106],
[-90.431, 42.278],
[-90.643, 42.508],
[-90.701, 42.626],
[-90.942, 42.684],
[-91.138, 42.904],
[-91.175, 43.135],
[-91.058, 43.254],
[-91.218, 43.501],
[-92.449, 43.5],
[-93.971, 43.5],
[-94.855, 43.501],
[-96.453, 43.5],
],
],
},
properties: { name: "Iowa" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.57, 39.839],
[-75.789, 39.722],
[-75.694, 38.46],
[-75.049, 38.451],
[-75.089, 38.797],
[-75.304, 38.913],
[-75.408, 39.265],
[-75.528, 39.498],
[-75.559, 39.63],
[-75.415, 39.802],
],
],
},
properties: { name: "Delaware" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-84.806, 41.696],
[-84.804, 40.353],
[-84.82, 39.105],
[-84.462, 39.122],
[-84.327, 39.027],
[-84.213, 38.806],
[-83.852, 38.751],
[-83.679, 38.63],
[-83.533, 38.702],
[-83.287, 38.599],
[-82.889, 38.756],
[-82.851, 38.604],
[-82.594, 38.422],
[-82.324, 38.449],
[-82.175, 38.608],
[-82.209, 38.803],
[-82.007, 39.03],
[-81.898, 38.93],
[-81.678, 39.274],
[-81.456, 39.409],
[-81.348, 39.346],
[-81.129, 39.449],
[-80.83, 39.712],
[-80.803, 39.919],
[-80.607, 40.304],
[-80.668, 40.582],
[-80.519, 40.639],
[-80.519, 41.978],
[-81.287, 41.76],
[-81.739, 41.489],
[-81.995, 41.514],
[-82.461, 41.386],
[-82.834, 41.588],
[-83.067, 41.595],
[-83.454, 41.733],
[-84.806, 41.696],
],
],
},
properties: { name: "Ohio" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-80.519, 41.978],
[-80.519, 40.639],
[-80.519, 39.721],
[-79.477, 39.721],
[-77.469, 39.72],
[-75.789, 39.722],
[-75.57, 39.839],
[-75.415, 39.802],
[-74.722, 40.154],
[-75.187, 40.569],
[-75.133, 40.98],
[-74.695, 41.357],
[-74.982, 41.496],
[-75.113, 41.841],
[-75.341, 41.993],
[-76.462, 41.999],
[-77.832, 41.999],
[-79.761, 41.999],
[-79.762, 42.27],
[-80.519, 41.978],
],
],
},
properties: { name: "Pennsylvania" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.053, 43.001],
[-104.053, 42.25],
[-104.053, 41.001],
[-102.052, 41.002],
[-102.052, 40.003],
[-101.06, 40.002],
[-99.813, 40.001],
[-98.076, 40.002],
[-96.47, 40.001],
[-95.308, 40],
[-95.473, 40.236],
[-95.654, 40.323],
[-95.766, 40.585],
[-95.889, 40.736],
[-95.811, 40.887],
[-95.923, 41.456],
[-96.118, 41.613],
[-96.065, 41.793],
[-96.348, 42.167],
[-96.446, 42.491],
[-96.611, 42.506],
[-96.698, 42.659],
[-97.131, 42.772],
[-97.238, 42.853],
[-97.858, 42.865],
[-97.95, 42.77],
[-98.435, 42.929],
[-98.499, 42.999],
[-100.198, 42.998],
[-102.082, 42.999],
[-104.053, 43.001],
],
],
},
properties: { name: "Nebraska" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-123.237, 48.683],
[-123.141, 48.505],
[-122.874, 48.418],
[-122.743, 48.662],
[-122.938, 48.79],
[-123.237, 48.683],
],
],
[
[
[-117.032, 48.999],
[-118.837, 49],
[-120.001, 48.999],
[-121.751, 48.997],
[-122.758, 49.002],
[-122.643, 48.588],
[-122.76, 48.143],
[-123.004, 48.091],
[-124.051, 48.178],
[-124.653, 48.391],
[-124.722, 48.153],
[-124.672, 47.964],
[-124.412, 47.691],
[-124.319, 47.356],
[-124.236, 47.287],
[-124.081, 46.735],
[-124.081, 46.267],
[-123.548, 46.259],
[-123.28, 46.145],
[-123.116, 46.185],
[-122.814, 45.961],
[-122.775, 45.68],
[-122.263, 45.544],
[-121.811, 45.707],
[-121.533, 45.727],
[-121.085, 45.648],
[-120.591, 45.747],
[-120.211, 45.726],
[-119.966, 45.824],
[-119.126, 45.933],
[-118.987, 46],
[-116.916, 45.995],
[-117.036, 46.41],
[-117.042, 47.735],
[-117.032, 48.999],
],
],
],
},
properties: { name: "Washington" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-88.2, 34.996],
[-88.098, 34.892],
[-88.317, 33.184],
[-88.469, 31.933],
[-88.395, 30.369],
[-88.136, 30.321],
[-88.062, 30.645],
[-87.797, 30.324],
[-87.518, 30.28],
[-87.452, 30.344],
[-87.4, 30.657],
[-87.635, 30.866],
[-87.599, 30.997],
[-85.894, 30.993],
[-85.002, 31.001],
[-85.108, 31.186],
[-85.042, 31.545],
[-85.142, 31.839],
[-85.059, 32.136],
[-84.892, 32.263],
[-85.184, 32.861],
[-85.429, 34.125],
[-85.605, 34.985],
[-86.784, 34.992],
[-88.2, 34.996],
],
],
},
properties: { name: "Alabama" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.618, 36.499],
[-94.432, 35.37],
[-94.486, 33.638],
[-94.354, 33.556],
[-94.043, 33.551],
[-94.043, 33.019],
[-92.223, 33.009],
[-91.166, 33.004],
[-91.069, 33.233],
[-91.216, 33.529],
[-91.027, 33.764],
[-91.061, 33.878],
[-90.895, 34.224],
[-90.575, 34.415],
[-90.587, 34.616],
[-90.474, 34.789],
[-90.25, 34.907],
[-90.309, 34.996],
[-90.091, 35.118],
[-90.122, 35.305],
[-89.958, 35.542],
[-89.957, 35.695],
[-89.723, 35.809],
[-89.733, 36.001],
[-90.369, 35.996],
[-90.064, 36.303],
[-90.154, 36.495],
[-91.127, 36.498],
[-92.35, 36.498],
[-93.959, 36.499],
[-94.618, 36.499],
],
],
},
properties: { name: "Arkansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.045, 36.999],
[-109.046, 36.117],
[-109.046, 34.96],
[-109.046, 33.875],
[-109.047, 32.778],
[-109.05, 31.333],
[-108.209, 31.333],
[-108.208, 31.784],
[-106.528, 31.783],
[-106.618, 32],
[-104.644, 32],
[-103.064, 32.001],
[-103.065, 32.849],
[-103.044, 34.079],
[-103.043, 35.183],
[-103.042, 36.5],
[-103.002, 36.5],
[-103.002, 37],
[-104.732, 36.993],
[-106.006, 36.995],
[-108.001, 37],
[-109.045, 36.999],
],
],
},
properties: { name: "New Mexico" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 36.5],
[-103.042, 36.5],
[-103.043, 35.183],
[-103.044, 34.079],
[-103.065, 32.849],
[-103.064, 32.001],
[-104.644, 32],
[-106.618, 32],
[-106.528, 31.783],
[-106.418, 31.752],
[-106.176, 31.456],
[-105.954, 31.365],
[-105.773, 31.167],
[-105.315, 30.817],
[-105.001, 30.673],
[-104.86, 30.39],
[-104.703, 30.212],
[-104.672, 29.911],
[-104.54, 29.676],
[-104.144, 29.383],
[-103.789, 29.258],
[-103.281, 28.982],
[-102.871, 29.242],
[-102.809, 29.522],
[-102.677, 29.738],
[-102.393, 29.766],
[-102.301, 29.878],
[-101.966, 29.807],
[-101.401, 29.738],
[-101.255, 29.52],
[-101.06, 29.459],
[-100.675, 29.1],
[-100.5, 28.662],
[-100.397, 28.576],
[-100.268, 28.25],
[-99.932, 27.968],
[-99.845, 27.779],
[-99.557, 27.614],
[-99.43, 27.159],
[-99.447, 27.026],
[-99.269, 26.843],
[-99.111, 26.426],
[-98.807, 26.369],
[-98.654, 26.236],
[-98.443, 26.199],
[-98.197, 26.056],
[-97.795, 26.055],
[-97.423, 25.84],
[-97.146, 25.971],
[-97.197, 26.306],
[-97.323, 26.702],
[-97.379, 27.06],
[-97.296, 27.427],
[-97.141, 27.717],
[-96.886, 28.031],
[-96.194, 28.502],
[-95.382, 28.866],
[-95.026, 29.148],
[-94.723, 29.331],
[-94.595, 29.468],
[-94.057, 29.671],
[-93.838, 29.691],
[-93.929, 29.803],
[-93.704, 30.054],
[-93.729, 30.545],
[-93.531, 30.925],
[-93.535, 31.186],
[-93.835, 31.586],
[-93.803, 31.701],
[-94.042, 31.992],
[-94.043, 33.019],
[-94.043, 33.551],
[-94.354, 33.556],
[-94.486, 33.638],
[-94.842, 33.739],
[-95.226, 33.962],
[-95.283, 33.878],
[-95.557, 33.927],
[-96.152, 33.832],
[-96.363, 33.694],
[-96.593, 33.831],
[-96.851, 33.847],
[-96.952, 33.945],
[-97.206, 33.81],
[-97.444, 33.824],
[-97.672, 33.991],
[-97.866, 33.849],
[-98.099, 34.104],
[-98.364, 34.157],
[-98.737, 34.131],
[-99.19, 34.214],
[-99.275, 34.387],
[-99.696, 34.381],
[-100, 34.561],
[-100, 35.619],
[-100, 36.5],
[-101.624, 36.5],
[-103.002, 36.5],
],
],
},
properties: { name: "Texas" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-120.368, 34.076],
[-120.122, 33.896],
[-120.055, 34.038],
[-120.368, 34.076],
],
],
[
[
[-124.212, 41.998],
[-124.063, 41.44],
[-124.164, 41.139],
[-124.118, 40.989],
[-124.41, 40.438],
[-124.363, 40.261],
[-124.087, 40.078],
[-123.852, 39.832],
[-123.766, 39.553],
[-123.825, 39.361],
[-123.691, 39.021],
[-123.711, 38.913],
[-123.166, 38.475],
[-123.004, 38.297],
[-122.94, 38.032],
[-122.537, 37.83],
[-122.394, 38.143],
[-122.263, 38.051],
[-122.313, 37.777],
[-122.163, 37.668],
[-122.517, 37.521],
[-122.397, 37.187],
[-122.106, 36.956],
[-121.906, 36.969],
[-121.792, 36.815],
[-121.97, 36.583],
[-121.888, 36.303],
[-121.68, 36.166],
[-121.272, 35.667],
[-121.003, 35.461],
[-120.897, 35.248],
[-120.636, 35.124],
[-120.61, 34.858],
[-120.646, 34.581],
[-120.451, 34.447],
[-120.141, 34.473],
[-119.874, 34.409],
[-119.617, 34.421],
[-119.27, 34.253],
[-119.11, 34.095],
[-118.805, 34.001],
[-118.52, 34.028],
[-118.397, 33.736],
[-118.133, 33.753],
[-117.646, 33.441],
[-117.446, 33.269],
[-117.281, 33.012],
[-117.282, 32.84],
[-117.125, 32.534],
[-115.465, 32.667],
[-114.72, 32.719],
[-114.469, 32.845],
[-114.511, 33.023],
[-114.671, 33.038],
[-114.707, 33.377],
[-114.525, 33.552],
[-114.535, 33.928],
[-114.428, 34.093],
[-114.139, 34.26],
[-114.335, 34.45],
[-114.465, 34.691],
[-114.634, 34.873],
[-114.633, 35.002],
[-115.648, 35.809],
[-116.488, 36.459],
[-117.681, 37.353],
[-118.95, 38.269],
[-120.001, 39],
[-119.998, 39.957],
[-120, 41.184],
[-119.999, 41.995],
[-121.035, 41.993],
[-122.501, 42.008],
[-124.212, 41.998],
],
],
],
},
properties: { name: "California" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.133, 36.982],
[-89.165, 36.662],
[-89.539, 36.498],
[-88.05, 36.5],
[-88.071, 36.678],
[-87.853, 36.633],
[-86.508, 36.652],
[-85.874, 36.624],
[-84.785, 36.603],
[-83.675, 36.601],
[-83.136, 36.743],
[-82.895, 36.882],
[-82.726, 37.112],
[-82.355, 37.265],
[-81.968, 37.538],
[-82.296, 37.686],
[-82.626, 38.135],
[-82.594, 38.422],
[-82.851, 38.604],
[-82.889, 38.756],
[-83.287, 38.599],
[-83.533, 38.702],
[-83.679, 38.63],
[-83.852, 38.751],
[-84.213, 38.806],
[-84.327, 39.027],
[-84.462, 39.122],
[-84.82, 39.105],
[-84.786, 38.882],
[-85.187, 38.688],
[-85.449, 38.713],
[-85.416, 38.546],
[-85.816, 38.283],
[-85.922, 38.029],
[-86.206, 38.022],
[-86.321, 38.147],
[-86.722, 37.893],
[-86.811, 37.997],
[-87.18, 37.841],
[-87.419, 37.945],
[-87.626, 37.852],
[-87.873, 37.921],
[-88.028, 37.799],
[-88.16, 37.654],
[-88.062, 37.488],
[-88.466, 37.401],
[-88.476, 37.068],
[-88.932, 37.228],
[-89.168, 37.074],
[-89.133, 36.982],
],
],
},
properties: { name: "Kentucky" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-85.605, 34.985],
[-85.429, 34.125],
[-85.184, 32.861],
[-84.892, 32.263],
[-85.059, 32.136],
[-85.142, 31.839],
[-85.042, 31.545],
[-85.108, 31.186],
[-85.002, 31.001],
[-84.865, 30.712],
[-83.131, 30.624],
[-82.219, 30.564],
[-82.18, 30.369],
[-82.041, 30.37],
[-82.033, 30.751],
[-81.943, 30.827],
[-81.444, 30.71],
[-81.402, 31.125],
[-81.305, 31.206],
[-81.131, 31.723],
[-80.886, 32.035],
[-81.113, 32.113],
[-81.195, 32.465],
[-81.397, 32.606],
[-81.502, 33.015],
[-81.755, 33.152],
[-81.933, 33.344],
[-81.926, 33.463],
[-82.162, 33.611],
[-82.324, 33.82],
[-82.557, 33.945],
[-82.715, 34.148],
[-82.874, 34.472],
[-83.048, 34.493],
[-83.339, 34.682],
[-83.324, 34.79],
[-83.109, 35.001],
[-84.322, 34.988],
[-85.605, 34.985],
],
],
},
properties: { name: "Georgia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-92.015, 46.706],
[-92.292, 46.663],
[-92.294, 46.074],
[-92.721, 45.884],
[-92.87, 45.715],
[-92.647, 45.438],
[-92.762, 45.285],
[-92.751, 44.942],
[-92.805, 44.768],
[-92.549, 44.578],
[-91.964, 44.362],
[-91.893, 44.231],
[-91.441, 44.002],
[-91.244, 43.773],
[-91.218, 43.501],
[-91.058, 43.254],
[-91.175, 43.135],
[-91.138, 42.904],
[-90.942, 42.684],
[-90.701, 42.626],
[-90.643, 42.508],
[-88.707, 42.494],
[-87.8, 42.492],
[-87.767, 42.785],
[-87.896, 43.016],
[-87.889, 43.308],
[-87.706, 43.68],
[-87.736, 43.874],
[-87.447, 44.586],
[-87.063, 45.079],
[-87.265, 45.081],
[-87.581, 44.852],
[-87.775, 44.639],
[-87.983, 44.72],
[-87.813, 44.954],
[-87.59, 45.095],
[-87.863, 45.353],
[-87.781, 45.674],
[-88.135, 45.822],
[-88.115, 45.922],
[-88.527, 46.021],
[-88.812, 46.022],
[-89.092, 46.139],
[-90.12, 46.337],
[-90.215, 46.5],
[-90.418, 46.566],
[-90.755, 46.646],
[-90.881, 46.74],
[-90.745, 46.894],
[-90.924, 47.002],
[-91.168, 46.845],
[-91.82, 46.69],
[-92.015, 46.706],
],
],
},
properties: { name: "Wisconsin" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-123.548, 46.259],
[-123.959, 46.142],
[-123.939, 45.709],
[-123.975, 45.145],
[-124.074, 44.798],
[-124.065, 44.633],
[-124.15, 43.911],
[-124.234, 43.557],
[-124.552, 42.841],
[-124.413, 42.658],
[-124.411, 42.251],
[-124.212, 41.998],
[-122.501, 42.008],
[-121.035, 41.993],
[-119.999, 41.995],
[-118.776, 41.993],
[-117.026, 42],
[-117.024, 43.824],
[-116.896, 44.154],
[-117.243, 44.391],
[-117.062, 44.727],
[-116.834, 44.929],
[-116.675, 45.314],
[-116.464, 45.616],
[-116.593, 45.779],
[-116.788, 45.84],
[-116.916, 45.995],
[-118.987, 46],
[-119.126, 45.933],
[-119.966, 45.824],
[-120.211, 45.726],
[-120.591, 45.747],
[-121.085, 45.648],
[-121.533, 45.727],
[-121.811, 45.707],
[-122.263, 45.544],
[-122.775, 45.68],
[-122.814, 45.961],
[-123.116, 46.185],
[-123.28, 46.145],
[-123.548, 46.259],
],
],
},
properties: { name: "Oregon" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-95.766, 40.585],
[-95.654, 40.323],
[-95.473, 40.236],
[-95.308, 40],
[-94.86, 39.75],
[-95.114, 39.554],
[-94.8, 39.206],
[-94.607, 39.113],
[-94.613, 38.238],
[-94.618, 36.999],
[-94.618, 36.499],
[-93.959, 36.499],
[-92.35, 36.498],
[-91.127, 36.498],
[-90.154, 36.495],
[-90.064, 36.303],
[-90.369, 35.996],
[-89.733, 36.001],
[-89.523, 36.345],
[-89.539, 36.498],
[-89.165, 36.662],
[-89.133, 36.982],
[-89.359, 37.043],
[-89.495, 37.325],
[-89.522, 37.696],
[-90.219, 38.094],
[-90.373, 38.323],
[-90.185, 38.612],
[-90.113, 38.849],
[-90.468, 38.962],
[-90.657, 38.92],
[-90.73, 39.256],
[-91.038, 39.448],
[-91.368, 39.729],
[-91.512, 40.17],
[-91.419, 40.378],
[-91.729, 40.614],
[-93.136, 40.583],
[-94.534, 40.571],
[-95.766, 40.585],
],
],
},
properties: { name: "Missouri" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-75.67, 37.951],
[-75.941, 37.564],
[-76.023, 37.289],
[-75.817, 37.193],
[-75.658, 37.452],
[-75.552, 37.748],
[-75.242, 38.027],
[-75.67, 37.951],
],
],
[
[
[-81.968, 37.538],
[-82.355, 37.265],
[-82.726, 37.112],
[-82.895, 36.882],
[-83.136, 36.743],
[-83.675, 36.601],
[-81.678, 36.588],
[-80.295, 36.544],
[-78.51, 36.541],
[-76.917, 36.546],
[-75.867, 36.551],
[-75.996, 36.922],
[-76.268, 36.965],
[-76.394, 37.225],
[-76.25, 37.422],
[-76.329, 37.671],
[-76.237, 37.889],
[-76.614, 38.149],
[-76.962, 38.214],
[-77.048, 38.36],
[-77.265, 38.333],
[-77.323, 38.467],
[-77.13, 38.635],
[-77.039, 38.792],
[-77.12, 38.934],
[-77.463, 39.076],
[-77.46, 39.219],
[-77.72, 39.321],
[-77.828, 39.132],
[-78.347, 39.466],
[-78.414, 39.158],
[-78.773, 38.894],
[-78.999, 38.84],
[-79.298, 38.416],
[-79.649, 38.592],
[-79.788, 38.273],
[-80.292, 37.684],
[-80.292, 37.537],
[-80.545, 37.475],
[-80.919, 37.306],
[-81.225, 37.235],
[-81.362, 37.338],
[-81.561, 37.207],
[-81.85, 37.285],
[-81.968, 37.538],
],
],
],
},
properties: { name: "Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.733, 36.001],
[-89.723, 35.809],
[-89.957, 35.695],
[-89.958, 35.542],
[-90.122, 35.305],
[-90.091, 35.118],
[-90.309, 34.996],
[-89.435, 34.994],
[-88.2, 34.996],
[-86.784, 34.992],
[-85.605, 34.985],
[-84.322, 34.988],
[-84.283, 35.227],
[-84.098, 35.247],
[-84.022, 35.407],
[-83.772, 35.562],
[-83.498, 35.563],
[-83.162, 35.763],
[-82.978, 35.783],
[-82.779, 35.993],
[-82.211, 36.159],
[-82.029, 36.124],
[-81.908, 36.302],
[-81.734, 36.413],
[-81.678, 36.588],
[-83.675, 36.601],
[-84.785, 36.603],
[-85.874, 36.624],
[-86.508, 36.652],
[-87.853, 36.633],
[-88.071, 36.678],
[-88.05, 36.5],
[-89.539, 36.498],
[-89.523, 36.345],
[-89.733, 36.001],
],
],
},
properties: { name: "Tennessee" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.043, 33.019],
[-94.042, 31.992],
[-93.803, 31.701],
[-93.835, 31.586],
[-93.535, 31.186],
[-93.531, 30.925],
[-93.729, 30.545],
[-93.704, 30.054],
[-93.929, 29.803],
[-93.838, 29.691],
[-93.538, 29.763],
[-93.177, 29.77],
[-92.684, 29.605],
[-92.323, 29.531],
[-92.065, 29.586],
[-91.822, 29.474],
[-91.711, 29.569],
[-91.394, 29.497],
[-91.279, 29.248],
[-90.942, 29.162],
[-90.868, 29.056],
[-90.224, 29.085],
[-89.843, 29.319],
[-89.483, 29.215],
[-89.361, 29.072],
[-89.149, 29.03],
[-89.014, 29.167],
[-89.2, 29.344],
[-89.482, 29.406],
[-89.602, 29.61],
[-89.404, 29.682],
[-89.236, 29.877],
[-89.186, 30.064],
[-89.445, 30.061],
[-89.702, 29.874],
[-89.845, 30.018],
[-89.525, 30.181],
[-89.608, 30.217],
[-89.836, 30.727],
[-89.728, 31.002],
[-90.759, 31],
[-91.56, 31.05],
[-91.644, 31.234],
[-91.536, 31.338],
[-91.36, 31.799],
[-91.035, 32.101],
[-90.921, 32.342],
[-91.053, 32.438],
[-91.114, 32.74],
[-91.072, 32.938],
[-91.166, 33.004],
[-92.223, 33.009],
[-94.043, 33.019],
],
],
},
properties: { name: "Louisiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.762, 42.27],
[-79.761, 41.999],
[-77.832, 41.999],
[-76.462, 41.999],
[-75.341, 41.993],
[-75.113, 41.841],
[-74.982, 41.496],
[-74.695, 41.357],
[-73.894, 40.997],
[-74.087, 40.652],
[-74.261, 40.502],
[-73.013, 40.68],
[-71.937, 41.006],
[-72.283, 41.068],
[-72.585, 40.998],
[-73.11, 40.972],
[-73.229, 40.905],
[-73.657, 40.985],
[-73.728, 41.101],
[-73.551, 41.295],
[-73.487, 42.05],
[-73.508, 42.086],
[-73.265, 42.746],
[-73.242, 43.535],
[-73.415, 43.658],
[-73.351, 43.77],
[-73.437, 44.043],
[-73.294, 44.441],
[-73.39, 44.62],
[-73.343, 45.011],
[-74.234, 44.992],
[-74.835, 45.015],
[-75.256, 44.858],
[-75.766, 44.516],
[-75.95, 44.349],
[-76.287, 44.204],
[-76.412, 43.926],
[-76.229, 43.804],
[-76.236, 43.529],
[-76.418, 43.521],
[-76.685, 43.353],
[-76.952, 43.271],
[-77.341, 43.281],
[-77.551, 43.236],
[-77.76, 43.341],
[-78.547, 43.37],
[-79.07, 43.262],
[-79.074, 43.078],
[-78.851, 42.792],
[-79.139, 42.564],
[-79.762, 42.27],
],
],
},
properties: { name: "New York" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-83.454, 41.733],
[-83.442, 41.809],
[-83.134, 42.088],
[-83.097, 42.29],
[-82.924, 42.352],
[-82.859, 42.542],
[-82.679, 42.522],
[-82.51, 42.637],
[-82.416, 43.006],
[-82.523, 43.225],
[-82.634, 43.831],
[-82.929, 44.069],
[-83.407, 43.92],
[-83.683, 43.591],
[-83.948, 43.735],
[-83.869, 43.961],
[-83.584, 44.057],
[-83.525, 44.262],
[-83.337, 44.333],
[-83.266, 45.027],
[-83.385, 45.274],
[-84.196, 45.621],
[-84.462, 45.652],
[-84.719, 45.778],
[-84.867, 45.752],
[-85.12, 45.569],
[-85.041, 45.437],
[-85.372, 45.271],
[-85.381, 45.046],
[-86.059, 44.911],
[-86.089, 44.741],
[-86.248, 44.699],
[-86.269, 44.345],
[-86.515, 44.058],
[-86.431, 43.841],
[-86.541, 43.645],
[-86.255, 43.083],
[-86.208, 42.763],
[-86.356, 42.254],
[-86.598, 41.918],
[-86.825, 41.76],
[-84.806, 41.76],
[-84.806, 41.696],
[-83.454, 41.733],
],
],
[
[
[-89.221, 47.908],
[-89.158, 47.824],
[-88.579, 48.041],
[-88.632, 48.148],
[-89.221, 47.908],
],
],
[
[
[-90.418, 46.566],
[-90.215, 46.5],
[-90.12, 46.337],
[-89.092, 46.139],
[-88.812, 46.022],
[-88.527, 46.021],
[-88.115, 45.922],
[-88.135, 45.822],
[-87.781, 45.674],
[-87.863, 45.353],
[-87.59, 45.095],
[-87.172, 45.662],
[-86.964, 45.673],
[-86.773, 45.811],
[-86.541, 45.708],
[-86.278, 45.942],
[-85.914, 45.919],
[-85.541, 46.08],
[-85.152, 46.051],
[-84.793, 45.859],
[-84.633, 45.951],
[-84.08, 45.971],
[-83.526, 45.919],
[-83.599, 46.09],
[-83.882, 46.042],
[-84.115, 46.174],
[-84.118, 46.518],
[-84.969, 46.476],
[-85.028, 46.675],
[-85.257, 46.753],
[-85.482, 46.68],
[-86.138, 46.673],
[-86.558, 46.487],
[-86.811, 46.45],
[-86.977, 46.527],
[-87.367, 46.507],
[-87.595, 46.783],
[-88.144, 46.967],
[-88.455, 46.923],
[-88.194, 47.209],
[-87.943, 47.336],
[-87.929, 47.479],
[-88.218, 47.449],
[-89.415, 46.844],
[-89.832, 46.804],
[-90.045, 46.668],
[-90.418, 46.566],
],
],
],
},
properties: { name: "Michigan" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.916, 45.995],
[-116.788, 45.84],
[-116.593, 45.779],
[-116.464, 45.616],
[-116.675, 45.314],
[-116.834, 44.929],
[-117.062, 44.727],
[-117.243, 44.391],
[-116.896, 44.154],
[-117.024, 43.824],
[-117.026, 42],
[-115.87, 41.997],
[-114.042, 41.994],
[-112.11, 41.998],
[-111.047, 42.002],
[-111.045, 43.316],
[-111.049, 44.474],
[-111.324, 44.724],
[-111.563, 44.555],
[-112.473, 44.48],
[-113.007, 44.472],
[-113.131, 44.765],
[-113.422, 44.843],
[-113.452, 45.059],
[-113.736, 45.325],
[-113.807, 45.602],
[-113.972, 45.701],
[-114.279, 45.481],
[-114.506, 45.559],
[-114.402, 45.961],
[-114.48, 46.03],
[-114.422, 46.387],
[-114.321, 46.647],
[-114.547, 46.644],
[-114.943, 46.868],
[-115.327, 47.256],
[-115.71, 47.418],
[-115.724, 47.697],
[-116.049, 48],
[-116.049, 49.001],
[-117.032, 48.999],
[-117.042, 47.735],
[-117.036, 46.41],
[-116.916, 45.995],
],
],
},
properties: { name: "Idaho" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-81.812, 24.569],
[-81.685, 24.559],
[-81.243, 24.674],
[-81.444, 24.813],
[-81.751, 24.654],
[-81.812, 24.569],
],
],
[
[
[-85.002, 31.001],
[-85.894, 30.993],
[-87.599, 30.997],
[-87.635, 30.866],
[-87.4, 30.657],
[-87.452, 30.344],
[-87.518, 30.28],
[-86.633, 30.396],
[-86.223, 30.344],
[-86, 30.271],
[-85.385, 29.921],
[-85.353, 29.66],
[-85.045, 29.587],
[-84.565, 29.81],
[-84.29, 30.057],
[-84.063, 30.101],
[-83.679, 29.919],
[-83.402, 29.523],
[-83.17, 29.29],
[-82.824, 29.099],
[-82.657, 28.545],
[-82.764, 28.244],
[-82.86, 28.174],
[-82.847, 27.854],
[-82.705, 27.625],
[-82.692, 27.437],
[-82.54, 27.254],
[-82.265, 26.757],
[-82.181, 26.476],
[-81.924, 26.437],
[-81.845, 26.328],
[-81.727, 25.907],
[-81.384, 25.777],
[-81.147, 25.408],
[-81.171, 25.246],
[-81.08, 25.119],
[-80.812, 25.186],
[-80.495, 25.2],
[-80.358, 25.153],
[-80.301, 25.613],
[-80.11, 25.818],
[-80.11, 26.087],
[-80.039, 26.569],
[-80.046, 26.859],
[-80.384, 27.74],
[-80.548, 28.049],
[-80.607, 28.336],
[-80.525, 28.459],
[-80.584, 28.598],
[-80.966, 29.148],
[-81.257, 29.785],
[-81.396, 30.34],
[-81.444, 30.71],
[-81.943, 30.827],
[-82.033, 30.751],
[-82.041, 30.37],
[-82.18, 30.369],
[-82.219, 30.564],
[-83.131, 30.624],
[-84.865, 30.712],
[-85.002, 31.001],
],
],
],
},
properties: { name: "Florida" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.419, 40.378],
[-91.512, 40.17],
[-91.368, 39.729],
[-91.038, 39.448],
[-90.73, 39.256],
[-90.657, 38.92],
[-90.468, 38.962],
[-90.113, 38.849],
[-90.185, 38.612],
[-90.373, 38.323],
[-90.219, 38.094],
[-89.522, 37.696],
[-89.495, 37.325],
[-89.359, 37.043],
[-89.133, 36.982],
[-89.168, 37.074],
[-88.932, 37.228],
[-88.476, 37.068],
[-88.466, 37.401],
[-88.062, 37.488],
[-88.16, 37.654],
[-88.028, 37.799],
[-88.031, 38.031],
[-87.499, 38.758],
[-87.625, 39.102],
[-87.532, 39.348],
[-87.526, 40.535],
[-87.524, 41.708],
[-87.682, 42.076],
[-87.835, 42.302],
[-87.8, 42.492],
[-88.707, 42.494],
[-90.643, 42.508],
[-90.431, 42.278],
[-90.161, 42.106],
[-90.181, 41.812],
[-90.34, 41.599],
[-90.701, 41.455],
[-91.028, 41.424],
[-91.114, 41.25],
[-90.957, 41.111],
[-90.952, 40.954],
[-91.121, 40.673],
[-91.34, 40.613],
[-91.419, 40.378],
],
],
},
properties: { name: "Illinois" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.049, 49.001],
[-116.049, 48],
[-115.724, 47.697],
[-115.71, 47.418],
[-115.327, 47.256],
[-114.943, 46.868],
[-114.547, 46.644],
[-114.321, 46.647],
[-114.422, 46.387],
[-114.48, 46.03],
[-114.402, 45.961],
[-114.506, 45.559],
[-114.279, 45.481],
[-113.972, 45.701],
[-113.807, 45.602],
[-113.736, 45.325],
[-113.452, 45.059],
[-113.422, 44.843],
[-113.131, 44.765],
[-113.007, 44.472],
[-112.473, 44.48],
[-111.563, 44.555],
[-111.324, 44.724],
[-111.049, 44.474],
[-111.044, 45.001],
[-108.621, 45],
[-106.264, 44.994],
[-104.058, 44.997],
[-104.045, 45.945],
[-104.042, 47.803],
[-104.049, 49],
[-106.051, 48.999],
[-107.441, 48.999],
[-109.001, 48.999],
[-111.501, 48.997],
[-113.693, 48.998],
[-116.049, 49.001],
],
],
},
properties: { name: "Montana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-97.229, 49.001],
[-97.1, 48.668],
[-97.147, 48.169],
[-96.854, 47.572],
[-96.791, 46.637],
[-96.601, 46.32],
[-96.564, 45.935],
[-96.587, 45.816],
[-96.826, 45.654],
[-96.711, 45.437],
[-96.458, 45.308],
[-96.453, 43.5],
[-94.855, 43.501],
[-93.971, 43.5],
[-92.449, 43.5],
[-91.218, 43.501],
[-91.244, 43.773],
[-91.441, 44.002],
[-91.893, 44.231],
[-91.964, 44.362],
[-92.549, 44.578],
[-92.805, 44.768],
[-92.751, 44.942],
[-92.762, 45.285],
[-92.647, 45.438],
[-92.87, 45.715],
[-92.721, 45.884],
[-92.294, 46.074],
[-92.292, 46.663],
[-92.015, 46.706],
[-92.062, 46.804],
[-91.457, 47.139],
[-90.868, 47.557],
[-90.537, 47.703],
[-89.974, 47.831],
[-89.868, 47.99],
[-90.136, 48.112],
[-90.704, 48.096],
[-90.844, 48.244],
[-91.25, 48.084],
[-91.543, 48.053],
[-91.715, 48.199],
[-91.981, 48.248],
[-92.955, 48.631],
[-93.207, 48.642],
[-93.468, 48.546],
[-93.815, 48.527],
[-93.844, 48.629],
[-94.447, 48.693],
[-94.694, 48.789],
[-94.816, 49.321],
[-95.153, 49.384],
[-95.154, 48.999],
[-97.229, 49.001],
],
],
},
properties: { name: "Minnesota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-87.524, 41.708],
[-87.526, 40.535],
[-87.532, 39.348],
[-87.625, 39.102],
[-87.499, 38.758],
[-88.031, 38.031],
[-88.028, 37.799],
[-87.873, 37.921],
[-87.626, 37.852],
[-87.419, 37.945],
[-87.18, 37.841],
[-86.811, 37.997],
[-86.722, 37.893],
[-86.321, 38.147],
[-86.206, 38.022],
[-85.922, 38.029],
[-85.816, 38.283],
[-85.416, 38.546],
[-85.449, 38.713],
[-85.187, 38.688],
[-84.786, 38.882],
[-84.82, 39.105],
[-84.804, 40.353],
[-84.806, 41.696],
[-84.806, 41.76],
[-86.825, 41.76],
[-87.262, 41.62],
[-87.524, 41.708],
],
],
},
properties: { name: "Indiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.265, 42.746],
[-73.508, 42.086],
[-73.487, 42.05],
[-71.799, 42.008],
[-71.381, 42.019],
[-71.329, 41.783],
[-71.133, 41.66],
[-71.121, 41.497],
[-70.91, 41.577],
[-70.734, 41.486],
[-70.322, 41.631],
[-70.662, 41.961],
[-70.731, 42.211],
[-70.975, 42.356],
[-70.655, 42.582],
[-70.817, 42.872],
[-71.15, 42.815],
[-71.294, 42.697],
[-72.459, 42.727],
[-73.265, 42.746],
],
],
},
properties: { name: "Massachusetts" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-102.052, 40.003],
[-102.046, 38.698],
[-102.042, 36.993],
[-100.856, 36.999],
[-99.129, 36.999],
[-97.462, 36.999],
[-95.787, 36.999],
[-94.618, 36.999],
[-94.613, 38.238],
[-94.607, 39.113],
[-94.8, 39.206],
[-95.114, 39.554],
[-94.86, 39.75],
[-95.308, 40],
[-96.47, 40.001],
[-98.076, 40.002],
[-99.813, 40.001],
[-101.06, 40.002],
[-102.052, 40.003],
],
],
},
properties: { name: "Kansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-119.999, 41.995],
[-120, 41.184],
[-119.998, 39.957],
[-120.001, 39],
[-118.95, 38.269],
[-117.681, 37.353],
[-116.488, 36.459],
[-115.648, 35.809],
[-114.633, 35.002],
[-114.573, 35.139],
[-114.664, 35.449],
[-114.736, 36.104],
[-114.372, 36.143],
[-114.152, 36.025],
[-114.047, 36.194],
[-114.051, 37],
[-114.05, 37.881],
[-114.049, 39.006],
[-114.046, 40.398],
[-114.042, 41.994],
[-115.87, 41.997],
[-117.026, 42],
[-118.776, 41.993],
[-119.999, 41.995],
],
],
},
properties: { name: "Nevada" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.343, 45.011],
[-73.39, 44.62],
[-73.294, 44.441],
[-73.437, 44.043],
[-73.351, 43.77],
[-73.415, 43.658],
[-73.242, 43.535],
[-73.265, 42.746],
[-72.459, 42.727],
[-72.54, 42.805],
[-72.445, 43.004],
[-72.379, 43.574],
[-72.183, 43.808],
[-72.037, 44.103],
[-72.046, 44.292],
[-71.819, 44.353],
[-71.58, 44.502],
[-71.627, 44.747],
[-71.501, 45.013],
[-72.349, 45.006],
[-73.343, 45.011],
],
],
},
properties: { name: "Vermont" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.487, 42.05],
[-73.551, 41.295],
[-73.728, 41.101],
[-73.657, 40.985],
[-73.422, 41.048],
[-72.936, 41.258],
[-72.547, 41.25],
[-71.861, 41.32],
[-71.798, 41.417],
[-71.799, 42.008],
[-73.487, 42.05],
],
],
},
properties: { name: "Connecticut" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.559, 39.63],
[-75.528, 39.498],
[-75.244, 39.286],
[-74.886, 39.144],
[-74.647, 39.212],
[-74.413, 39.361],
[-74.101, 39.756],
[-73.971, 40.348],
[-74.261, 40.502],
[-74.087, 40.652],
[-73.894, 40.997],
[-74.695, 41.357],
[-75.133, 40.98],
[-75.187, 40.569],
[-74.722, 40.154],
[-75.415, 39.802],
],
],
},
properties: { name: "New Jersey" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-81.678, 36.588],
[-81.734, 36.413],
[-81.908, 36.302],
[-82.029, 36.124],
[-82.211, 36.159],
[-82.779, 35.993],
[-82.978, 35.783],
[-83.162, 35.763],
[-83.498, 35.563],
[-83.772, 35.562],
[-84.022, 35.407],
[-84.098, 35.247],
[-84.283, 35.227],
[-84.322, 34.988],
[-83.109, 35.001],
[-82.411, 35.202],
[-81.043, 35.149],
[-80.782, 34.936],
[-80.797, 34.824],
[-79.675, 34.805],
[-78.541, 33.851],
[-78.137, 33.912],
[-77.96, 33.853],
[-77.829, 34.163],
[-77.635, 34.36],
[-77.137, 34.633],
[-76.727, 34.697],
[-76.536, 34.589],
[-76.137, 34.988],
[-75.913, 35.12],
[-75.534, 35.226],
[-75.459, 35.597],
[-75.718, 36.114],
[-75.867, 36.551],
[-76.917, 36.546],
[-78.51, 36.541],
[-80.295, 36.544],
[-81.678, 36.588],
],
],
},
properties: { name: "North Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.042, 41.994],
[-114.046, 40.398],
[-114.049, 39.006],
[-114.05, 37.881],
[-114.051, 37],
[-112.966, 37],
[-111.278, 37],
[-110.001, 36.998],
[-109.045, 36.999],
[-109.042, 38.165],
[-109.06, 38.275],
[-109.051, 39.875],
[-109.05, 41.001],
[-111.047, 40.998],
[-111.047, 42.002],
[-112.11, 41.998],
[-114.042, 41.994],
],
],
},
properties: { name: "Utah" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.049, 49],
[-104.042, 47.803],
[-104.045, 45.945],
[-102.088, 45.945],
[-100.762, 45.944],
[-99.49, 45.94],
[-97.777, 45.935],
[-96.564, 45.935],
[-96.601, 46.32],
[-96.791, 46.637],
[-96.854, 47.572],
[-97.147, 48.169],
[-97.1, 48.668],
[-97.229, 49.001],
[-98.869, 49],
[-99.914, 48.999],
[-102.217, 48.999],
[-104.049, 49],
],
],
},
properties: { name: "North Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-83.109, 35.001],
[-83.324, 34.79],
[-83.339, 34.682],
[-83.048, 34.493],
[-82.874, 34.472],
[-82.715, 34.148],
[-82.557, 33.945],
[-82.324, 33.82],
[-82.162, 33.611],
[-81.926, 33.463],
[-81.933, 33.344],
[-81.755, 33.152],
[-81.502, 33.015],
[-81.397, 32.606],
[-81.195, 32.465],
[-81.113, 32.113],
[-80.886, 32.035],
[-80.338, 32.479],
[-80.001, 32.606],
[-79.57, 32.927],
[-79.36, 33.007],
[-79.215, 33.156],
[-79.135, 33.404],
[-78.773, 33.769],
[-78.541, 33.851],
[-79.675, 34.805],
[-80.797, 34.824],
[-80.782, 34.936],
[-81.043, 35.149],
[-82.411, 35.202],
[-83.109, 35.001],
],
],
},
properties: { name: "South Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.166, 33.004],
[-91.072, 32.938],
[-91.114, 32.74],
[-91.053, 32.438],
[-90.921, 32.342],
[-91.035, 32.101],
[-91.36, 31.799],
[-91.536, 31.338],
[-91.644, 31.234],
[-91.56, 31.05],
[-90.759, 31],
[-89.728, 31.002],
[-89.836, 30.727],
[-89.608, 30.217],
[-89.525, 30.181],
[-89.345, 30.293],
[-88.894, 30.393],
[-88.472, 30.32],
[-88.395, 30.369],
[-88.469, 31.933],
[-88.317, 33.184],
[-88.098, 34.892],
[-88.2, 34.996],
[-89.435, 34.994],
[-90.309, 34.996],
[-90.25, 34.907],
[-90.474, 34.789],
[-90.587, 34.616],
[-90.575, 34.415],
[-90.895, 34.224],
[-91.061, 33.878],
[-91.027, 33.764],
[-91.216, 33.529],
[-91.069, 33.233],
[-91.166, 33.004],
],
],
},
properties: { name: "Mississippi" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.05, 41.001],
[-109.051, 39.875],
[-109.06, 38.275],
[-109.042, 38.165],
[-109.045, 36.999],
[-108.001, 37],
[-106.006, 36.995],
[-104.732, 36.993],
[-103.002, 37],
[-102.042, 36.993],
[-102.046, 38.698],
[-102.052, 40.003],
[-102.052, 41.002],
[-104.053, 41.001],
[-104.855, 40.998],
[-106.191, 40.998],
[-107.367, 41.003],
[-109.05, 41.001],
],
],
},
properties: { name: "Colorado" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-104.055, 44.25],
[-104.053, 43.001],
[-102.082, 42.999],
[-100.198, 42.998],
[-98.499, 42.999],
[-98.435, 42.929],
[-97.95, 42.77],
[-97.858, 42.865],
[-97.238, 42.853],
[-97.131, 42.772],
[-96.698, 42.659],
[-96.611, 42.506],
[-96.446, 42.491],
[-96.622, 42.779],
[-96.439, 43.114],
[-96.522, 43.221],
[-96.453, 43.5],
[-96.458, 45.308],
[-96.711, 45.437],
[-96.826, 45.654],
[-96.587, 45.816],
[-96.564, 45.935],
[-97.777, 45.935],
[-99.49, 45.94],
[-100.762, 45.944],
[-102.088, 45.945],
[-104.045, 45.945],
[-104.058, 44.997],
],
],
},
properties: { name: "South Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 37],
[-103.002, 36.5],
[-101.624, 36.5],
[-100, 36.5],
[-100, 35.619],
[-100, 34.561],
[-99.696, 34.381],
[-99.275, 34.387],
[-99.19, 34.214],
[-98.737, 34.131],
[-98.364, 34.157],
[-98.099, 34.104],
[-97.866, 33.849],
[-97.672, 33.991],
[-97.444, 33.824],
[-97.206, 33.81],
[-96.952, 33.945],
[-96.851, 33.847],
[-96.593, 33.831],
[-96.363, 33.694],
[-96.152, 33.832],
[-95.557, 33.927],
[-95.283, 33.878],
[-95.226, 33.962],
[-94.842, 33.739],
[-94.486, 33.638],
[-94.432, 35.37],
[-94.618, 36.499],
[-94.618, 36.999],
[-95.787, 36.999],
[-97.462, 36.999],
[-99.129, 36.999],
[-100.856, 36.999],
[-102.042, 36.993],
[-103.002, 37],
],
],
},
properties: { name: "Oklahoma" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-106.264, 44.994],
[-108.621, 45],
[-111.044, 45.001],
[-111.049, 44.474],
[-111.045, 43.316],
[-111.047, 42.002],
[-111.047, 40.998],
[-109.05, 41.001],
[-107.367, 41.003],
[-106.191, 40.998],
[-104.855, 40.998],
[-104.053, 41.001],
[-104.053, 42.25],
[-104.053, 43.001],
[-104.055, 44.25],
[-104.058, 44.997],
],
],
},
properties: { name: "Wyoming" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-82.594, 38.422],
[-82.626, 38.135],
[-82.296, 37.686],
[-81.968, 37.538],
[-81.85, 37.285],
[-81.561, 37.207],
[-81.362, 37.338],
[-81.225, 37.235],
[-80.919, 37.306],
[-80.545, 37.475],
[-80.292, 37.537],
[-80.292, 37.684],
[-79.788, 38.273],
[-79.649, 38.592],
[-79.298, 38.416],
[-78.999, 38.84],
[-78.773, 38.894],
[-78.414, 39.158],
[-78.347, 39.466],
[-77.828, 39.132],
[-77.72, 39.321],
[-77.83, 39.587],
[-78.082, 39.671],
[-78.383, 39.622],
[-78.461, 39.526],
[-78.707, 39.556],
[-79.091, 39.472],
[-79.487, 39.206],
[-79.477, 39.721],
[-80.519, 39.721],
[-80.519, 40.639],
[-80.668, 40.582],
[-80.607, 40.304],
[-80.803, 39.919],
[-80.83, 39.712],
[-81.129, 39.449],
[-81.348, 39.346],
[-81.456, 39.409],
[-81.678, 39.274],
[-81.898, 38.93],
[-82.007, 39.03],
[-82.209, 38.803],
[-82.175, 38.608],
[-82.324, 38.449],
[-82.594, 38.422],
],
],
},
properties: { name: "West Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.084, 45.305],
[-71.037, 44.736],
[-70.973, 43.57],
[-70.984, 43.376],
[-70.704, 43.06],
[-70.554, 43.322],
[-70.416, 43.361],
[-70.168, 43.675],
[-69.916, 43.775],
[-69.321, 43.857],
[-69.077, 43.974],
[-68.439, 44.116],
[-68.126, 44.387],
[-67.855, 44.419],
[-67.449, 44.6],
[-67.293, 44.599],
[-66.95, 44.817],
[-67.112, 45.112],
[-67.48, 45.268],
[-67.417, 45.502],
[-67.803, 45.678],
[-67.78, 45.938],
[-67.79, 47.066],
[-68.204, 47.34],
[-68.362, 47.356],
[-68.901, 47.179],
[-69.04, 47.245],
[-69.039, 47.422],
[-69.22, 47.457],
[-69.997, 46.695],
[-70.054, 46.429],
[-70.291, 46.186],
[-70.259, 45.891],
[-70.781, 45.431],
[-71.084, 45.305],
],
],
},
properties: { name: "Maine" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.501, 45.013],
[-71.627, 44.747],
[-71.58, 44.502],
[-71.819, 44.353],
[-72.046, 44.292],
[-72.037, 44.103],
[-72.183, 43.808],
[-72.379, 43.574],
[-72.445, 43.004],
[-72.54, 42.805],
[-72.459, 42.727],
[-71.294, 42.697],
[-71.15, 42.815],
[-70.817, 42.872],
[-70.704, 43.06],
[-70.984, 43.376],
[-70.973, 43.57],
[-71.037, 44.736],
[-71.084, 45.305],
[-71.284, 45.302],
[-71.501, 45.013],
],
],
},
properties: { name: "New Hampshire" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.72, 32.719],
[-114.814, 32.494],
[-113.751, 32.169],
[-112.365, 31.741],
[-111.075, 31.332],
[-109.05, 31.333],
[-109.047, 32.778],
[-109.046, 33.875],
[-109.046, 34.96],
[-109.046, 36.117],
[-109.045, 36.999],
[-110.001, 36.998],
[-111.278, 37],
[-112.966, 37],
[-114.051, 37],
[-114.047, 36.194],
[-114.152, 36.025],
[-114.372, 36.143],
[-114.736, 36.104],
[-114.664, 35.449],
[-114.573, 35.139],
[-114.633, 35.002],
[-114.634, 34.873],
[-114.465, 34.691],
[-114.335, 34.45],
[-114.139, 34.26],
[-114.428, 34.093],
[-114.535, 33.928],
[-114.525, 33.552],
[-114.707, 33.377],
[-114.671, 33.038],
[-114.511, 33.023],
[-114.469, 32.845],
[-114.72, 32.719],
],
],
},
properties: { name: "Arizona" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.861, 41.32],
[-71.483, 41.372],
[-71.429, 41.454],
[-71.121, 41.497],
[-71.133, 41.66],
[-71.329, 41.783],
[-71.381, 42.019],
[-71.799, 42.008],
[-71.798, 41.417],
[-71.861, 41.32],
],
],
},
properties: { name: "Rhode Island" },
},
],
};
To create a Map Shape Series, use the map-shape series type and provide data and topology. These can be provided in either the chart or series objects.
topology: topology,
series: [
{
type: 'map-shape',
data: pacific,
idKey: 'name',
title: 'Pacific',
},
// ...
],
legend: {
enabled: true,
}In this example:
- The
topologyis provided once on the chart level, and thedatais provided in each series. idKeydefines the property key in the data that will be matched against the property value in the topology. See Connecting Data to Topology for more details.titleprovides a name for the series, and is used in the Legend and Tooltips.
Colour Scale Copy Link
import {
AgChartOptions,
AgCharts,
AnimationModule,
ContextMenuModule,
CrosshairModule,
GradientLegendModule,
MapShapeSeriesModule,
ModuleRegistry,
} from "ag-charts-enterprise";
import { DataType, data } from "./data";
import { topology } from "./topology";
const numberFormatter = new Intl.NumberFormat("en-US", {
style: "currency",
currency: "USD",
useGrouping: true,
});
ModuleRegistry.registerModules([
AnimationModule,
CrosshairModule,
GradientLegendModule,
MapShapeSeriesModule,
ContextMenuModule,
]);
const options: AgChartOptions<DataType> = {
title: {
text: "GDP by State",
},
data,
topology,
series: [
{
type: "map-shape",
idKey: "name",
colorKey: "gdp",
tooltip: {
renderer: ({ datum }) => ({
data: [{ label: "GDP", value: numberFormatter.format(datum.gdp) }],
}),
},
},
],
gradientLegend: {
enabled: true,
scale: {
label: {
fontSize: 9,
formatter: ({ value }) => `$${Math.floor(+value / 1e6)}T`,
},
},
},
};
options.container = document.getElementById("myChart");
const chart = AgCharts.create(options);
export interface DataType {
name: string;
code: string;
gdp: number;
}
export const data: DataType[] = [
{ name: "Alabama", code: "AL", gdp: 302289 },
{ name: "Arizona", code: "AZ", gdp: 512504 },
{ name: "Arkansas", code: "AR", gdp: 176878 },
{ name: "California", code: "CA", gdp: 3898158 },
{ name: "Colorado", code: "CO", gdp: 525868 },
{ name: "Connecticut", code: "CT", gdp: 343186 },
{ name: "Delaware", code: "DE", gdp: 94116 },
{ name: "Florida", code: "FL", gdp: 1595347 },
{ name: "Georgia", code: "GA", gdp: 811294 },
{ name: "Idaho", code: "ID", gdp: 119810 },
{ name: "Illinois", code: "IL", gdp: 1092246 },
{ name: "Indiana", code: "IN", gdp: 501267 },
{ name: "Iowa", code: "IA", gdp: 250819 },
{ name: "Kansas", code: "KS", gdp: 230388 },
{ name: "Kentucky", code: "KY", gdp: 280449 },
{ name: "Louisiana", code: "LA", gdp: 313334 },
{ name: "Maine", code: "ME", gdp: 91818 },
{ name: "Maryland", code: "MD", gdp: 516455 },
{ name: "Massachusetts", code: "MA", gdp: 741343 },
{ name: "Michigan", code: "MI", gdp: 664452 },
{ name: "Minnesota", code: "MN", gdp: 475590 },
{ name: "Mississippi", code: "MS", gdp: 146725 },
{ name: "Missouri", code: "MO", gdp: 425203 },
{ name: "Montana", code: "MT", gdp: 71088 },
{ name: "Nebraska", code: "NE", gdp: 181127 },
{ name: "Nevada", code: "NV", gdp: 241432 },
{ name: "New Hampshire", code: "NH", gdp: 112065 },
{ name: "New Jersey", code: "NJ", gdp: 806890 },
{ name: "New Mexico", code: "NM", gdp: 131535 },
{ name: "New York", code: "NY", gdp: 2168133 },
{ name: "North Carolina", code: "NC", gdp: 773365 },
{ name: "North Dakota", code: "ND", gdp: 74538 },
{ name: "Ohio", code: "OH", gdp: 880871 },
{ name: "Oklahoma", code: "OK", gdp: 256974 },
{ name: "Oregon", code: "OR", gdp: 319525 },
{ name: "Pennsylvania", code: "PA", gdp: 974558 },
{ name: "Rhode Island", code: "RI", gdp: 77948 },
{ name: "South Carolina", code: "SC", gdp: 325373 },
{ name: "South Dakota", code: "SD", gdp: 73005 },
{ name: "Tennessee", code: "TN", gdp: 527938 },
{ name: "Texas", code: "TX", gdp: 2596144 },
{ name: "Utah", code: "UT", gdp: 275048 },
{ name: "Vermont", code: "VT", gdp: 43384 },
{ name: "Virginia", code: "VA", gdp: 712900 },
{ name: "Washington", code: "WA", gdp: 808344 },
{ name: "West Virginia", code: "WV", gdp: 100240 },
{ name: "Wisconsin", code: "WI", gdp: 417135 },
{ name: "Wyoming", code: "WY", gdp: 50743 },
];
// https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html
export const topology = {
type: "FeatureCollection",
features: [
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.477, 39.721],
[-79.487, 39.206],
[-79.091, 39.472],
[-78.707, 39.556],
[-78.461, 39.526],
[-78.383, 39.622],
[-78.082, 39.671],
[-77.83, 39.587],
[-77.72, 39.321],
[-77.46, 39.219],
[-77.463, 39.076],
[-77.12, 38.934],
[-77.039, 38.792],
[-77.13, 38.635],
[-76.864, 38.269],
[-76.591, 38.214],
[-76.393, 38.24],
[-76.393, 38.389],
[-76.518, 38.539],
[-76.559, 38.756],
[-76.45, 38.941],
[-76.425, 39.206],
[-76.233, 39.091],
[-76.362, 38.939],
[-76.336, 38.492],
[-76.218, 38.306],
[-75.889, 38.241],
[-75.899, 37.975],
[-75.67, 37.951],
[-75.242, 38.027],
[-75.049, 38.451],
[-75.694, 38.46],
[-75.789, 39.722],
[-77.469, 39.72],
[-79.477, 39.721],
],
],
},
properties: { name: "Maryland" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-96.453, 43.5],
[-96.522, 43.221],
[-96.439, 43.114],
[-96.622, 42.779],
[-96.446, 42.491],
[-96.348, 42.167],
[-96.065, 41.793],
[-96.118, 41.613],
[-95.923, 41.456],
[-95.811, 40.887],
[-95.889, 40.736],
[-95.766, 40.585],
[-94.534, 40.571],
[-93.136, 40.583],
[-91.729, 40.614],
[-91.419, 40.378],
[-91.34, 40.613],
[-91.121, 40.673],
[-90.952, 40.954],
[-90.957, 41.111],
[-91.114, 41.25],
[-91.028, 41.424],
[-90.701, 41.455],
[-90.34, 41.599],
[-90.181, 41.812],
[-90.161, 42.106],
[-90.431, 42.278],
[-90.643, 42.508],
[-90.701, 42.626],
[-90.942, 42.684],
[-91.138, 42.904],
[-91.175, 43.135],
[-91.058, 43.254],
[-91.218, 43.501],
[-92.449, 43.5],
[-93.971, 43.5],
[-94.855, 43.501],
[-96.453, 43.5],
],
],
},
properties: { name: "Iowa" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.57, 39.839],
[-75.789, 39.722],
[-75.694, 38.46],
[-75.049, 38.451],
[-75.089, 38.797],
[-75.304, 38.913],
[-75.408, 39.265],
[-75.528, 39.498],
[-75.559, 39.63],
[-75.415, 39.802],
],
],
},
properties: { name: "Delaware" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-84.806, 41.696],
[-84.804, 40.353],
[-84.82, 39.105],
[-84.462, 39.122],
[-84.327, 39.027],
[-84.213, 38.806],
[-83.852, 38.751],
[-83.679, 38.63],
[-83.533, 38.702],
[-83.287, 38.599],
[-82.889, 38.756],
[-82.851, 38.604],
[-82.594, 38.422],
[-82.324, 38.449],
[-82.175, 38.608],
[-82.209, 38.803],
[-82.007, 39.03],
[-81.898, 38.93],
[-81.678, 39.274],
[-81.456, 39.409],
[-81.348, 39.346],
[-81.129, 39.449],
[-80.83, 39.712],
[-80.803, 39.919],
[-80.607, 40.304],
[-80.668, 40.582],
[-80.519, 40.639],
[-80.519, 41.978],
[-81.287, 41.76],
[-81.739, 41.489],
[-81.995, 41.514],
[-82.461, 41.386],
[-82.834, 41.588],
[-83.067, 41.595],
[-83.454, 41.733],
[-84.806, 41.696],
],
],
},
properties: { name: "Ohio" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-80.519, 41.978],
[-80.519, 40.639],
[-80.519, 39.721],
[-79.477, 39.721],
[-77.469, 39.72],
[-75.789, 39.722],
[-75.57, 39.839],
[-75.415, 39.802],
[-74.722, 40.154],
[-75.187, 40.569],
[-75.133, 40.98],
[-74.695, 41.357],
[-74.982, 41.496],
[-75.113, 41.841],
[-75.341, 41.993],
[-76.462, 41.999],
[-77.832, 41.999],
[-79.761, 41.999],
[-79.762, 42.27],
[-80.519, 41.978],
],
],
},
properties: { name: "Pennsylvania" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.053, 43.001],
[-104.053, 42.25],
[-104.053, 41.001],
[-102.052, 41.002],
[-102.052, 40.003],
[-101.06, 40.002],
[-99.813, 40.001],
[-98.076, 40.002],
[-96.47, 40.001],
[-95.308, 40],
[-95.473, 40.236],
[-95.654, 40.323],
[-95.766, 40.585],
[-95.889, 40.736],
[-95.811, 40.887],
[-95.923, 41.456],
[-96.118, 41.613],
[-96.065, 41.793],
[-96.348, 42.167],
[-96.446, 42.491],
[-96.611, 42.506],
[-96.698, 42.659],
[-97.131, 42.772],
[-97.238, 42.853],
[-97.858, 42.865],
[-97.95, 42.77],
[-98.435, 42.929],
[-98.499, 42.999],
[-100.198, 42.998],
[-102.082, 42.999],
[-104.053, 43.001],
],
],
},
properties: { name: "Nebraska" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-123.237, 48.683],
[-123.141, 48.505],
[-122.874, 48.418],
[-122.743, 48.662],
[-122.938, 48.79],
[-123.237, 48.683],
],
],
[
[
[-117.032, 48.999],
[-118.837, 49],
[-120.001, 48.999],
[-121.751, 48.997],
[-122.758, 49.002],
[-122.643, 48.588],
[-122.76, 48.143],
[-123.004, 48.091],
[-124.051, 48.178],
[-124.653, 48.391],
[-124.722, 48.153],
[-124.672, 47.964],
[-124.412, 47.691],
[-124.319, 47.356],
[-124.236, 47.287],
[-124.081, 46.735],
[-124.081, 46.267],
[-123.548, 46.259],
[-123.28, 46.145],
[-123.116, 46.185],
[-122.814, 45.961],
[-122.775, 45.68],
[-122.263, 45.544],
[-121.811, 45.707],
[-121.533, 45.727],
[-121.085, 45.648],
[-120.591, 45.747],
[-120.211, 45.726],
[-119.966, 45.824],
[-119.126, 45.933],
[-118.987, 46],
[-116.916, 45.995],
[-117.036, 46.41],
[-117.042, 47.735],
[-117.032, 48.999],
],
],
],
},
properties: { name: "Washington" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-88.2, 34.996],
[-88.098, 34.892],
[-88.317, 33.184],
[-88.469, 31.933],
[-88.395, 30.369],
[-88.136, 30.321],
[-88.062, 30.645],
[-87.797, 30.324],
[-87.518, 30.28],
[-87.452, 30.344],
[-87.4, 30.657],
[-87.635, 30.866],
[-87.599, 30.997],
[-85.894, 30.993],
[-85.002, 31.001],
[-85.108, 31.186],
[-85.042, 31.545],
[-85.142, 31.839],
[-85.059, 32.136],
[-84.892, 32.263],
[-85.184, 32.861],
[-85.429, 34.125],
[-85.605, 34.985],
[-86.784, 34.992],
[-88.2, 34.996],
],
],
},
properties: { name: "Alabama" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.618, 36.499],
[-94.432, 35.37],
[-94.486, 33.638],
[-94.354, 33.556],
[-94.043, 33.551],
[-94.043, 33.019],
[-92.223, 33.009],
[-91.166, 33.004],
[-91.069, 33.233],
[-91.216, 33.529],
[-91.027, 33.764],
[-91.061, 33.878],
[-90.895, 34.224],
[-90.575, 34.415],
[-90.587, 34.616],
[-90.474, 34.789],
[-90.25, 34.907],
[-90.309, 34.996],
[-90.091, 35.118],
[-90.122, 35.305],
[-89.958, 35.542],
[-89.957, 35.695],
[-89.723, 35.809],
[-89.733, 36.001],
[-90.369, 35.996],
[-90.064, 36.303],
[-90.154, 36.495],
[-91.127, 36.498],
[-92.35, 36.498],
[-93.959, 36.499],
[-94.618, 36.499],
],
],
},
properties: { name: "Arkansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.045, 36.999],
[-109.046, 36.117],
[-109.046, 34.96],
[-109.046, 33.875],
[-109.047, 32.778],
[-109.05, 31.333],
[-108.209, 31.333],
[-108.208, 31.784],
[-106.528, 31.783],
[-106.618, 32],
[-104.644, 32],
[-103.064, 32.001],
[-103.065, 32.849],
[-103.044, 34.079],
[-103.043, 35.183],
[-103.042, 36.5],
[-103.002, 36.5],
[-103.002, 37],
[-104.732, 36.993],
[-106.006, 36.995],
[-108.001, 37],
[-109.045, 36.999],
],
],
},
properties: { name: "New Mexico" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 36.5],
[-103.042, 36.5],
[-103.043, 35.183],
[-103.044, 34.079],
[-103.065, 32.849],
[-103.064, 32.001],
[-104.644, 32],
[-106.618, 32],
[-106.528, 31.783],
[-106.418, 31.752],
[-106.176, 31.456],
[-105.954, 31.365],
[-105.773, 31.167],
[-105.315, 30.817],
[-105.001, 30.673],
[-104.86, 30.39],
[-104.703, 30.212],
[-104.672, 29.911],
[-104.54, 29.676],
[-104.144, 29.383],
[-103.789, 29.258],
[-103.281, 28.982],
[-102.871, 29.242],
[-102.809, 29.522],
[-102.677, 29.738],
[-102.393, 29.766],
[-102.301, 29.878],
[-101.966, 29.807],
[-101.401, 29.738],
[-101.255, 29.52],
[-101.06, 29.459],
[-100.675, 29.1],
[-100.5, 28.662],
[-100.397, 28.576],
[-100.268, 28.25],
[-99.932, 27.968],
[-99.845, 27.779],
[-99.557, 27.614],
[-99.43, 27.159],
[-99.447, 27.026],
[-99.269, 26.843],
[-99.111, 26.426],
[-98.807, 26.369],
[-98.654, 26.236],
[-98.443, 26.199],
[-98.197, 26.056],
[-97.795, 26.055],
[-97.423, 25.84],
[-97.146, 25.971],
[-97.197, 26.306],
[-97.323, 26.702],
[-97.379, 27.06],
[-97.296, 27.427],
[-97.141, 27.717],
[-96.886, 28.031],
[-96.194, 28.502],
[-95.382, 28.866],
[-95.026, 29.148],
[-94.723, 29.331],
[-94.595, 29.468],
[-94.057, 29.671],
[-93.838, 29.691],
[-93.929, 29.803],
[-93.704, 30.054],
[-93.729, 30.545],
[-93.531, 30.925],
[-93.535, 31.186],
[-93.835, 31.586],
[-93.803, 31.701],
[-94.042, 31.992],
[-94.043, 33.019],
[-94.043, 33.551],
[-94.354, 33.556],
[-94.486, 33.638],
[-94.842, 33.739],
[-95.226, 33.962],
[-95.283, 33.878],
[-95.557, 33.927],
[-96.152, 33.832],
[-96.363, 33.694],
[-96.593, 33.831],
[-96.851, 33.847],
[-96.952, 33.945],
[-97.206, 33.81],
[-97.444, 33.824],
[-97.672, 33.991],
[-97.866, 33.849],
[-98.099, 34.104],
[-98.364, 34.157],
[-98.737, 34.131],
[-99.19, 34.214],
[-99.275, 34.387],
[-99.696, 34.381],
[-100, 34.561],
[-100, 35.619],
[-100, 36.5],
[-101.624, 36.5],
[-103.002, 36.5],
],
],
},
properties: { name: "Texas" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-120.368, 34.076],
[-120.122, 33.896],
[-120.055, 34.038],
[-120.368, 34.076],
],
],
[
[
[-124.212, 41.998],
[-124.063, 41.44],
[-124.164, 41.139],
[-124.118, 40.989],
[-124.41, 40.438],
[-124.363, 40.261],
[-124.087, 40.078],
[-123.852, 39.832],
[-123.766, 39.553],
[-123.825, 39.361],
[-123.691, 39.021],
[-123.711, 38.913],
[-123.166, 38.475],
[-123.004, 38.297],
[-122.94, 38.032],
[-122.537, 37.83],
[-122.394, 38.143],
[-122.263, 38.051],
[-122.313, 37.777],
[-122.163, 37.668],
[-122.517, 37.521],
[-122.397, 37.187],
[-122.106, 36.956],
[-121.906, 36.969],
[-121.792, 36.815],
[-121.97, 36.583],
[-121.888, 36.303],
[-121.68, 36.166],
[-121.272, 35.667],
[-121.003, 35.461],
[-120.897, 35.248],
[-120.636, 35.124],
[-120.61, 34.858],
[-120.646, 34.581],
[-120.451, 34.447],
[-120.141, 34.473],
[-119.874, 34.409],
[-119.617, 34.421],
[-119.27, 34.253],
[-119.11, 34.095],
[-118.805, 34.001],
[-118.52, 34.028],
[-118.397, 33.736],
[-118.133, 33.753],
[-117.646, 33.441],
[-117.446, 33.269],
[-117.281, 33.012],
[-117.282, 32.84],
[-117.125, 32.534],
[-115.465, 32.667],
[-114.72, 32.719],
[-114.469, 32.845],
[-114.511, 33.023],
[-114.671, 33.038],
[-114.707, 33.377],
[-114.525, 33.552],
[-114.535, 33.928],
[-114.428, 34.093],
[-114.139, 34.26],
[-114.335, 34.45],
[-114.465, 34.691],
[-114.634, 34.873],
[-114.633, 35.002],
[-115.648, 35.809],
[-116.488, 36.459],
[-117.681, 37.353],
[-118.95, 38.269],
[-120.001, 39],
[-119.998, 39.957],
[-120, 41.184],
[-119.999, 41.995],
[-121.035, 41.993],
[-122.501, 42.008],
[-124.212, 41.998],
],
],
],
},
properties: { name: "California" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.133, 36.982],
[-89.165, 36.662],
[-89.539, 36.498],
[-88.05, 36.5],
[-88.071, 36.678],
[-87.853, 36.633],
[-86.508, 36.652],
[-85.874, 36.624],
[-84.785, 36.603],
[-83.675, 36.601],
[-83.136, 36.743],
[-82.895, 36.882],
[-82.726, 37.112],
[-82.355, 37.265],
[-81.968, 37.538],
[-82.296, 37.686],
[-82.626, 38.135],
[-82.594, 38.422],
[-82.851, 38.604],
[-82.889, 38.756],
[-83.287, 38.599],
[-83.533, 38.702],
[-83.679, 38.63],
[-83.852, 38.751],
[-84.213, 38.806],
[-84.327, 39.027],
[-84.462, 39.122],
[-84.82, 39.105],
[-84.786, 38.882],
[-85.187, 38.688],
[-85.449, 38.713],
[-85.416, 38.546],
[-85.816, 38.283],
[-85.922, 38.029],
[-86.206, 38.022],
[-86.321, 38.147],
[-86.722, 37.893],
[-86.811, 37.997],
[-87.18, 37.841],
[-87.419, 37.945],
[-87.626, 37.852],
[-87.873, 37.921],
[-88.028, 37.799],
[-88.16, 37.654],
[-88.062, 37.488],
[-88.466, 37.401],
[-88.476, 37.068],
[-88.932, 37.228],
[-89.168, 37.074],
[-89.133, 36.982],
],
],
},
properties: { name: "Kentucky" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-85.605, 34.985],
[-85.429, 34.125],
[-85.184, 32.861],
[-84.892, 32.263],
[-85.059, 32.136],
[-85.142, 31.839],
[-85.042, 31.545],
[-85.108, 31.186],
[-85.002, 31.001],
[-84.865, 30.712],
[-83.131, 30.624],
[-82.219, 30.564],
[-82.18, 30.369],
[-82.041, 30.37],
[-82.033, 30.751],
[-81.943, 30.827],
[-81.444, 30.71],
[-81.402, 31.125],
[-81.305, 31.206],
[-81.131, 31.723],
[-80.886, 32.035],
[-81.113, 32.113],
[-81.195, 32.465],
[-81.397, 32.606],
[-81.502, 33.015],
[-81.755, 33.152],
[-81.933, 33.344],
[-81.926, 33.463],
[-82.162, 33.611],
[-82.324, 33.82],
[-82.557, 33.945],
[-82.715, 34.148],
[-82.874, 34.472],
[-83.048, 34.493],
[-83.339, 34.682],
[-83.324, 34.79],
[-83.109, 35.001],
[-84.322, 34.988],
[-85.605, 34.985],
],
],
},
properties: { name: "Georgia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-92.015, 46.706],
[-92.292, 46.663],
[-92.294, 46.074],
[-92.721, 45.884],
[-92.87, 45.715],
[-92.647, 45.438],
[-92.762, 45.285],
[-92.751, 44.942],
[-92.805, 44.768],
[-92.549, 44.578],
[-91.964, 44.362],
[-91.893, 44.231],
[-91.441, 44.002],
[-91.244, 43.773],
[-91.218, 43.501],
[-91.058, 43.254],
[-91.175, 43.135],
[-91.138, 42.904],
[-90.942, 42.684],
[-90.701, 42.626],
[-90.643, 42.508],
[-88.707, 42.494],
[-87.8, 42.492],
[-87.767, 42.785],
[-87.896, 43.016],
[-87.889, 43.308],
[-87.706, 43.68],
[-87.736, 43.874],
[-87.447, 44.586],
[-87.063, 45.079],
[-87.265, 45.081],
[-87.581, 44.852],
[-87.775, 44.639],
[-87.983, 44.72],
[-87.813, 44.954],
[-87.59, 45.095],
[-87.863, 45.353],
[-87.781, 45.674],
[-88.135, 45.822],
[-88.115, 45.922],
[-88.527, 46.021],
[-88.812, 46.022],
[-89.092, 46.139],
[-90.12, 46.337],
[-90.215, 46.5],
[-90.418, 46.566],
[-90.755, 46.646],
[-90.881, 46.74],
[-90.745, 46.894],
[-90.924, 47.002],
[-91.168, 46.845],
[-91.82, 46.69],
[-92.015, 46.706],
],
],
},
properties: { name: "Wisconsin" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-123.548, 46.259],
[-123.959, 46.142],
[-123.939, 45.709],
[-123.975, 45.145],
[-124.074, 44.798],
[-124.065, 44.633],
[-124.15, 43.911],
[-124.234, 43.557],
[-124.552, 42.841],
[-124.413, 42.658],
[-124.411, 42.251],
[-124.212, 41.998],
[-122.501, 42.008],
[-121.035, 41.993],
[-119.999, 41.995],
[-118.776, 41.993],
[-117.026, 42],
[-117.024, 43.824],
[-116.896, 44.154],
[-117.243, 44.391],
[-117.062, 44.727],
[-116.834, 44.929],
[-116.675, 45.314],
[-116.464, 45.616],
[-116.593, 45.779],
[-116.788, 45.84],
[-116.916, 45.995],
[-118.987, 46],
[-119.126, 45.933],
[-119.966, 45.824],
[-120.211, 45.726],
[-120.591, 45.747],
[-121.085, 45.648],
[-121.533, 45.727],
[-121.811, 45.707],
[-122.263, 45.544],
[-122.775, 45.68],
[-122.814, 45.961],
[-123.116, 46.185],
[-123.28, 46.145],
[-123.548, 46.259],
],
],
},
properties: { name: "Oregon" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-95.766, 40.585],
[-95.654, 40.323],
[-95.473, 40.236],
[-95.308, 40],
[-94.86, 39.75],
[-95.114, 39.554],
[-94.8, 39.206],
[-94.607, 39.113],
[-94.613, 38.238],
[-94.618, 36.999],
[-94.618, 36.499],
[-93.959, 36.499],
[-92.35, 36.498],
[-91.127, 36.498],
[-90.154, 36.495],
[-90.064, 36.303],
[-90.369, 35.996],
[-89.733, 36.001],
[-89.523, 36.345],
[-89.539, 36.498],
[-89.165, 36.662],
[-89.133, 36.982],
[-89.359, 37.043],
[-89.495, 37.325],
[-89.522, 37.696],
[-90.219, 38.094],
[-90.373, 38.323],
[-90.185, 38.612],
[-90.113, 38.849],
[-90.468, 38.962],
[-90.657, 38.92],
[-90.73, 39.256],
[-91.038, 39.448],
[-91.368, 39.729],
[-91.512, 40.17],
[-91.419, 40.378],
[-91.729, 40.614],
[-93.136, 40.583],
[-94.534, 40.571],
[-95.766, 40.585],
],
],
},
properties: { name: "Missouri" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-75.67, 37.951],
[-75.941, 37.564],
[-76.023, 37.289],
[-75.817, 37.193],
[-75.658, 37.452],
[-75.552, 37.748],
[-75.242, 38.027],
[-75.67, 37.951],
],
],
[
[
[-81.968, 37.538],
[-82.355, 37.265],
[-82.726, 37.112],
[-82.895, 36.882],
[-83.136, 36.743],
[-83.675, 36.601],
[-81.678, 36.588],
[-80.295, 36.544],
[-78.51, 36.541],
[-76.917, 36.546],
[-75.867, 36.551],
[-75.996, 36.922],
[-76.268, 36.965],
[-76.394, 37.225],
[-76.25, 37.422],
[-76.329, 37.671],
[-76.237, 37.889],
[-76.614, 38.149],
[-76.962, 38.214],
[-77.048, 38.36],
[-77.265, 38.333],
[-77.323, 38.467],
[-77.13, 38.635],
[-77.039, 38.792],
[-77.12, 38.934],
[-77.463, 39.076],
[-77.46, 39.219],
[-77.72, 39.321],
[-77.828, 39.132],
[-78.347, 39.466],
[-78.414, 39.158],
[-78.773, 38.894],
[-78.999, 38.84],
[-79.298, 38.416],
[-79.649, 38.592],
[-79.788, 38.273],
[-80.292, 37.684],
[-80.292, 37.537],
[-80.545, 37.475],
[-80.919, 37.306],
[-81.225, 37.235],
[-81.362, 37.338],
[-81.561, 37.207],
[-81.85, 37.285],
[-81.968, 37.538],
],
],
],
},
properties: { name: "Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.733, 36.001],
[-89.723, 35.809],
[-89.957, 35.695],
[-89.958, 35.542],
[-90.122, 35.305],
[-90.091, 35.118],
[-90.309, 34.996],
[-89.435, 34.994],
[-88.2, 34.996],
[-86.784, 34.992],
[-85.605, 34.985],
[-84.322, 34.988],
[-84.283, 35.227],
[-84.098, 35.247],
[-84.022, 35.407],
[-83.772, 35.562],
[-83.498, 35.563],
[-83.162, 35.763],
[-82.978, 35.783],
[-82.779, 35.993],
[-82.211, 36.159],
[-82.029, 36.124],
[-81.908, 36.302],
[-81.734, 36.413],
[-81.678, 36.588],
[-83.675, 36.601],
[-84.785, 36.603],
[-85.874, 36.624],
[-86.508, 36.652],
[-87.853, 36.633],
[-88.071, 36.678],
[-88.05, 36.5],
[-89.539, 36.498],
[-89.523, 36.345],
[-89.733, 36.001],
],
],
},
properties: { name: "Tennessee" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.043, 33.019],
[-94.042, 31.992],
[-93.803, 31.701],
[-93.835, 31.586],
[-93.535, 31.186],
[-93.531, 30.925],
[-93.729, 30.545],
[-93.704, 30.054],
[-93.929, 29.803],
[-93.838, 29.691],
[-93.538, 29.763],
[-93.177, 29.77],
[-92.684, 29.605],
[-92.323, 29.531],
[-92.065, 29.586],
[-91.822, 29.474],
[-91.711, 29.569],
[-91.394, 29.497],
[-91.279, 29.248],
[-90.942, 29.162],
[-90.868, 29.056],
[-90.224, 29.085],
[-89.843, 29.319],
[-89.483, 29.215],
[-89.361, 29.072],
[-89.149, 29.03],
[-89.014, 29.167],
[-89.2, 29.344],
[-89.482, 29.406],
[-89.602, 29.61],
[-89.404, 29.682],
[-89.236, 29.877],
[-89.186, 30.064],
[-89.445, 30.061],
[-89.702, 29.874],
[-89.845, 30.018],
[-89.525, 30.181],
[-89.608, 30.217],
[-89.836, 30.727],
[-89.728, 31.002],
[-90.759, 31],
[-91.56, 31.05],
[-91.644, 31.234],
[-91.536, 31.338],
[-91.36, 31.799],
[-91.035, 32.101],
[-90.921, 32.342],
[-91.053, 32.438],
[-91.114, 32.74],
[-91.072, 32.938],
[-91.166, 33.004],
[-92.223, 33.009],
[-94.043, 33.019],
],
],
},
properties: { name: "Louisiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.762, 42.27],
[-79.761, 41.999],
[-77.832, 41.999],
[-76.462, 41.999],
[-75.341, 41.993],
[-75.113, 41.841],
[-74.982, 41.496],
[-74.695, 41.357],
[-73.894, 40.997],
[-74.087, 40.652],
[-74.261, 40.502],
[-73.013, 40.68],
[-71.937, 41.006],
[-72.283, 41.068],
[-72.585, 40.998],
[-73.11, 40.972],
[-73.229, 40.905],
[-73.657, 40.985],
[-73.728, 41.101],
[-73.551, 41.295],
[-73.487, 42.05],
[-73.508, 42.086],
[-73.265, 42.746],
[-73.242, 43.535],
[-73.415, 43.658],
[-73.351, 43.77],
[-73.437, 44.043],
[-73.294, 44.441],
[-73.39, 44.62],
[-73.343, 45.011],
[-74.234, 44.992],
[-74.835, 45.015],
[-75.256, 44.858],
[-75.766, 44.516],
[-75.95, 44.349],
[-76.287, 44.204],
[-76.412, 43.926],
[-76.229, 43.804],
[-76.236, 43.529],
[-76.418, 43.521],
[-76.685, 43.353],
[-76.952, 43.271],
[-77.341, 43.281],
[-77.551, 43.236],
[-77.76, 43.341],
[-78.547, 43.37],
[-79.07, 43.262],
[-79.074, 43.078],
[-78.851, 42.792],
[-79.139, 42.564],
[-79.762, 42.27],
],
],
},
properties: { name: "New York" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-83.454, 41.733],
[-83.442, 41.809],
[-83.134, 42.088],
[-83.097, 42.29],
[-82.924, 42.352],
[-82.859, 42.542],
[-82.679, 42.522],
[-82.51, 42.637],
[-82.416, 43.006],
[-82.523, 43.225],
[-82.634, 43.831],
[-82.929, 44.069],
[-83.407, 43.92],
[-83.683, 43.591],
[-83.948, 43.735],
[-83.869, 43.961],
[-83.584, 44.057],
[-83.525, 44.262],
[-83.337, 44.333],
[-83.266, 45.027],
[-83.385, 45.274],
[-84.196, 45.621],
[-84.462, 45.652],
[-84.719, 45.778],
[-84.867, 45.752],
[-85.12, 45.569],
[-85.041, 45.437],
[-85.372, 45.271],
[-85.381, 45.046],
[-86.059, 44.911],
[-86.089, 44.741],
[-86.248, 44.699],
[-86.269, 44.345],
[-86.515, 44.058],
[-86.431, 43.841],
[-86.541, 43.645],
[-86.255, 43.083],
[-86.208, 42.763],
[-86.356, 42.254],
[-86.598, 41.918],
[-86.825, 41.76],
[-84.806, 41.76],
[-84.806, 41.696],
[-83.454, 41.733],
],
],
[
[
[-89.221, 47.908],
[-89.158, 47.824],
[-88.579, 48.041],
[-88.632, 48.148],
[-89.221, 47.908],
],
],
[
[
[-90.418, 46.566],
[-90.215, 46.5],
[-90.12, 46.337],
[-89.092, 46.139],
[-88.812, 46.022],
[-88.527, 46.021],
[-88.115, 45.922],
[-88.135, 45.822],
[-87.781, 45.674],
[-87.863, 45.353],
[-87.59, 45.095],
[-87.172, 45.662],
[-86.964, 45.673],
[-86.773, 45.811],
[-86.541, 45.708],
[-86.278, 45.942],
[-85.914, 45.919],
[-85.541, 46.08],
[-85.152, 46.051],
[-84.793, 45.859],
[-84.633, 45.951],
[-84.08, 45.971],
[-83.526, 45.919],
[-83.599, 46.09],
[-83.882, 46.042],
[-84.115, 46.174],
[-84.118, 46.518],
[-84.969, 46.476],
[-85.028, 46.675],
[-85.257, 46.753],
[-85.482, 46.68],
[-86.138, 46.673],
[-86.558, 46.487],
[-86.811, 46.45],
[-86.977, 46.527],
[-87.367, 46.507],
[-87.595, 46.783],
[-88.144, 46.967],
[-88.455, 46.923],
[-88.194, 47.209],
[-87.943, 47.336],
[-87.929, 47.479],
[-88.218, 47.449],
[-89.415, 46.844],
[-89.832, 46.804],
[-90.045, 46.668],
[-90.418, 46.566],
],
],
],
},
properties: { name: "Michigan" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.916, 45.995],
[-116.788, 45.84],
[-116.593, 45.779],
[-116.464, 45.616],
[-116.675, 45.314],
[-116.834, 44.929],
[-117.062, 44.727],
[-117.243, 44.391],
[-116.896, 44.154],
[-117.024, 43.824],
[-117.026, 42],
[-115.87, 41.997],
[-114.042, 41.994],
[-112.11, 41.998],
[-111.047, 42.002],
[-111.045, 43.316],
[-111.049, 44.474],
[-111.324, 44.724],
[-111.563, 44.555],
[-112.473, 44.48],
[-113.007, 44.472],
[-113.131, 44.765],
[-113.422, 44.843],
[-113.452, 45.059],
[-113.736, 45.325],
[-113.807, 45.602],
[-113.972, 45.701],
[-114.279, 45.481],
[-114.506, 45.559],
[-114.402, 45.961],
[-114.48, 46.03],
[-114.422, 46.387],
[-114.321, 46.647],
[-114.547, 46.644],
[-114.943, 46.868],
[-115.327, 47.256],
[-115.71, 47.418],
[-115.724, 47.697],
[-116.049, 48],
[-116.049, 49.001],
[-117.032, 48.999],
[-117.042, 47.735],
[-117.036, 46.41],
[-116.916, 45.995],
],
],
},
properties: { name: "Idaho" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-81.812, 24.569],
[-81.685, 24.559],
[-81.243, 24.674],
[-81.444, 24.813],
[-81.751, 24.654],
[-81.812, 24.569],
],
],
[
[
[-85.002, 31.001],
[-85.894, 30.993],
[-87.599, 30.997],
[-87.635, 30.866],
[-87.4, 30.657],
[-87.452, 30.344],
[-87.518, 30.28],
[-86.633, 30.396],
[-86.223, 30.344],
[-86, 30.271],
[-85.385, 29.921],
[-85.353, 29.66],
[-85.045, 29.587],
[-84.565, 29.81],
[-84.29, 30.057],
[-84.063, 30.101],
[-83.679, 29.919],
[-83.402, 29.523],
[-83.17, 29.29],
[-82.824, 29.099],
[-82.657, 28.545],
[-82.764, 28.244],
[-82.86, 28.174],
[-82.847, 27.854],
[-82.705, 27.625],
[-82.692, 27.437],
[-82.54, 27.254],
[-82.265, 26.757],
[-82.181, 26.476],
[-81.924, 26.437],
[-81.845, 26.328],
[-81.727, 25.907],
[-81.384, 25.777],
[-81.147, 25.408],
[-81.171, 25.246],
[-81.08, 25.119],
[-80.812, 25.186],
[-80.495, 25.2],
[-80.358, 25.153],
[-80.301, 25.613],
[-80.11, 25.818],
[-80.11, 26.087],
[-80.039, 26.569],
[-80.046, 26.859],
[-80.384, 27.74],
[-80.548, 28.049],
[-80.607, 28.336],
[-80.525, 28.459],
[-80.584, 28.598],
[-80.966, 29.148],
[-81.257, 29.785],
[-81.396, 30.34],
[-81.444, 30.71],
[-81.943, 30.827],
[-82.033, 30.751],
[-82.041, 30.37],
[-82.18, 30.369],
[-82.219, 30.564],
[-83.131, 30.624],
[-84.865, 30.712],
[-85.002, 31.001],
],
],
],
},
properties: { name: "Florida" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.419, 40.378],
[-91.512, 40.17],
[-91.368, 39.729],
[-91.038, 39.448],
[-90.73, 39.256],
[-90.657, 38.92],
[-90.468, 38.962],
[-90.113, 38.849],
[-90.185, 38.612],
[-90.373, 38.323],
[-90.219, 38.094],
[-89.522, 37.696],
[-89.495, 37.325],
[-89.359, 37.043],
[-89.133, 36.982],
[-89.168, 37.074],
[-88.932, 37.228],
[-88.476, 37.068],
[-88.466, 37.401],
[-88.062, 37.488],
[-88.16, 37.654],
[-88.028, 37.799],
[-88.031, 38.031],
[-87.499, 38.758],
[-87.625, 39.102],
[-87.532, 39.348],
[-87.526, 40.535],
[-87.524, 41.708],
[-87.682, 42.076],
[-87.835, 42.302],
[-87.8, 42.492],
[-88.707, 42.494],
[-90.643, 42.508],
[-90.431, 42.278],
[-90.161, 42.106],
[-90.181, 41.812],
[-90.34, 41.599],
[-90.701, 41.455],
[-91.028, 41.424],
[-91.114, 41.25],
[-90.957, 41.111],
[-90.952, 40.954],
[-91.121, 40.673],
[-91.34, 40.613],
[-91.419, 40.378],
],
],
},
properties: { name: "Illinois" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.049, 49.001],
[-116.049, 48],
[-115.724, 47.697],
[-115.71, 47.418],
[-115.327, 47.256],
[-114.943, 46.868],
[-114.547, 46.644],
[-114.321, 46.647],
[-114.422, 46.387],
[-114.48, 46.03],
[-114.402, 45.961],
[-114.506, 45.559],
[-114.279, 45.481],
[-113.972, 45.701],
[-113.807, 45.602],
[-113.736, 45.325],
[-113.452, 45.059],
[-113.422, 44.843],
[-113.131, 44.765],
[-113.007, 44.472],
[-112.473, 44.48],
[-111.563, 44.555],
[-111.324, 44.724],
[-111.049, 44.474],
[-111.044, 45.001],
[-108.621, 45],
[-106.264, 44.994],
[-104.058, 44.997],
[-104.045, 45.945],
[-104.042, 47.803],
[-104.049, 49],
[-106.051, 48.999],
[-107.441, 48.999],
[-109.001, 48.999],
[-111.501, 48.997],
[-113.693, 48.998],
[-116.049, 49.001],
],
],
},
properties: { name: "Montana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-97.229, 49.001],
[-97.1, 48.668],
[-97.147, 48.169],
[-96.854, 47.572],
[-96.791, 46.637],
[-96.601, 46.32],
[-96.564, 45.935],
[-96.587, 45.816],
[-96.826, 45.654],
[-96.711, 45.437],
[-96.458, 45.308],
[-96.453, 43.5],
[-94.855, 43.501],
[-93.971, 43.5],
[-92.449, 43.5],
[-91.218, 43.501],
[-91.244, 43.773],
[-91.441, 44.002],
[-91.893, 44.231],
[-91.964, 44.362],
[-92.549, 44.578],
[-92.805, 44.768],
[-92.751, 44.942],
[-92.762, 45.285],
[-92.647, 45.438],
[-92.87, 45.715],
[-92.721, 45.884],
[-92.294, 46.074],
[-92.292, 46.663],
[-92.015, 46.706],
[-92.062, 46.804],
[-91.457, 47.139],
[-90.868, 47.557],
[-90.537, 47.703],
[-89.974, 47.831],
[-89.868, 47.99],
[-90.136, 48.112],
[-90.704, 48.096],
[-90.844, 48.244],
[-91.25, 48.084],
[-91.543, 48.053],
[-91.715, 48.199],
[-91.981, 48.248],
[-92.955, 48.631],
[-93.207, 48.642],
[-93.468, 48.546],
[-93.815, 48.527],
[-93.844, 48.629],
[-94.447, 48.693],
[-94.694, 48.789],
[-94.816, 49.321],
[-95.153, 49.384],
[-95.154, 48.999],
[-97.229, 49.001],
],
],
},
properties: { name: "Minnesota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-87.524, 41.708],
[-87.526, 40.535],
[-87.532, 39.348],
[-87.625, 39.102],
[-87.499, 38.758],
[-88.031, 38.031],
[-88.028, 37.799],
[-87.873, 37.921],
[-87.626, 37.852],
[-87.419, 37.945],
[-87.18, 37.841],
[-86.811, 37.997],
[-86.722, 37.893],
[-86.321, 38.147],
[-86.206, 38.022],
[-85.922, 38.029],
[-85.816, 38.283],
[-85.416, 38.546],
[-85.449, 38.713],
[-85.187, 38.688],
[-84.786, 38.882],
[-84.82, 39.105],
[-84.804, 40.353],
[-84.806, 41.696],
[-84.806, 41.76],
[-86.825, 41.76],
[-87.262, 41.62],
[-87.524, 41.708],
],
],
},
properties: { name: "Indiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.265, 42.746],
[-73.508, 42.086],
[-73.487, 42.05],
[-71.799, 42.008],
[-71.381, 42.019],
[-71.329, 41.783],
[-71.133, 41.66],
[-71.121, 41.497],
[-70.91, 41.577],
[-70.734, 41.486],
[-70.322, 41.631],
[-70.662, 41.961],
[-70.731, 42.211],
[-70.975, 42.356],
[-70.655, 42.582],
[-70.817, 42.872],
[-71.15, 42.815],
[-71.294, 42.697],
[-72.459, 42.727],
[-73.265, 42.746],
],
],
},
properties: { name: "Massachusetts" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-102.052, 40.003],
[-102.046, 38.698],
[-102.042, 36.993],
[-100.856, 36.999],
[-99.129, 36.999],
[-97.462, 36.999],
[-95.787, 36.999],
[-94.618, 36.999],
[-94.613, 38.238],
[-94.607, 39.113],
[-94.8, 39.206],
[-95.114, 39.554],
[-94.86, 39.75],
[-95.308, 40],
[-96.47, 40.001],
[-98.076, 40.002],
[-99.813, 40.001],
[-101.06, 40.002],
[-102.052, 40.003],
],
],
},
properties: { name: "Kansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-119.999, 41.995],
[-120, 41.184],
[-119.998, 39.957],
[-120.001, 39],
[-118.95, 38.269],
[-117.681, 37.353],
[-116.488, 36.459],
[-115.648, 35.809],
[-114.633, 35.002],
[-114.573, 35.139],
[-114.664, 35.449],
[-114.736, 36.104],
[-114.372, 36.143],
[-114.152, 36.025],
[-114.047, 36.194],
[-114.051, 37],
[-114.05, 37.881],
[-114.049, 39.006],
[-114.046, 40.398],
[-114.042, 41.994],
[-115.87, 41.997],
[-117.026, 42],
[-118.776, 41.993],
[-119.999, 41.995],
],
],
},
properties: { name: "Nevada" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.343, 45.011],
[-73.39, 44.62],
[-73.294, 44.441],
[-73.437, 44.043],
[-73.351, 43.77],
[-73.415, 43.658],
[-73.242, 43.535],
[-73.265, 42.746],
[-72.459, 42.727],
[-72.54, 42.805],
[-72.445, 43.004],
[-72.379, 43.574],
[-72.183, 43.808],
[-72.037, 44.103],
[-72.046, 44.292],
[-71.819, 44.353],
[-71.58, 44.502],
[-71.627, 44.747],
[-71.501, 45.013],
[-72.349, 45.006],
[-73.343, 45.011],
],
],
},
properties: { name: "Vermont" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.487, 42.05],
[-73.551, 41.295],
[-73.728, 41.101],
[-73.657, 40.985],
[-73.422, 41.048],
[-72.936, 41.258],
[-72.547, 41.25],
[-71.861, 41.32],
[-71.798, 41.417],
[-71.799, 42.008],
[-73.487, 42.05],
],
],
},
properties: { name: "Connecticut" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.559, 39.63],
[-75.528, 39.498],
[-75.244, 39.286],
[-74.886, 39.144],
[-74.647, 39.212],
[-74.413, 39.361],
[-74.101, 39.756],
[-73.971, 40.348],
[-74.261, 40.502],
[-74.087, 40.652],
[-73.894, 40.997],
[-74.695, 41.357],
[-75.133, 40.98],
[-75.187, 40.569],
[-74.722, 40.154],
[-75.415, 39.802],
],
],
},
properties: { name: "New Jersey" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-81.678, 36.588],
[-81.734, 36.413],
[-81.908, 36.302],
[-82.029, 36.124],
[-82.211, 36.159],
[-82.779, 35.993],
[-82.978, 35.783],
[-83.162, 35.763],
[-83.498, 35.563],
[-83.772, 35.562],
[-84.022, 35.407],
[-84.098, 35.247],
[-84.283, 35.227],
[-84.322, 34.988],
[-83.109, 35.001],
[-82.411, 35.202],
[-81.043, 35.149],
[-80.782, 34.936],
[-80.797, 34.824],
[-79.675, 34.805],
[-78.541, 33.851],
[-78.137, 33.912],
[-77.96, 33.853],
[-77.829, 34.163],
[-77.635, 34.36],
[-77.137, 34.633],
[-76.727, 34.697],
[-76.536, 34.589],
[-76.137, 34.988],
[-75.913, 35.12],
[-75.534, 35.226],
[-75.459, 35.597],
[-75.718, 36.114],
[-75.867, 36.551],
[-76.917, 36.546],
[-78.51, 36.541],
[-80.295, 36.544],
[-81.678, 36.588],
],
],
},
properties: { name: "North Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.042, 41.994],
[-114.046, 40.398],
[-114.049, 39.006],
[-114.05, 37.881],
[-114.051, 37],
[-112.966, 37],
[-111.278, 37],
[-110.001, 36.998],
[-109.045, 36.999],
[-109.042, 38.165],
[-109.06, 38.275],
[-109.051, 39.875],
[-109.05, 41.001],
[-111.047, 40.998],
[-111.047, 42.002],
[-112.11, 41.998],
[-114.042, 41.994],
],
],
},
properties: { name: "Utah" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.049, 49],
[-104.042, 47.803],
[-104.045, 45.945],
[-102.088, 45.945],
[-100.762, 45.944],
[-99.49, 45.94],
[-97.777, 45.935],
[-96.564, 45.935],
[-96.601, 46.32],
[-96.791, 46.637],
[-96.854, 47.572],
[-97.147, 48.169],
[-97.1, 48.668],
[-97.229, 49.001],
[-98.869, 49],
[-99.914, 48.999],
[-102.217, 48.999],
[-104.049, 49],
],
],
},
properties: { name: "North Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-83.109, 35.001],
[-83.324, 34.79],
[-83.339, 34.682],
[-83.048, 34.493],
[-82.874, 34.472],
[-82.715, 34.148],
[-82.557, 33.945],
[-82.324, 33.82],
[-82.162, 33.611],
[-81.926, 33.463],
[-81.933, 33.344],
[-81.755, 33.152],
[-81.502, 33.015],
[-81.397, 32.606],
[-81.195, 32.465],
[-81.113, 32.113],
[-80.886, 32.035],
[-80.338, 32.479],
[-80.001, 32.606],
[-79.57, 32.927],
[-79.36, 33.007],
[-79.215, 33.156],
[-79.135, 33.404],
[-78.773, 33.769],
[-78.541, 33.851],
[-79.675, 34.805],
[-80.797, 34.824],
[-80.782, 34.936],
[-81.043, 35.149],
[-82.411, 35.202],
[-83.109, 35.001],
],
],
},
properties: { name: "South Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.166, 33.004],
[-91.072, 32.938],
[-91.114, 32.74],
[-91.053, 32.438],
[-90.921, 32.342],
[-91.035, 32.101],
[-91.36, 31.799],
[-91.536, 31.338],
[-91.644, 31.234],
[-91.56, 31.05],
[-90.759, 31],
[-89.728, 31.002],
[-89.836, 30.727],
[-89.608, 30.217],
[-89.525, 30.181],
[-89.345, 30.293],
[-88.894, 30.393],
[-88.472, 30.32],
[-88.395, 30.369],
[-88.469, 31.933],
[-88.317, 33.184],
[-88.098, 34.892],
[-88.2, 34.996],
[-89.435, 34.994],
[-90.309, 34.996],
[-90.25, 34.907],
[-90.474, 34.789],
[-90.587, 34.616],
[-90.575, 34.415],
[-90.895, 34.224],
[-91.061, 33.878],
[-91.027, 33.764],
[-91.216, 33.529],
[-91.069, 33.233],
[-91.166, 33.004],
],
],
},
properties: { name: "Mississippi" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.05, 41.001],
[-109.051, 39.875],
[-109.06, 38.275],
[-109.042, 38.165],
[-109.045, 36.999],
[-108.001, 37],
[-106.006, 36.995],
[-104.732, 36.993],
[-103.002, 37],
[-102.042, 36.993],
[-102.046, 38.698],
[-102.052, 40.003],
[-102.052, 41.002],
[-104.053, 41.001],
[-104.855, 40.998],
[-106.191, 40.998],
[-107.367, 41.003],
[-109.05, 41.001],
],
],
},
properties: { name: "Colorado" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-104.055, 44.25],
[-104.053, 43.001],
[-102.082, 42.999],
[-100.198, 42.998],
[-98.499, 42.999],
[-98.435, 42.929],
[-97.95, 42.77],
[-97.858, 42.865],
[-97.238, 42.853],
[-97.131, 42.772],
[-96.698, 42.659],
[-96.611, 42.506],
[-96.446, 42.491],
[-96.622, 42.779],
[-96.439, 43.114],
[-96.522, 43.221],
[-96.453, 43.5],
[-96.458, 45.308],
[-96.711, 45.437],
[-96.826, 45.654],
[-96.587, 45.816],
[-96.564, 45.935],
[-97.777, 45.935],
[-99.49, 45.94],
[-100.762, 45.944],
[-102.088, 45.945],
[-104.045, 45.945],
[-104.058, 44.997],
],
],
},
properties: { name: "South Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 37],
[-103.002, 36.5],
[-101.624, 36.5],
[-100, 36.5],
[-100, 35.619],
[-100, 34.561],
[-99.696, 34.381],
[-99.275, 34.387],
[-99.19, 34.214],
[-98.737, 34.131],
[-98.364, 34.157],
[-98.099, 34.104],
[-97.866, 33.849],
[-97.672, 33.991],
[-97.444, 33.824],
[-97.206, 33.81],
[-96.952, 33.945],
[-96.851, 33.847],
[-96.593, 33.831],
[-96.363, 33.694],
[-96.152, 33.832],
[-95.557, 33.927],
[-95.283, 33.878],
[-95.226, 33.962],
[-94.842, 33.739],
[-94.486, 33.638],
[-94.432, 35.37],
[-94.618, 36.499],
[-94.618, 36.999],
[-95.787, 36.999],
[-97.462, 36.999],
[-99.129, 36.999],
[-100.856, 36.999],
[-102.042, 36.993],
[-103.002, 37],
],
],
},
properties: { name: "Oklahoma" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-106.264, 44.994],
[-108.621, 45],
[-111.044, 45.001],
[-111.049, 44.474],
[-111.045, 43.316],
[-111.047, 42.002],
[-111.047, 40.998],
[-109.05, 41.001],
[-107.367, 41.003],
[-106.191, 40.998],
[-104.855, 40.998],
[-104.053, 41.001],
[-104.053, 42.25],
[-104.053, 43.001],
[-104.055, 44.25],
[-104.058, 44.997],
],
],
},
properties: { name: "Wyoming" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-82.594, 38.422],
[-82.626, 38.135],
[-82.296, 37.686],
[-81.968, 37.538],
[-81.85, 37.285],
[-81.561, 37.207],
[-81.362, 37.338],
[-81.225, 37.235],
[-80.919, 37.306],
[-80.545, 37.475],
[-80.292, 37.537],
[-80.292, 37.684],
[-79.788, 38.273],
[-79.649, 38.592],
[-79.298, 38.416],
[-78.999, 38.84],
[-78.773, 38.894],
[-78.414, 39.158],
[-78.347, 39.466],
[-77.828, 39.132],
[-77.72, 39.321],
[-77.83, 39.587],
[-78.082, 39.671],
[-78.383, 39.622],
[-78.461, 39.526],
[-78.707, 39.556],
[-79.091, 39.472],
[-79.487, 39.206],
[-79.477, 39.721],
[-80.519, 39.721],
[-80.519, 40.639],
[-80.668, 40.582],
[-80.607, 40.304],
[-80.803, 39.919],
[-80.83, 39.712],
[-81.129, 39.449],
[-81.348, 39.346],
[-81.456, 39.409],
[-81.678, 39.274],
[-81.898, 38.93],
[-82.007, 39.03],
[-82.209, 38.803],
[-82.175, 38.608],
[-82.324, 38.449],
[-82.594, 38.422],
],
],
},
properties: { name: "West Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.084, 45.305],
[-71.037, 44.736],
[-70.973, 43.57],
[-70.984, 43.376],
[-70.704, 43.06],
[-70.554, 43.322],
[-70.416, 43.361],
[-70.168, 43.675],
[-69.916, 43.775],
[-69.321, 43.857],
[-69.077, 43.974],
[-68.439, 44.116],
[-68.126, 44.387],
[-67.855, 44.419],
[-67.449, 44.6],
[-67.293, 44.599],
[-66.95, 44.817],
[-67.112, 45.112],
[-67.48, 45.268],
[-67.417, 45.502],
[-67.803, 45.678],
[-67.78, 45.938],
[-67.79, 47.066],
[-68.204, 47.34],
[-68.362, 47.356],
[-68.901, 47.179],
[-69.04, 47.245],
[-69.039, 47.422],
[-69.22, 47.457],
[-69.997, 46.695],
[-70.054, 46.429],
[-70.291, 46.186],
[-70.259, 45.891],
[-70.781, 45.431],
[-71.084, 45.305],
],
],
},
properties: { name: "Maine" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.501, 45.013],
[-71.627, 44.747],
[-71.58, 44.502],
[-71.819, 44.353],
[-72.046, 44.292],
[-72.037, 44.103],
[-72.183, 43.808],
[-72.379, 43.574],
[-72.445, 43.004],
[-72.54, 42.805],
[-72.459, 42.727],
[-71.294, 42.697],
[-71.15, 42.815],
[-70.817, 42.872],
[-70.704, 43.06],
[-70.984, 43.376],
[-70.973, 43.57],
[-71.037, 44.736],
[-71.084, 45.305],
[-71.284, 45.302],
[-71.501, 45.013],
],
],
},
properties: { name: "New Hampshire" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.72, 32.719],
[-114.814, 32.494],
[-113.751, 32.169],
[-112.365, 31.741],
[-111.075, 31.332],
[-109.05, 31.333],
[-109.047, 32.778],
[-109.046, 33.875],
[-109.046, 34.96],
[-109.046, 36.117],
[-109.045, 36.999],
[-110.001, 36.998],
[-111.278, 37],
[-112.966, 37],
[-114.051, 37],
[-114.047, 36.194],
[-114.152, 36.025],
[-114.372, 36.143],
[-114.736, 36.104],
[-114.664, 35.449],
[-114.573, 35.139],
[-114.633, 35.002],
[-114.634, 34.873],
[-114.465, 34.691],
[-114.335, 34.45],
[-114.139, 34.26],
[-114.428, 34.093],
[-114.535, 33.928],
[-114.525, 33.552],
[-114.707, 33.377],
[-114.671, 33.038],
[-114.511, 33.023],
[-114.469, 32.845],
[-114.72, 32.719],
],
],
},
properties: { name: "Arizona" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.861, 41.32],
[-71.483, 41.372],
[-71.429, 41.454],
[-71.121, 41.497],
[-71.133, 41.66],
[-71.329, 41.783],
[-71.381, 42.019],
[-71.799, 42.008],
[-71.798, 41.417],
[-71.861, 41.32],
],
],
},
properties: { name: "Rhode Island" },
},
],
};
To colour the shapes based on the magnitude of the data, use colorKey.
{
series: [
{
type: 'map-shape',
idKey: 'name',
colorKey: 'gdp',
},
],
}In this configuration:
colorKeyis set to 'gdp', which supplies numerical values for the Colour Scale.
See the Colour Scale page for more details about customising colours, discrete bins, and the Gradient Legend.
Labels Copy Link
import {
AgChartOptions,
AgCharts,
AnimationModule,
ContextMenuModule,
CrosshairModule,
GradientLegendModule,
MapShapeSeriesModule,
ModuleRegistry,
} from "ag-charts-enterprise";
import { DataType, data } from "./data";
import { topology } from "./topology";
const numberFormatter = new Intl.NumberFormat("en-US", {
style: "currency",
currency: "USD",
useGrouping: true,
});
ModuleRegistry.registerModules([
AnimationModule,
CrosshairModule,
GradientLegendModule,
MapShapeSeriesModule,
ContextMenuModule,
]);
const options: AgChartOptions<DataType> = {
title: {
text: "GDP by State",
},
data,
topology,
series: [
{
type: "map-shape",
idKey: "name",
labelKey: "code",
colorKey: "gdp",
tooltip: {
renderer: ({ datum }) => ({
data: [
{ label: "GDP", value: numberFormatter.format(datum.gdp) },
{ label: "Code", value: datum.code },
],
}),
},
},
],
gradientLegend: {
enabled: true,
scale: {
label: {
fontSize: 9,
formatter: ({ value }) => `$${Math.floor(+value / 1e6)}T`,
},
},
},
};
options.container = document.getElementById("myChart");
const chart = AgCharts.create(options);
export interface DataType {
name: string;
code: string;
gdp: number;
}
export const data: DataType[] = [
{ name: "Alabama", code: "AL", gdp: 302289 },
{ name: "Arizona", code: "AZ", gdp: 512504 },
{ name: "Arkansas", code: "AR", gdp: 176878 },
{ name: "California", code: "CA", gdp: 3898158 },
{ name: "Colorado", code: "CO", gdp: 525868 },
{ name: "Connecticut", code: "CT", gdp: 343186 },
{ name: "Delaware", code: "DE", gdp: 94116 },
{ name: "Florida", code: "FL", gdp: 1595347 },
{ name: "Georgia", code: "GA", gdp: 811294 },
{ name: "Idaho", code: "ID", gdp: 119810 },
{ name: "Illinois", code: "IL", gdp: 1092246 },
{ name: "Indiana", code: "IN", gdp: 501267 },
{ name: "Iowa", code: "IA", gdp: 250819 },
{ name: "Kansas", code: "KS", gdp: 230388 },
{ name: "Kentucky", code: "KY", gdp: 280449 },
{ name: "Louisiana", code: "LA", gdp: 313334 },
{ name: "Maine", code: "ME", gdp: 91818 },
{ name: "Maryland", code: "MD", gdp: 516455 },
{ name: "Massachusetts", code: "MA", gdp: 741343 },
{ name: "Michigan", code: "MI", gdp: 664452 },
{ name: "Minnesota", code: "MN", gdp: 475590 },
{ name: "Mississippi", code: "MS", gdp: 146725 },
{ name: "Missouri", code: "MO", gdp: 425203 },
{ name: "Montana", code: "MT", gdp: 71088 },
{ name: "Nebraska", code: "NE", gdp: 181127 },
{ name: "Nevada", code: "NV", gdp: 241432 },
{ name: "New Hampshire", code: "NH", gdp: 112065 },
{ name: "New Jersey", code: "NJ", gdp: 806890 },
{ name: "New Mexico", code: "NM", gdp: 131535 },
{ name: "New York", code: "NY", gdp: 2168133 },
{ name: "North Carolina", code: "NC", gdp: 773365 },
{ name: "North Dakota", code: "ND", gdp: 74538 },
{ name: "Ohio", code: "OH", gdp: 880871 },
{ name: "Oklahoma", code: "OK", gdp: 256974 },
{ name: "Oregon", code: "OR", gdp: 319525 },
{ name: "Pennsylvania", code: "PA", gdp: 974558 },
{ name: "Rhode Island", code: "RI", gdp: 77948 },
{ name: "South Carolina", code: "SC", gdp: 325373 },
{ name: "South Dakota", code: "SD", gdp: 73005 },
{ name: "Tennessee", code: "TN", gdp: 527938 },
{ name: "Texas", code: "TX", gdp: 2596144 },
{ name: "Utah", code: "UT", gdp: 275048 },
{ name: "Vermont", code: "VT", gdp: 43384 },
{ name: "Virginia", code: "VA", gdp: 712900 },
{ name: "Washington", code: "WA", gdp: 808344 },
{ name: "West Virginia", code: "WV", gdp: 100240 },
{ name: "Wisconsin", code: "WI", gdp: 417135 },
{ name: "Wyoming", code: "WY", gdp: 50743 },
];
// https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html
export const topology = {
type: "FeatureCollection",
features: [
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.477, 39.721],
[-79.487, 39.206],
[-79.091, 39.472],
[-78.707, 39.556],
[-78.461, 39.526],
[-78.383, 39.622],
[-78.082, 39.671],
[-77.83, 39.587],
[-77.72, 39.321],
[-77.46, 39.219],
[-77.463, 39.076],
[-77.12, 38.934],
[-77.039, 38.792],
[-77.13, 38.635],
[-76.864, 38.269],
[-76.591, 38.214],
[-76.393, 38.24],
[-76.393, 38.389],
[-76.518, 38.539],
[-76.559, 38.756],
[-76.45, 38.941],
[-76.425, 39.206],
[-76.233, 39.091],
[-76.362, 38.939],
[-76.336, 38.492],
[-76.218, 38.306],
[-75.889, 38.241],
[-75.899, 37.975],
[-75.67, 37.951],
[-75.242, 38.027],
[-75.049, 38.451],
[-75.694, 38.46],
[-75.789, 39.722],
[-77.469, 39.72],
[-79.477, 39.721],
],
],
},
properties: { name: "Maryland" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-96.453, 43.5],
[-96.522, 43.221],
[-96.439, 43.114],
[-96.622, 42.779],
[-96.446, 42.491],
[-96.348, 42.167],
[-96.065, 41.793],
[-96.118, 41.613],
[-95.923, 41.456],
[-95.811, 40.887],
[-95.889, 40.736],
[-95.766, 40.585],
[-94.534, 40.571],
[-93.136, 40.583],
[-91.729, 40.614],
[-91.419, 40.378],
[-91.34, 40.613],
[-91.121, 40.673],
[-90.952, 40.954],
[-90.957, 41.111],
[-91.114, 41.25],
[-91.028, 41.424],
[-90.701, 41.455],
[-90.34, 41.599],
[-90.181, 41.812],
[-90.161, 42.106],
[-90.431, 42.278],
[-90.643, 42.508],
[-90.701, 42.626],
[-90.942, 42.684],
[-91.138, 42.904],
[-91.175, 43.135],
[-91.058, 43.254],
[-91.218, 43.501],
[-92.449, 43.5],
[-93.971, 43.5],
[-94.855, 43.501],
[-96.453, 43.5],
],
],
},
properties: { name: "Iowa" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.57, 39.839],
[-75.789, 39.722],
[-75.694, 38.46],
[-75.049, 38.451],
[-75.089, 38.797],
[-75.304, 38.913],
[-75.408, 39.265],
[-75.528, 39.498],
[-75.559, 39.63],
[-75.415, 39.802],
],
],
},
properties: { name: "Delaware" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-84.806, 41.696],
[-84.804, 40.353],
[-84.82, 39.105],
[-84.462, 39.122],
[-84.327, 39.027],
[-84.213, 38.806],
[-83.852, 38.751],
[-83.679, 38.63],
[-83.533, 38.702],
[-83.287, 38.599],
[-82.889, 38.756],
[-82.851, 38.604],
[-82.594, 38.422],
[-82.324, 38.449],
[-82.175, 38.608],
[-82.209, 38.803],
[-82.007, 39.03],
[-81.898, 38.93],
[-81.678, 39.274],
[-81.456, 39.409],
[-81.348, 39.346],
[-81.129, 39.449],
[-80.83, 39.712],
[-80.803, 39.919],
[-80.607, 40.304],
[-80.668, 40.582],
[-80.519, 40.639],
[-80.519, 41.978],
[-81.287, 41.76],
[-81.739, 41.489],
[-81.995, 41.514],
[-82.461, 41.386],
[-82.834, 41.588],
[-83.067, 41.595],
[-83.454, 41.733],
[-84.806, 41.696],
],
],
},
properties: { name: "Ohio" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-80.519, 41.978],
[-80.519, 40.639],
[-80.519, 39.721],
[-79.477, 39.721],
[-77.469, 39.72],
[-75.789, 39.722],
[-75.57, 39.839],
[-75.415, 39.802],
[-74.722, 40.154],
[-75.187, 40.569],
[-75.133, 40.98],
[-74.695, 41.357],
[-74.982, 41.496],
[-75.113, 41.841],
[-75.341, 41.993],
[-76.462, 41.999],
[-77.832, 41.999],
[-79.761, 41.999],
[-79.762, 42.27],
[-80.519, 41.978],
],
],
},
properties: { name: "Pennsylvania" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.053, 43.001],
[-104.053, 42.25],
[-104.053, 41.001],
[-102.052, 41.002],
[-102.052, 40.003],
[-101.06, 40.002],
[-99.813, 40.001],
[-98.076, 40.002],
[-96.47, 40.001],
[-95.308, 40],
[-95.473, 40.236],
[-95.654, 40.323],
[-95.766, 40.585],
[-95.889, 40.736],
[-95.811, 40.887],
[-95.923, 41.456],
[-96.118, 41.613],
[-96.065, 41.793],
[-96.348, 42.167],
[-96.446, 42.491],
[-96.611, 42.506],
[-96.698, 42.659],
[-97.131, 42.772],
[-97.238, 42.853],
[-97.858, 42.865],
[-97.95, 42.77],
[-98.435, 42.929],
[-98.499, 42.999],
[-100.198, 42.998],
[-102.082, 42.999],
[-104.053, 43.001],
],
],
},
properties: { name: "Nebraska" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-123.237, 48.683],
[-123.141, 48.505],
[-122.874, 48.418],
[-122.743, 48.662],
[-122.938, 48.79],
[-123.237, 48.683],
],
],
[
[
[-117.032, 48.999],
[-118.837, 49],
[-120.001, 48.999],
[-121.751, 48.997],
[-122.758, 49.002],
[-122.643, 48.588],
[-122.76, 48.143],
[-123.004, 48.091],
[-124.051, 48.178],
[-124.653, 48.391],
[-124.722, 48.153],
[-124.672, 47.964],
[-124.412, 47.691],
[-124.319, 47.356],
[-124.236, 47.287],
[-124.081, 46.735],
[-124.081, 46.267],
[-123.548, 46.259],
[-123.28, 46.145],
[-123.116, 46.185],
[-122.814, 45.961],
[-122.775, 45.68],
[-122.263, 45.544],
[-121.811, 45.707],
[-121.533, 45.727],
[-121.085, 45.648],
[-120.591, 45.747],
[-120.211, 45.726],
[-119.966, 45.824],
[-119.126, 45.933],
[-118.987, 46],
[-116.916, 45.995],
[-117.036, 46.41],
[-117.042, 47.735],
[-117.032, 48.999],
],
],
],
},
properties: { name: "Washington" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-88.2, 34.996],
[-88.098, 34.892],
[-88.317, 33.184],
[-88.469, 31.933],
[-88.395, 30.369],
[-88.136, 30.321],
[-88.062, 30.645],
[-87.797, 30.324],
[-87.518, 30.28],
[-87.452, 30.344],
[-87.4, 30.657],
[-87.635, 30.866],
[-87.599, 30.997],
[-85.894, 30.993],
[-85.002, 31.001],
[-85.108, 31.186],
[-85.042, 31.545],
[-85.142, 31.839],
[-85.059, 32.136],
[-84.892, 32.263],
[-85.184, 32.861],
[-85.429, 34.125],
[-85.605, 34.985],
[-86.784, 34.992],
[-88.2, 34.996],
],
],
},
properties: { name: "Alabama" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.618, 36.499],
[-94.432, 35.37],
[-94.486, 33.638],
[-94.354, 33.556],
[-94.043, 33.551],
[-94.043, 33.019],
[-92.223, 33.009],
[-91.166, 33.004],
[-91.069, 33.233],
[-91.216, 33.529],
[-91.027, 33.764],
[-91.061, 33.878],
[-90.895, 34.224],
[-90.575, 34.415],
[-90.587, 34.616],
[-90.474, 34.789],
[-90.25, 34.907],
[-90.309, 34.996],
[-90.091, 35.118],
[-90.122, 35.305],
[-89.958, 35.542],
[-89.957, 35.695],
[-89.723, 35.809],
[-89.733, 36.001],
[-90.369, 35.996],
[-90.064, 36.303],
[-90.154, 36.495],
[-91.127, 36.498],
[-92.35, 36.498],
[-93.959, 36.499],
[-94.618, 36.499],
],
],
},
properties: { name: "Arkansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.045, 36.999],
[-109.046, 36.117],
[-109.046, 34.96],
[-109.046, 33.875],
[-109.047, 32.778],
[-109.05, 31.333],
[-108.209, 31.333],
[-108.208, 31.784],
[-106.528, 31.783],
[-106.618, 32],
[-104.644, 32],
[-103.064, 32.001],
[-103.065, 32.849],
[-103.044, 34.079],
[-103.043, 35.183],
[-103.042, 36.5],
[-103.002, 36.5],
[-103.002, 37],
[-104.732, 36.993],
[-106.006, 36.995],
[-108.001, 37],
[-109.045, 36.999],
],
],
},
properties: { name: "New Mexico" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 36.5],
[-103.042, 36.5],
[-103.043, 35.183],
[-103.044, 34.079],
[-103.065, 32.849],
[-103.064, 32.001],
[-104.644, 32],
[-106.618, 32],
[-106.528, 31.783],
[-106.418, 31.752],
[-106.176, 31.456],
[-105.954, 31.365],
[-105.773, 31.167],
[-105.315, 30.817],
[-105.001, 30.673],
[-104.86, 30.39],
[-104.703, 30.212],
[-104.672, 29.911],
[-104.54, 29.676],
[-104.144, 29.383],
[-103.789, 29.258],
[-103.281, 28.982],
[-102.871, 29.242],
[-102.809, 29.522],
[-102.677, 29.738],
[-102.393, 29.766],
[-102.301, 29.878],
[-101.966, 29.807],
[-101.401, 29.738],
[-101.255, 29.52],
[-101.06, 29.459],
[-100.675, 29.1],
[-100.5, 28.662],
[-100.397, 28.576],
[-100.268, 28.25],
[-99.932, 27.968],
[-99.845, 27.779],
[-99.557, 27.614],
[-99.43, 27.159],
[-99.447, 27.026],
[-99.269, 26.843],
[-99.111, 26.426],
[-98.807, 26.369],
[-98.654, 26.236],
[-98.443, 26.199],
[-98.197, 26.056],
[-97.795, 26.055],
[-97.423, 25.84],
[-97.146, 25.971],
[-97.197, 26.306],
[-97.323, 26.702],
[-97.379, 27.06],
[-97.296, 27.427],
[-97.141, 27.717],
[-96.886, 28.031],
[-96.194, 28.502],
[-95.382, 28.866],
[-95.026, 29.148],
[-94.723, 29.331],
[-94.595, 29.468],
[-94.057, 29.671],
[-93.838, 29.691],
[-93.929, 29.803],
[-93.704, 30.054],
[-93.729, 30.545],
[-93.531, 30.925],
[-93.535, 31.186],
[-93.835, 31.586],
[-93.803, 31.701],
[-94.042, 31.992],
[-94.043, 33.019],
[-94.043, 33.551],
[-94.354, 33.556],
[-94.486, 33.638],
[-94.842, 33.739],
[-95.226, 33.962],
[-95.283, 33.878],
[-95.557, 33.927],
[-96.152, 33.832],
[-96.363, 33.694],
[-96.593, 33.831],
[-96.851, 33.847],
[-96.952, 33.945],
[-97.206, 33.81],
[-97.444, 33.824],
[-97.672, 33.991],
[-97.866, 33.849],
[-98.099, 34.104],
[-98.364, 34.157],
[-98.737, 34.131],
[-99.19, 34.214],
[-99.275, 34.387],
[-99.696, 34.381],
[-100, 34.561],
[-100, 35.619],
[-100, 36.5],
[-101.624, 36.5],
[-103.002, 36.5],
],
],
},
properties: { name: "Texas" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-120.368, 34.076],
[-120.122, 33.896],
[-120.055, 34.038],
[-120.368, 34.076],
],
],
[
[
[-124.212, 41.998],
[-124.063, 41.44],
[-124.164, 41.139],
[-124.118, 40.989],
[-124.41, 40.438],
[-124.363, 40.261],
[-124.087, 40.078],
[-123.852, 39.832],
[-123.766, 39.553],
[-123.825, 39.361],
[-123.691, 39.021],
[-123.711, 38.913],
[-123.166, 38.475],
[-123.004, 38.297],
[-122.94, 38.032],
[-122.537, 37.83],
[-122.394, 38.143],
[-122.263, 38.051],
[-122.313, 37.777],
[-122.163, 37.668],
[-122.517, 37.521],
[-122.397, 37.187],
[-122.106, 36.956],
[-121.906, 36.969],
[-121.792, 36.815],
[-121.97, 36.583],
[-121.888, 36.303],
[-121.68, 36.166],
[-121.272, 35.667],
[-121.003, 35.461],
[-120.897, 35.248],
[-120.636, 35.124],
[-120.61, 34.858],
[-120.646, 34.581],
[-120.451, 34.447],
[-120.141, 34.473],
[-119.874, 34.409],
[-119.617, 34.421],
[-119.27, 34.253],
[-119.11, 34.095],
[-118.805, 34.001],
[-118.52, 34.028],
[-118.397, 33.736],
[-118.133, 33.753],
[-117.646, 33.441],
[-117.446, 33.269],
[-117.281, 33.012],
[-117.282, 32.84],
[-117.125, 32.534],
[-115.465, 32.667],
[-114.72, 32.719],
[-114.469, 32.845],
[-114.511, 33.023],
[-114.671, 33.038],
[-114.707, 33.377],
[-114.525, 33.552],
[-114.535, 33.928],
[-114.428, 34.093],
[-114.139, 34.26],
[-114.335, 34.45],
[-114.465, 34.691],
[-114.634, 34.873],
[-114.633, 35.002],
[-115.648, 35.809],
[-116.488, 36.459],
[-117.681, 37.353],
[-118.95, 38.269],
[-120.001, 39],
[-119.998, 39.957],
[-120, 41.184],
[-119.999, 41.995],
[-121.035, 41.993],
[-122.501, 42.008],
[-124.212, 41.998],
],
],
],
},
properties: { name: "California" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.133, 36.982],
[-89.165, 36.662],
[-89.539, 36.498],
[-88.05, 36.5],
[-88.071, 36.678],
[-87.853, 36.633],
[-86.508, 36.652],
[-85.874, 36.624],
[-84.785, 36.603],
[-83.675, 36.601],
[-83.136, 36.743],
[-82.895, 36.882],
[-82.726, 37.112],
[-82.355, 37.265],
[-81.968, 37.538],
[-82.296, 37.686],
[-82.626, 38.135],
[-82.594, 38.422],
[-82.851, 38.604],
[-82.889, 38.756],
[-83.287, 38.599],
[-83.533, 38.702],
[-83.679, 38.63],
[-83.852, 38.751],
[-84.213, 38.806],
[-84.327, 39.027],
[-84.462, 39.122],
[-84.82, 39.105],
[-84.786, 38.882],
[-85.187, 38.688],
[-85.449, 38.713],
[-85.416, 38.546],
[-85.816, 38.283],
[-85.922, 38.029],
[-86.206, 38.022],
[-86.321, 38.147],
[-86.722, 37.893],
[-86.811, 37.997],
[-87.18, 37.841],
[-87.419, 37.945],
[-87.626, 37.852],
[-87.873, 37.921],
[-88.028, 37.799],
[-88.16, 37.654],
[-88.062, 37.488],
[-88.466, 37.401],
[-88.476, 37.068],
[-88.932, 37.228],
[-89.168, 37.074],
[-89.133, 36.982],
],
],
},
properties: { name: "Kentucky" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-85.605, 34.985],
[-85.429, 34.125],
[-85.184, 32.861],
[-84.892, 32.263],
[-85.059, 32.136],
[-85.142, 31.839],
[-85.042, 31.545],
[-85.108, 31.186],
[-85.002, 31.001],
[-84.865, 30.712],
[-83.131, 30.624],
[-82.219, 30.564],
[-82.18, 30.369],
[-82.041, 30.37],
[-82.033, 30.751],
[-81.943, 30.827],
[-81.444, 30.71],
[-81.402, 31.125],
[-81.305, 31.206],
[-81.131, 31.723],
[-80.886, 32.035],
[-81.113, 32.113],
[-81.195, 32.465],
[-81.397, 32.606],
[-81.502, 33.015],
[-81.755, 33.152],
[-81.933, 33.344],
[-81.926, 33.463],
[-82.162, 33.611],
[-82.324, 33.82],
[-82.557, 33.945],
[-82.715, 34.148],
[-82.874, 34.472],
[-83.048, 34.493],
[-83.339, 34.682],
[-83.324, 34.79],
[-83.109, 35.001],
[-84.322, 34.988],
[-85.605, 34.985],
],
],
},
properties: { name: "Georgia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-92.015, 46.706],
[-92.292, 46.663],
[-92.294, 46.074],
[-92.721, 45.884],
[-92.87, 45.715],
[-92.647, 45.438],
[-92.762, 45.285],
[-92.751, 44.942],
[-92.805, 44.768],
[-92.549, 44.578],
[-91.964, 44.362],
[-91.893, 44.231],
[-91.441, 44.002],
[-91.244, 43.773],
[-91.218, 43.501],
[-91.058, 43.254],
[-91.175, 43.135],
[-91.138, 42.904],
[-90.942, 42.684],
[-90.701, 42.626],
[-90.643, 42.508],
[-88.707, 42.494],
[-87.8, 42.492],
[-87.767, 42.785],
[-87.896, 43.016],
[-87.889, 43.308],
[-87.706, 43.68],
[-87.736, 43.874],
[-87.447, 44.586],
[-87.063, 45.079],
[-87.265, 45.081],
[-87.581, 44.852],
[-87.775, 44.639],
[-87.983, 44.72],
[-87.813, 44.954],
[-87.59, 45.095],
[-87.863, 45.353],
[-87.781, 45.674],
[-88.135, 45.822],
[-88.115, 45.922],
[-88.527, 46.021],
[-88.812, 46.022],
[-89.092, 46.139],
[-90.12, 46.337],
[-90.215, 46.5],
[-90.418, 46.566],
[-90.755, 46.646],
[-90.881, 46.74],
[-90.745, 46.894],
[-90.924, 47.002],
[-91.168, 46.845],
[-91.82, 46.69],
[-92.015, 46.706],
],
],
},
properties: { name: "Wisconsin" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-123.548, 46.259],
[-123.959, 46.142],
[-123.939, 45.709],
[-123.975, 45.145],
[-124.074, 44.798],
[-124.065, 44.633],
[-124.15, 43.911],
[-124.234, 43.557],
[-124.552, 42.841],
[-124.413, 42.658],
[-124.411, 42.251],
[-124.212, 41.998],
[-122.501, 42.008],
[-121.035, 41.993],
[-119.999, 41.995],
[-118.776, 41.993],
[-117.026, 42],
[-117.024, 43.824],
[-116.896, 44.154],
[-117.243, 44.391],
[-117.062, 44.727],
[-116.834, 44.929],
[-116.675, 45.314],
[-116.464, 45.616],
[-116.593, 45.779],
[-116.788, 45.84],
[-116.916, 45.995],
[-118.987, 46],
[-119.126, 45.933],
[-119.966, 45.824],
[-120.211, 45.726],
[-120.591, 45.747],
[-121.085, 45.648],
[-121.533, 45.727],
[-121.811, 45.707],
[-122.263, 45.544],
[-122.775, 45.68],
[-122.814, 45.961],
[-123.116, 46.185],
[-123.28, 46.145],
[-123.548, 46.259],
],
],
},
properties: { name: "Oregon" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-95.766, 40.585],
[-95.654, 40.323],
[-95.473, 40.236],
[-95.308, 40],
[-94.86, 39.75],
[-95.114, 39.554],
[-94.8, 39.206],
[-94.607, 39.113],
[-94.613, 38.238],
[-94.618, 36.999],
[-94.618, 36.499],
[-93.959, 36.499],
[-92.35, 36.498],
[-91.127, 36.498],
[-90.154, 36.495],
[-90.064, 36.303],
[-90.369, 35.996],
[-89.733, 36.001],
[-89.523, 36.345],
[-89.539, 36.498],
[-89.165, 36.662],
[-89.133, 36.982],
[-89.359, 37.043],
[-89.495, 37.325],
[-89.522, 37.696],
[-90.219, 38.094],
[-90.373, 38.323],
[-90.185, 38.612],
[-90.113, 38.849],
[-90.468, 38.962],
[-90.657, 38.92],
[-90.73, 39.256],
[-91.038, 39.448],
[-91.368, 39.729],
[-91.512, 40.17],
[-91.419, 40.378],
[-91.729, 40.614],
[-93.136, 40.583],
[-94.534, 40.571],
[-95.766, 40.585],
],
],
},
properties: { name: "Missouri" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-75.67, 37.951],
[-75.941, 37.564],
[-76.023, 37.289],
[-75.817, 37.193],
[-75.658, 37.452],
[-75.552, 37.748],
[-75.242, 38.027],
[-75.67, 37.951],
],
],
[
[
[-81.968, 37.538],
[-82.355, 37.265],
[-82.726, 37.112],
[-82.895, 36.882],
[-83.136, 36.743],
[-83.675, 36.601],
[-81.678, 36.588],
[-80.295, 36.544],
[-78.51, 36.541],
[-76.917, 36.546],
[-75.867, 36.551],
[-75.996, 36.922],
[-76.268, 36.965],
[-76.394, 37.225],
[-76.25, 37.422],
[-76.329, 37.671],
[-76.237, 37.889],
[-76.614, 38.149],
[-76.962, 38.214],
[-77.048, 38.36],
[-77.265, 38.333],
[-77.323, 38.467],
[-77.13, 38.635],
[-77.039, 38.792],
[-77.12, 38.934],
[-77.463, 39.076],
[-77.46, 39.219],
[-77.72, 39.321],
[-77.828, 39.132],
[-78.347, 39.466],
[-78.414, 39.158],
[-78.773, 38.894],
[-78.999, 38.84],
[-79.298, 38.416],
[-79.649, 38.592],
[-79.788, 38.273],
[-80.292, 37.684],
[-80.292, 37.537],
[-80.545, 37.475],
[-80.919, 37.306],
[-81.225, 37.235],
[-81.362, 37.338],
[-81.561, 37.207],
[-81.85, 37.285],
[-81.968, 37.538],
],
],
],
},
properties: { name: "Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.733, 36.001],
[-89.723, 35.809],
[-89.957, 35.695],
[-89.958, 35.542],
[-90.122, 35.305],
[-90.091, 35.118],
[-90.309, 34.996],
[-89.435, 34.994],
[-88.2, 34.996],
[-86.784, 34.992],
[-85.605, 34.985],
[-84.322, 34.988],
[-84.283, 35.227],
[-84.098, 35.247],
[-84.022, 35.407],
[-83.772, 35.562],
[-83.498, 35.563],
[-83.162, 35.763],
[-82.978, 35.783],
[-82.779, 35.993],
[-82.211, 36.159],
[-82.029, 36.124],
[-81.908, 36.302],
[-81.734, 36.413],
[-81.678, 36.588],
[-83.675, 36.601],
[-84.785, 36.603],
[-85.874, 36.624],
[-86.508, 36.652],
[-87.853, 36.633],
[-88.071, 36.678],
[-88.05, 36.5],
[-89.539, 36.498],
[-89.523, 36.345],
[-89.733, 36.001],
],
],
},
properties: { name: "Tennessee" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.043, 33.019],
[-94.042, 31.992],
[-93.803, 31.701],
[-93.835, 31.586],
[-93.535, 31.186],
[-93.531, 30.925],
[-93.729, 30.545],
[-93.704, 30.054],
[-93.929, 29.803],
[-93.838, 29.691],
[-93.538, 29.763],
[-93.177, 29.77],
[-92.684, 29.605],
[-92.323, 29.531],
[-92.065, 29.586],
[-91.822, 29.474],
[-91.711, 29.569],
[-91.394, 29.497],
[-91.279, 29.248],
[-90.942, 29.162],
[-90.868, 29.056],
[-90.224, 29.085],
[-89.843, 29.319],
[-89.483, 29.215],
[-89.361, 29.072],
[-89.149, 29.03],
[-89.014, 29.167],
[-89.2, 29.344],
[-89.482, 29.406],
[-89.602, 29.61],
[-89.404, 29.682],
[-89.236, 29.877],
[-89.186, 30.064],
[-89.445, 30.061],
[-89.702, 29.874],
[-89.845, 30.018],
[-89.525, 30.181],
[-89.608, 30.217],
[-89.836, 30.727],
[-89.728, 31.002],
[-90.759, 31],
[-91.56, 31.05],
[-91.644, 31.234],
[-91.536, 31.338],
[-91.36, 31.799],
[-91.035, 32.101],
[-90.921, 32.342],
[-91.053, 32.438],
[-91.114, 32.74],
[-91.072, 32.938],
[-91.166, 33.004],
[-92.223, 33.009],
[-94.043, 33.019],
],
],
},
properties: { name: "Louisiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.762, 42.27],
[-79.761, 41.999],
[-77.832, 41.999],
[-76.462, 41.999],
[-75.341, 41.993],
[-75.113, 41.841],
[-74.982, 41.496],
[-74.695, 41.357],
[-73.894, 40.997],
[-74.087, 40.652],
[-74.261, 40.502],
[-73.013, 40.68],
[-71.937, 41.006],
[-72.283, 41.068],
[-72.585, 40.998],
[-73.11, 40.972],
[-73.229, 40.905],
[-73.657, 40.985],
[-73.728, 41.101],
[-73.551, 41.295],
[-73.487, 42.05],
[-73.508, 42.086],
[-73.265, 42.746],
[-73.242, 43.535],
[-73.415, 43.658],
[-73.351, 43.77],
[-73.437, 44.043],
[-73.294, 44.441],
[-73.39, 44.62],
[-73.343, 45.011],
[-74.234, 44.992],
[-74.835, 45.015],
[-75.256, 44.858],
[-75.766, 44.516],
[-75.95, 44.349],
[-76.287, 44.204],
[-76.412, 43.926],
[-76.229, 43.804],
[-76.236, 43.529],
[-76.418, 43.521],
[-76.685, 43.353],
[-76.952, 43.271],
[-77.341, 43.281],
[-77.551, 43.236],
[-77.76, 43.341],
[-78.547, 43.37],
[-79.07, 43.262],
[-79.074, 43.078],
[-78.851, 42.792],
[-79.139, 42.564],
[-79.762, 42.27],
],
],
},
properties: { name: "New York" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-83.454, 41.733],
[-83.442, 41.809],
[-83.134, 42.088],
[-83.097, 42.29],
[-82.924, 42.352],
[-82.859, 42.542],
[-82.679, 42.522],
[-82.51, 42.637],
[-82.416, 43.006],
[-82.523, 43.225],
[-82.634, 43.831],
[-82.929, 44.069],
[-83.407, 43.92],
[-83.683, 43.591],
[-83.948, 43.735],
[-83.869, 43.961],
[-83.584, 44.057],
[-83.525, 44.262],
[-83.337, 44.333],
[-83.266, 45.027],
[-83.385, 45.274],
[-84.196, 45.621],
[-84.462, 45.652],
[-84.719, 45.778],
[-84.867, 45.752],
[-85.12, 45.569],
[-85.041, 45.437],
[-85.372, 45.271],
[-85.381, 45.046],
[-86.059, 44.911],
[-86.089, 44.741],
[-86.248, 44.699],
[-86.269, 44.345],
[-86.515, 44.058],
[-86.431, 43.841],
[-86.541, 43.645],
[-86.255, 43.083],
[-86.208, 42.763],
[-86.356, 42.254],
[-86.598, 41.918],
[-86.825, 41.76],
[-84.806, 41.76],
[-84.806, 41.696],
[-83.454, 41.733],
],
],
[
[
[-89.221, 47.908],
[-89.158, 47.824],
[-88.579, 48.041],
[-88.632, 48.148],
[-89.221, 47.908],
],
],
[
[
[-90.418, 46.566],
[-90.215, 46.5],
[-90.12, 46.337],
[-89.092, 46.139],
[-88.812, 46.022],
[-88.527, 46.021],
[-88.115, 45.922],
[-88.135, 45.822],
[-87.781, 45.674],
[-87.863, 45.353],
[-87.59, 45.095],
[-87.172, 45.662],
[-86.964, 45.673],
[-86.773, 45.811],
[-86.541, 45.708],
[-86.278, 45.942],
[-85.914, 45.919],
[-85.541, 46.08],
[-85.152, 46.051],
[-84.793, 45.859],
[-84.633, 45.951],
[-84.08, 45.971],
[-83.526, 45.919],
[-83.599, 46.09],
[-83.882, 46.042],
[-84.115, 46.174],
[-84.118, 46.518],
[-84.969, 46.476],
[-85.028, 46.675],
[-85.257, 46.753],
[-85.482, 46.68],
[-86.138, 46.673],
[-86.558, 46.487],
[-86.811, 46.45],
[-86.977, 46.527],
[-87.367, 46.507],
[-87.595, 46.783],
[-88.144, 46.967],
[-88.455, 46.923],
[-88.194, 47.209],
[-87.943, 47.336],
[-87.929, 47.479],
[-88.218, 47.449],
[-89.415, 46.844],
[-89.832, 46.804],
[-90.045, 46.668],
[-90.418, 46.566],
],
],
],
},
properties: { name: "Michigan" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.916, 45.995],
[-116.788, 45.84],
[-116.593, 45.779],
[-116.464, 45.616],
[-116.675, 45.314],
[-116.834, 44.929],
[-117.062, 44.727],
[-117.243, 44.391],
[-116.896, 44.154],
[-117.024, 43.824],
[-117.026, 42],
[-115.87, 41.997],
[-114.042, 41.994],
[-112.11, 41.998],
[-111.047, 42.002],
[-111.045, 43.316],
[-111.049, 44.474],
[-111.324, 44.724],
[-111.563, 44.555],
[-112.473, 44.48],
[-113.007, 44.472],
[-113.131, 44.765],
[-113.422, 44.843],
[-113.452, 45.059],
[-113.736, 45.325],
[-113.807, 45.602],
[-113.972, 45.701],
[-114.279, 45.481],
[-114.506, 45.559],
[-114.402, 45.961],
[-114.48, 46.03],
[-114.422, 46.387],
[-114.321, 46.647],
[-114.547, 46.644],
[-114.943, 46.868],
[-115.327, 47.256],
[-115.71, 47.418],
[-115.724, 47.697],
[-116.049, 48],
[-116.049, 49.001],
[-117.032, 48.999],
[-117.042, 47.735],
[-117.036, 46.41],
[-116.916, 45.995],
],
],
},
properties: { name: "Idaho" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-81.812, 24.569],
[-81.685, 24.559],
[-81.243, 24.674],
[-81.444, 24.813],
[-81.751, 24.654],
[-81.812, 24.569],
],
],
[
[
[-85.002, 31.001],
[-85.894, 30.993],
[-87.599, 30.997],
[-87.635, 30.866],
[-87.4, 30.657],
[-87.452, 30.344],
[-87.518, 30.28],
[-86.633, 30.396],
[-86.223, 30.344],
[-86, 30.271],
[-85.385, 29.921],
[-85.353, 29.66],
[-85.045, 29.587],
[-84.565, 29.81],
[-84.29, 30.057],
[-84.063, 30.101],
[-83.679, 29.919],
[-83.402, 29.523],
[-83.17, 29.29],
[-82.824, 29.099],
[-82.657, 28.545],
[-82.764, 28.244],
[-82.86, 28.174],
[-82.847, 27.854],
[-82.705, 27.625],
[-82.692, 27.437],
[-82.54, 27.254],
[-82.265, 26.757],
[-82.181, 26.476],
[-81.924, 26.437],
[-81.845, 26.328],
[-81.727, 25.907],
[-81.384, 25.777],
[-81.147, 25.408],
[-81.171, 25.246],
[-81.08, 25.119],
[-80.812, 25.186],
[-80.495, 25.2],
[-80.358, 25.153],
[-80.301, 25.613],
[-80.11, 25.818],
[-80.11, 26.087],
[-80.039, 26.569],
[-80.046, 26.859],
[-80.384, 27.74],
[-80.548, 28.049],
[-80.607, 28.336],
[-80.525, 28.459],
[-80.584, 28.598],
[-80.966, 29.148],
[-81.257, 29.785],
[-81.396, 30.34],
[-81.444, 30.71],
[-81.943, 30.827],
[-82.033, 30.751],
[-82.041, 30.37],
[-82.18, 30.369],
[-82.219, 30.564],
[-83.131, 30.624],
[-84.865, 30.712],
[-85.002, 31.001],
],
],
],
},
properties: { name: "Florida" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.419, 40.378],
[-91.512, 40.17],
[-91.368, 39.729],
[-91.038, 39.448],
[-90.73, 39.256],
[-90.657, 38.92],
[-90.468, 38.962],
[-90.113, 38.849],
[-90.185, 38.612],
[-90.373, 38.323],
[-90.219, 38.094],
[-89.522, 37.696],
[-89.495, 37.325],
[-89.359, 37.043],
[-89.133, 36.982],
[-89.168, 37.074],
[-88.932, 37.228],
[-88.476, 37.068],
[-88.466, 37.401],
[-88.062, 37.488],
[-88.16, 37.654],
[-88.028, 37.799],
[-88.031, 38.031],
[-87.499, 38.758],
[-87.625, 39.102],
[-87.532, 39.348],
[-87.526, 40.535],
[-87.524, 41.708],
[-87.682, 42.076],
[-87.835, 42.302],
[-87.8, 42.492],
[-88.707, 42.494],
[-90.643, 42.508],
[-90.431, 42.278],
[-90.161, 42.106],
[-90.181, 41.812],
[-90.34, 41.599],
[-90.701, 41.455],
[-91.028, 41.424],
[-91.114, 41.25],
[-90.957, 41.111],
[-90.952, 40.954],
[-91.121, 40.673],
[-91.34, 40.613],
[-91.419, 40.378],
],
],
},
properties: { name: "Illinois" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.049, 49.001],
[-116.049, 48],
[-115.724, 47.697],
[-115.71, 47.418],
[-115.327, 47.256],
[-114.943, 46.868],
[-114.547, 46.644],
[-114.321, 46.647],
[-114.422, 46.387],
[-114.48, 46.03],
[-114.402, 45.961],
[-114.506, 45.559],
[-114.279, 45.481],
[-113.972, 45.701],
[-113.807, 45.602],
[-113.736, 45.325],
[-113.452, 45.059],
[-113.422, 44.843],
[-113.131, 44.765],
[-113.007, 44.472],
[-112.473, 44.48],
[-111.563, 44.555],
[-111.324, 44.724],
[-111.049, 44.474],
[-111.044, 45.001],
[-108.621, 45],
[-106.264, 44.994],
[-104.058, 44.997],
[-104.045, 45.945],
[-104.042, 47.803],
[-104.049, 49],
[-106.051, 48.999],
[-107.441, 48.999],
[-109.001, 48.999],
[-111.501, 48.997],
[-113.693, 48.998],
[-116.049, 49.001],
],
],
},
properties: { name: "Montana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-97.229, 49.001],
[-97.1, 48.668],
[-97.147, 48.169],
[-96.854, 47.572],
[-96.791, 46.637],
[-96.601, 46.32],
[-96.564, 45.935],
[-96.587, 45.816],
[-96.826, 45.654],
[-96.711, 45.437],
[-96.458, 45.308],
[-96.453, 43.5],
[-94.855, 43.501],
[-93.971, 43.5],
[-92.449, 43.5],
[-91.218, 43.501],
[-91.244, 43.773],
[-91.441, 44.002],
[-91.893, 44.231],
[-91.964, 44.362],
[-92.549, 44.578],
[-92.805, 44.768],
[-92.751, 44.942],
[-92.762, 45.285],
[-92.647, 45.438],
[-92.87, 45.715],
[-92.721, 45.884],
[-92.294, 46.074],
[-92.292, 46.663],
[-92.015, 46.706],
[-92.062, 46.804],
[-91.457, 47.139],
[-90.868, 47.557],
[-90.537, 47.703],
[-89.974, 47.831],
[-89.868, 47.99],
[-90.136, 48.112],
[-90.704, 48.096],
[-90.844, 48.244],
[-91.25, 48.084],
[-91.543, 48.053],
[-91.715, 48.199],
[-91.981, 48.248],
[-92.955, 48.631],
[-93.207, 48.642],
[-93.468, 48.546],
[-93.815, 48.527],
[-93.844, 48.629],
[-94.447, 48.693],
[-94.694, 48.789],
[-94.816, 49.321],
[-95.153, 49.384],
[-95.154, 48.999],
[-97.229, 49.001],
],
],
},
properties: { name: "Minnesota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-87.524, 41.708],
[-87.526, 40.535],
[-87.532, 39.348],
[-87.625, 39.102],
[-87.499, 38.758],
[-88.031, 38.031],
[-88.028, 37.799],
[-87.873, 37.921],
[-87.626, 37.852],
[-87.419, 37.945],
[-87.18, 37.841],
[-86.811, 37.997],
[-86.722, 37.893],
[-86.321, 38.147],
[-86.206, 38.022],
[-85.922, 38.029],
[-85.816, 38.283],
[-85.416, 38.546],
[-85.449, 38.713],
[-85.187, 38.688],
[-84.786, 38.882],
[-84.82, 39.105],
[-84.804, 40.353],
[-84.806, 41.696],
[-84.806, 41.76],
[-86.825, 41.76],
[-87.262, 41.62],
[-87.524, 41.708],
],
],
},
properties: { name: "Indiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.265, 42.746],
[-73.508, 42.086],
[-73.487, 42.05],
[-71.799, 42.008],
[-71.381, 42.019],
[-71.329, 41.783],
[-71.133, 41.66],
[-71.121, 41.497],
[-70.91, 41.577],
[-70.734, 41.486],
[-70.322, 41.631],
[-70.662, 41.961],
[-70.731, 42.211],
[-70.975, 42.356],
[-70.655, 42.582],
[-70.817, 42.872],
[-71.15, 42.815],
[-71.294, 42.697],
[-72.459, 42.727],
[-73.265, 42.746],
],
],
},
properties: { name: "Massachusetts" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-102.052, 40.003],
[-102.046, 38.698],
[-102.042, 36.993],
[-100.856, 36.999],
[-99.129, 36.999],
[-97.462, 36.999],
[-95.787, 36.999],
[-94.618, 36.999],
[-94.613, 38.238],
[-94.607, 39.113],
[-94.8, 39.206],
[-95.114, 39.554],
[-94.86, 39.75],
[-95.308, 40],
[-96.47, 40.001],
[-98.076, 40.002],
[-99.813, 40.001],
[-101.06, 40.002],
[-102.052, 40.003],
],
],
},
properties: { name: "Kansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-119.999, 41.995],
[-120, 41.184],
[-119.998, 39.957],
[-120.001, 39],
[-118.95, 38.269],
[-117.681, 37.353],
[-116.488, 36.459],
[-115.648, 35.809],
[-114.633, 35.002],
[-114.573, 35.139],
[-114.664, 35.449],
[-114.736, 36.104],
[-114.372, 36.143],
[-114.152, 36.025],
[-114.047, 36.194],
[-114.051, 37],
[-114.05, 37.881],
[-114.049, 39.006],
[-114.046, 40.398],
[-114.042, 41.994],
[-115.87, 41.997],
[-117.026, 42],
[-118.776, 41.993],
[-119.999, 41.995],
],
],
},
properties: { name: "Nevada" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.343, 45.011],
[-73.39, 44.62],
[-73.294, 44.441],
[-73.437, 44.043],
[-73.351, 43.77],
[-73.415, 43.658],
[-73.242, 43.535],
[-73.265, 42.746],
[-72.459, 42.727],
[-72.54, 42.805],
[-72.445, 43.004],
[-72.379, 43.574],
[-72.183, 43.808],
[-72.037, 44.103],
[-72.046, 44.292],
[-71.819, 44.353],
[-71.58, 44.502],
[-71.627, 44.747],
[-71.501, 45.013],
[-72.349, 45.006],
[-73.343, 45.011],
],
],
},
properties: { name: "Vermont" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.487, 42.05],
[-73.551, 41.295],
[-73.728, 41.101],
[-73.657, 40.985],
[-73.422, 41.048],
[-72.936, 41.258],
[-72.547, 41.25],
[-71.861, 41.32],
[-71.798, 41.417],
[-71.799, 42.008],
[-73.487, 42.05],
],
],
},
properties: { name: "Connecticut" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.559, 39.63],
[-75.528, 39.498],
[-75.244, 39.286],
[-74.886, 39.144],
[-74.647, 39.212],
[-74.413, 39.361],
[-74.101, 39.756],
[-73.971, 40.348],
[-74.261, 40.502],
[-74.087, 40.652],
[-73.894, 40.997],
[-74.695, 41.357],
[-75.133, 40.98],
[-75.187, 40.569],
[-74.722, 40.154],
[-75.415, 39.802],
],
],
},
properties: { name: "New Jersey" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-81.678, 36.588],
[-81.734, 36.413],
[-81.908, 36.302],
[-82.029, 36.124],
[-82.211, 36.159],
[-82.779, 35.993],
[-82.978, 35.783],
[-83.162, 35.763],
[-83.498, 35.563],
[-83.772, 35.562],
[-84.022, 35.407],
[-84.098, 35.247],
[-84.283, 35.227],
[-84.322, 34.988],
[-83.109, 35.001],
[-82.411, 35.202],
[-81.043, 35.149],
[-80.782, 34.936],
[-80.797, 34.824],
[-79.675, 34.805],
[-78.541, 33.851],
[-78.137, 33.912],
[-77.96, 33.853],
[-77.829, 34.163],
[-77.635, 34.36],
[-77.137, 34.633],
[-76.727, 34.697],
[-76.536, 34.589],
[-76.137, 34.988],
[-75.913, 35.12],
[-75.534, 35.226],
[-75.459, 35.597],
[-75.718, 36.114],
[-75.867, 36.551],
[-76.917, 36.546],
[-78.51, 36.541],
[-80.295, 36.544],
[-81.678, 36.588],
],
],
},
properties: { name: "North Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.042, 41.994],
[-114.046, 40.398],
[-114.049, 39.006],
[-114.05, 37.881],
[-114.051, 37],
[-112.966, 37],
[-111.278, 37],
[-110.001, 36.998],
[-109.045, 36.999],
[-109.042, 38.165],
[-109.06, 38.275],
[-109.051, 39.875],
[-109.05, 41.001],
[-111.047, 40.998],
[-111.047, 42.002],
[-112.11, 41.998],
[-114.042, 41.994],
],
],
},
properties: { name: "Utah" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.049, 49],
[-104.042, 47.803],
[-104.045, 45.945],
[-102.088, 45.945],
[-100.762, 45.944],
[-99.49, 45.94],
[-97.777, 45.935],
[-96.564, 45.935],
[-96.601, 46.32],
[-96.791, 46.637],
[-96.854, 47.572],
[-97.147, 48.169],
[-97.1, 48.668],
[-97.229, 49.001],
[-98.869, 49],
[-99.914, 48.999],
[-102.217, 48.999],
[-104.049, 49],
],
],
},
properties: { name: "North Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-83.109, 35.001],
[-83.324, 34.79],
[-83.339, 34.682],
[-83.048, 34.493],
[-82.874, 34.472],
[-82.715, 34.148],
[-82.557, 33.945],
[-82.324, 33.82],
[-82.162, 33.611],
[-81.926, 33.463],
[-81.933, 33.344],
[-81.755, 33.152],
[-81.502, 33.015],
[-81.397, 32.606],
[-81.195, 32.465],
[-81.113, 32.113],
[-80.886, 32.035],
[-80.338, 32.479],
[-80.001, 32.606],
[-79.57, 32.927],
[-79.36, 33.007],
[-79.215, 33.156],
[-79.135, 33.404],
[-78.773, 33.769],
[-78.541, 33.851],
[-79.675, 34.805],
[-80.797, 34.824],
[-80.782, 34.936],
[-81.043, 35.149],
[-82.411, 35.202],
[-83.109, 35.001],
],
],
},
properties: { name: "South Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.166, 33.004],
[-91.072, 32.938],
[-91.114, 32.74],
[-91.053, 32.438],
[-90.921, 32.342],
[-91.035, 32.101],
[-91.36, 31.799],
[-91.536, 31.338],
[-91.644, 31.234],
[-91.56, 31.05],
[-90.759, 31],
[-89.728, 31.002],
[-89.836, 30.727],
[-89.608, 30.217],
[-89.525, 30.181],
[-89.345, 30.293],
[-88.894, 30.393],
[-88.472, 30.32],
[-88.395, 30.369],
[-88.469, 31.933],
[-88.317, 33.184],
[-88.098, 34.892],
[-88.2, 34.996],
[-89.435, 34.994],
[-90.309, 34.996],
[-90.25, 34.907],
[-90.474, 34.789],
[-90.587, 34.616],
[-90.575, 34.415],
[-90.895, 34.224],
[-91.061, 33.878],
[-91.027, 33.764],
[-91.216, 33.529],
[-91.069, 33.233],
[-91.166, 33.004],
],
],
},
properties: { name: "Mississippi" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.05, 41.001],
[-109.051, 39.875],
[-109.06, 38.275],
[-109.042, 38.165],
[-109.045, 36.999],
[-108.001, 37],
[-106.006, 36.995],
[-104.732, 36.993],
[-103.002, 37],
[-102.042, 36.993],
[-102.046, 38.698],
[-102.052, 40.003],
[-102.052, 41.002],
[-104.053, 41.001],
[-104.855, 40.998],
[-106.191, 40.998],
[-107.367, 41.003],
[-109.05, 41.001],
],
],
},
properties: { name: "Colorado" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-104.055, 44.25],
[-104.053, 43.001],
[-102.082, 42.999],
[-100.198, 42.998],
[-98.499, 42.999],
[-98.435, 42.929],
[-97.95, 42.77],
[-97.858, 42.865],
[-97.238, 42.853],
[-97.131, 42.772],
[-96.698, 42.659],
[-96.611, 42.506],
[-96.446, 42.491],
[-96.622, 42.779],
[-96.439, 43.114],
[-96.522, 43.221],
[-96.453, 43.5],
[-96.458, 45.308],
[-96.711, 45.437],
[-96.826, 45.654],
[-96.587, 45.816],
[-96.564, 45.935],
[-97.777, 45.935],
[-99.49, 45.94],
[-100.762, 45.944],
[-102.088, 45.945],
[-104.045, 45.945],
[-104.058, 44.997],
],
],
},
properties: { name: "South Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 37],
[-103.002, 36.5],
[-101.624, 36.5],
[-100, 36.5],
[-100, 35.619],
[-100, 34.561],
[-99.696, 34.381],
[-99.275, 34.387],
[-99.19, 34.214],
[-98.737, 34.131],
[-98.364, 34.157],
[-98.099, 34.104],
[-97.866, 33.849],
[-97.672, 33.991],
[-97.444, 33.824],
[-97.206, 33.81],
[-96.952, 33.945],
[-96.851, 33.847],
[-96.593, 33.831],
[-96.363, 33.694],
[-96.152, 33.832],
[-95.557, 33.927],
[-95.283, 33.878],
[-95.226, 33.962],
[-94.842, 33.739],
[-94.486, 33.638],
[-94.432, 35.37],
[-94.618, 36.499],
[-94.618, 36.999],
[-95.787, 36.999],
[-97.462, 36.999],
[-99.129, 36.999],
[-100.856, 36.999],
[-102.042, 36.993],
[-103.002, 37],
],
],
},
properties: { name: "Oklahoma" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-106.264, 44.994],
[-108.621, 45],
[-111.044, 45.001],
[-111.049, 44.474],
[-111.045, 43.316],
[-111.047, 42.002],
[-111.047, 40.998],
[-109.05, 41.001],
[-107.367, 41.003],
[-106.191, 40.998],
[-104.855, 40.998],
[-104.053, 41.001],
[-104.053, 42.25],
[-104.053, 43.001],
[-104.055, 44.25],
[-104.058, 44.997],
],
],
},
properties: { name: "Wyoming" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-82.594, 38.422],
[-82.626, 38.135],
[-82.296, 37.686],
[-81.968, 37.538],
[-81.85, 37.285],
[-81.561, 37.207],
[-81.362, 37.338],
[-81.225, 37.235],
[-80.919, 37.306],
[-80.545, 37.475],
[-80.292, 37.537],
[-80.292, 37.684],
[-79.788, 38.273],
[-79.649, 38.592],
[-79.298, 38.416],
[-78.999, 38.84],
[-78.773, 38.894],
[-78.414, 39.158],
[-78.347, 39.466],
[-77.828, 39.132],
[-77.72, 39.321],
[-77.83, 39.587],
[-78.082, 39.671],
[-78.383, 39.622],
[-78.461, 39.526],
[-78.707, 39.556],
[-79.091, 39.472],
[-79.487, 39.206],
[-79.477, 39.721],
[-80.519, 39.721],
[-80.519, 40.639],
[-80.668, 40.582],
[-80.607, 40.304],
[-80.803, 39.919],
[-80.83, 39.712],
[-81.129, 39.449],
[-81.348, 39.346],
[-81.456, 39.409],
[-81.678, 39.274],
[-81.898, 38.93],
[-82.007, 39.03],
[-82.209, 38.803],
[-82.175, 38.608],
[-82.324, 38.449],
[-82.594, 38.422],
],
],
},
properties: { name: "West Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.084, 45.305],
[-71.037, 44.736],
[-70.973, 43.57],
[-70.984, 43.376],
[-70.704, 43.06],
[-70.554, 43.322],
[-70.416, 43.361],
[-70.168, 43.675],
[-69.916, 43.775],
[-69.321, 43.857],
[-69.077, 43.974],
[-68.439, 44.116],
[-68.126, 44.387],
[-67.855, 44.419],
[-67.449, 44.6],
[-67.293, 44.599],
[-66.95, 44.817],
[-67.112, 45.112],
[-67.48, 45.268],
[-67.417, 45.502],
[-67.803, 45.678],
[-67.78, 45.938],
[-67.79, 47.066],
[-68.204, 47.34],
[-68.362, 47.356],
[-68.901, 47.179],
[-69.04, 47.245],
[-69.039, 47.422],
[-69.22, 47.457],
[-69.997, 46.695],
[-70.054, 46.429],
[-70.291, 46.186],
[-70.259, 45.891],
[-70.781, 45.431],
[-71.084, 45.305],
],
],
},
properties: { name: "Maine" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.501, 45.013],
[-71.627, 44.747],
[-71.58, 44.502],
[-71.819, 44.353],
[-72.046, 44.292],
[-72.037, 44.103],
[-72.183, 43.808],
[-72.379, 43.574],
[-72.445, 43.004],
[-72.54, 42.805],
[-72.459, 42.727],
[-71.294, 42.697],
[-71.15, 42.815],
[-70.817, 42.872],
[-70.704, 43.06],
[-70.984, 43.376],
[-70.973, 43.57],
[-71.037, 44.736],
[-71.084, 45.305],
[-71.284, 45.302],
[-71.501, 45.013],
],
],
},
properties: { name: "New Hampshire" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.72, 32.719],
[-114.814, 32.494],
[-113.751, 32.169],
[-112.365, 31.741],
[-111.075, 31.332],
[-109.05, 31.333],
[-109.047, 32.778],
[-109.046, 33.875],
[-109.046, 34.96],
[-109.046, 36.117],
[-109.045, 36.999],
[-110.001, 36.998],
[-111.278, 37],
[-112.966, 37],
[-114.051, 37],
[-114.047, 36.194],
[-114.152, 36.025],
[-114.372, 36.143],
[-114.736, 36.104],
[-114.664, 35.449],
[-114.573, 35.139],
[-114.633, 35.002],
[-114.634, 34.873],
[-114.465, 34.691],
[-114.335, 34.45],
[-114.139, 34.26],
[-114.428, 34.093],
[-114.535, 33.928],
[-114.525, 33.552],
[-114.707, 33.377],
[-114.671, 33.038],
[-114.511, 33.023],
[-114.469, 32.845],
[-114.72, 32.719],
],
],
},
properties: { name: "Arizona" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.861, 41.32],
[-71.483, 41.372],
[-71.429, 41.454],
[-71.121, 41.497],
[-71.133, 41.66],
[-71.329, 41.783],
[-71.381, 42.019],
[-71.799, 42.008],
[-71.798, 41.417],
[-71.861, 41.32],
],
],
},
properties: { name: "Rhode Island" },
},
],
};
{
series: [
{
type: 'map-shape',
idKey: 'name',
labelKey: 'code',
},
],
}In this configuration:
labelKeydefines what will appear as the title for each tile.
See Label options for options for handling long labels.
Background Shapes Copy Link
The Map Shape Background Series displays all the shapes of a topology without requiring any data.
This can be useful to show disabled Map Shape Series when toggled off in the legend, or to provide context to Map Line Series and Map Marker Series.
import {
AgChartOptions,
AgCharts,
AnimationModule,
ContextMenuModule,
CrosshairModule,
LegendModule,
MapShapeBackgroundSeriesModule,
MapShapeSeriesModule,
ModuleRegistry,
} from "ag-charts-enterprise";
import { central, eastern, mountain, pacific } from "./data";
import { topology } from "./topology";
ModuleRegistry.registerModules([
AnimationModule,
CrosshairModule,
LegendModule,
MapShapeBackgroundSeriesModule,
MapShapeSeriesModule,
ContextMenuModule,
]);
const options: AgChartOptions = {
title: {
text: "Timezones Across America",
},
topology,
series: [
{
type: "map-shape-background",
},
{
type: "map-shape",
data: pacific,
idKey: "name",
title: "Pacific",
},
{
type: "map-shape",
data: mountain,
idKey: "name",
title: "Mountain",
visible: false,
},
{
type: "map-shape",
data: central,
idKey: "name",
title: "Central",
visible: false,
},
{
type: "map-shape",
data: eastern,
idKey: "name",
title: "Eastern",
visible: false,
},
],
legend: {
enabled: true,
},
};
options.container = document.getElementById("myChart");
const chart = AgCharts.create(options);
export const eastern = [
{ name: "Connecticut" },
{ name: "Delaware" },
{ name: "Florida" },
{ name: "Georgia" },
{ name: "Indiana" },
{ name: "Kentucky" },
{ name: "Maine" },
{ name: "Maryland" },
{ name: "Massachusetts" },
{ name: "Michigan" },
{ name: "New Hampshire" },
{ name: "New Jersey" },
{ name: "New York" },
{ name: "North Carolina" },
{ name: "Ohio" },
{ name: "Pennsylvania" },
{ name: "Rhode Island" },
{ name: "South Carolina" },
{ name: "Vermont" },
{ name: "Virginia" },
{ name: "West Virginia" },
];
export const central = [
{ name: "Alabama" },
{ name: "Arkansas" },
{ name: "Illinois" },
{ name: "Iowa" },
{ name: "Kansas" },
{ name: "Louisiana" },
{ name: "Minnesota" },
{ name: "Mississippi" },
{ name: "Missouri" },
{ name: "Nebraska" },
{ name: "North Dakota" },
{ name: "Oklahoma" },
{ name: "South Dakota" },
{ name: "Tennessee" },
{ name: "Texas" },
{ name: "Wisconsin" },
];
export const mountain = [
{ name: "Arizona" },
{ name: "Colorado" },
{ name: "Idaho" },
{ name: "Montana" },
{ name: "New Mexico" },
{ name: "Utah" },
{ name: "Wyoming" },
];
export const pacific = [
{ name: "California" },
{ name: "Washington" },
{ name: "Nevada" },
{ name: "Oregon" },
];
// https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html
export const topology = {
type: "FeatureCollection",
features: [
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.477, 39.721],
[-79.487, 39.206],
[-79.091, 39.472],
[-78.707, 39.556],
[-78.461, 39.526],
[-78.383, 39.622],
[-78.082, 39.671],
[-77.83, 39.587],
[-77.72, 39.321],
[-77.46, 39.219],
[-77.463, 39.076],
[-77.12, 38.934],
[-77.039, 38.792],
[-77.13, 38.635],
[-76.864, 38.269],
[-76.591, 38.214],
[-76.393, 38.24],
[-76.393, 38.389],
[-76.518, 38.539],
[-76.559, 38.756],
[-76.45, 38.941],
[-76.425, 39.206],
[-76.233, 39.091],
[-76.362, 38.939],
[-76.336, 38.492],
[-76.218, 38.306],
[-75.889, 38.241],
[-75.899, 37.975],
[-75.67, 37.951],
[-75.242, 38.027],
[-75.049, 38.451],
[-75.694, 38.46],
[-75.789, 39.722],
[-77.469, 39.72],
[-79.477, 39.721],
],
],
},
properties: { name: "Maryland" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-96.453, 43.5],
[-96.522, 43.221],
[-96.439, 43.114],
[-96.622, 42.779],
[-96.446, 42.491],
[-96.348, 42.167],
[-96.065, 41.793],
[-96.118, 41.613],
[-95.923, 41.456],
[-95.811, 40.887],
[-95.889, 40.736],
[-95.766, 40.585],
[-94.534, 40.571],
[-93.136, 40.583],
[-91.729, 40.614],
[-91.419, 40.378],
[-91.34, 40.613],
[-91.121, 40.673],
[-90.952, 40.954],
[-90.957, 41.111],
[-91.114, 41.25],
[-91.028, 41.424],
[-90.701, 41.455],
[-90.34, 41.599],
[-90.181, 41.812],
[-90.161, 42.106],
[-90.431, 42.278],
[-90.643, 42.508],
[-90.701, 42.626],
[-90.942, 42.684],
[-91.138, 42.904],
[-91.175, 43.135],
[-91.058, 43.254],
[-91.218, 43.501],
[-92.449, 43.5],
[-93.971, 43.5],
[-94.855, 43.501],
[-96.453, 43.5],
],
],
},
properties: { name: "Iowa" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.57, 39.839],
[-75.789, 39.722],
[-75.694, 38.46],
[-75.049, 38.451],
[-75.089, 38.797],
[-75.304, 38.913],
[-75.408, 39.265],
[-75.528, 39.498],
[-75.559, 39.63],
[-75.415, 39.802],
],
],
},
properties: { name: "Delaware" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-84.806, 41.696],
[-84.804, 40.353],
[-84.82, 39.105],
[-84.462, 39.122],
[-84.327, 39.027],
[-84.213, 38.806],
[-83.852, 38.751],
[-83.679, 38.63],
[-83.533, 38.702],
[-83.287, 38.599],
[-82.889, 38.756],
[-82.851, 38.604],
[-82.594, 38.422],
[-82.324, 38.449],
[-82.175, 38.608],
[-82.209, 38.803],
[-82.007, 39.03],
[-81.898, 38.93],
[-81.678, 39.274],
[-81.456, 39.409],
[-81.348, 39.346],
[-81.129, 39.449],
[-80.83, 39.712],
[-80.803, 39.919],
[-80.607, 40.304],
[-80.668, 40.582],
[-80.519, 40.639],
[-80.519, 41.978],
[-81.287, 41.76],
[-81.739, 41.489],
[-81.995, 41.514],
[-82.461, 41.386],
[-82.834, 41.588],
[-83.067, 41.595],
[-83.454, 41.733],
[-84.806, 41.696],
],
],
},
properties: { name: "Ohio" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-80.519, 41.978],
[-80.519, 40.639],
[-80.519, 39.721],
[-79.477, 39.721],
[-77.469, 39.72],
[-75.789, 39.722],
[-75.57, 39.839],
[-75.415, 39.802],
[-74.722, 40.154],
[-75.187, 40.569],
[-75.133, 40.98],
[-74.695, 41.357],
[-74.982, 41.496],
[-75.113, 41.841],
[-75.341, 41.993],
[-76.462, 41.999],
[-77.832, 41.999],
[-79.761, 41.999],
[-79.762, 42.27],
[-80.519, 41.978],
],
],
},
properties: { name: "Pennsylvania" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.053, 43.001],
[-104.053, 42.25],
[-104.053, 41.001],
[-102.052, 41.002],
[-102.052, 40.003],
[-101.06, 40.002],
[-99.813, 40.001],
[-98.076, 40.002],
[-96.47, 40.001],
[-95.308, 40],
[-95.473, 40.236],
[-95.654, 40.323],
[-95.766, 40.585],
[-95.889, 40.736],
[-95.811, 40.887],
[-95.923, 41.456],
[-96.118, 41.613],
[-96.065, 41.793],
[-96.348, 42.167],
[-96.446, 42.491],
[-96.611, 42.506],
[-96.698, 42.659],
[-97.131, 42.772],
[-97.238, 42.853],
[-97.858, 42.865],
[-97.95, 42.77],
[-98.435, 42.929],
[-98.499, 42.999],
[-100.198, 42.998],
[-102.082, 42.999],
[-104.053, 43.001],
],
],
},
properties: { name: "Nebraska" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-123.237, 48.683],
[-123.141, 48.505],
[-122.874, 48.418],
[-122.743, 48.662],
[-122.938, 48.79],
[-123.237, 48.683],
],
],
[
[
[-117.032, 48.999],
[-118.837, 49],
[-120.001, 48.999],
[-121.751, 48.997],
[-122.758, 49.002],
[-122.643, 48.588],
[-122.76, 48.143],
[-123.004, 48.091],
[-124.051, 48.178],
[-124.653, 48.391],
[-124.722, 48.153],
[-124.672, 47.964],
[-124.412, 47.691],
[-124.319, 47.356],
[-124.236, 47.287],
[-124.081, 46.735],
[-124.081, 46.267],
[-123.548, 46.259],
[-123.28, 46.145],
[-123.116, 46.185],
[-122.814, 45.961],
[-122.775, 45.68],
[-122.263, 45.544],
[-121.811, 45.707],
[-121.533, 45.727],
[-121.085, 45.648],
[-120.591, 45.747],
[-120.211, 45.726],
[-119.966, 45.824],
[-119.126, 45.933],
[-118.987, 46],
[-116.916, 45.995],
[-117.036, 46.41],
[-117.042, 47.735],
[-117.032, 48.999],
],
],
],
},
properties: { name: "Washington" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-88.2, 34.996],
[-88.098, 34.892],
[-88.317, 33.184],
[-88.469, 31.933],
[-88.395, 30.369],
[-88.136, 30.321],
[-88.062, 30.645],
[-87.797, 30.324],
[-87.518, 30.28],
[-87.452, 30.344],
[-87.4, 30.657],
[-87.635, 30.866],
[-87.599, 30.997],
[-85.894, 30.993],
[-85.002, 31.001],
[-85.108, 31.186],
[-85.042, 31.545],
[-85.142, 31.839],
[-85.059, 32.136],
[-84.892, 32.263],
[-85.184, 32.861],
[-85.429, 34.125],
[-85.605, 34.985],
[-86.784, 34.992],
[-88.2, 34.996],
],
],
},
properties: { name: "Alabama" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.618, 36.499],
[-94.432, 35.37],
[-94.486, 33.638],
[-94.354, 33.556],
[-94.043, 33.551],
[-94.043, 33.019],
[-92.223, 33.009],
[-91.166, 33.004],
[-91.069, 33.233],
[-91.216, 33.529],
[-91.027, 33.764],
[-91.061, 33.878],
[-90.895, 34.224],
[-90.575, 34.415],
[-90.587, 34.616],
[-90.474, 34.789],
[-90.25, 34.907],
[-90.309, 34.996],
[-90.091, 35.118],
[-90.122, 35.305],
[-89.958, 35.542],
[-89.957, 35.695],
[-89.723, 35.809],
[-89.733, 36.001],
[-90.369, 35.996],
[-90.064, 36.303],
[-90.154, 36.495],
[-91.127, 36.498],
[-92.35, 36.498],
[-93.959, 36.499],
[-94.618, 36.499],
],
],
},
properties: { name: "Arkansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.045, 36.999],
[-109.046, 36.117],
[-109.046, 34.96],
[-109.046, 33.875],
[-109.047, 32.778],
[-109.05, 31.333],
[-108.209, 31.333],
[-108.208, 31.784],
[-106.528, 31.783],
[-106.618, 32],
[-104.644, 32],
[-103.064, 32.001],
[-103.065, 32.849],
[-103.044, 34.079],
[-103.043, 35.183],
[-103.042, 36.5],
[-103.002, 36.5],
[-103.002, 37],
[-104.732, 36.993],
[-106.006, 36.995],
[-108.001, 37],
[-109.045, 36.999],
],
],
},
properties: { name: "New Mexico" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 36.5],
[-103.042, 36.5],
[-103.043, 35.183],
[-103.044, 34.079],
[-103.065, 32.849],
[-103.064, 32.001],
[-104.644, 32],
[-106.618, 32],
[-106.528, 31.783],
[-106.418, 31.752],
[-106.176, 31.456],
[-105.954, 31.365],
[-105.773, 31.167],
[-105.315, 30.817],
[-105.001, 30.673],
[-104.86, 30.39],
[-104.703, 30.212],
[-104.672, 29.911],
[-104.54, 29.676],
[-104.144, 29.383],
[-103.789, 29.258],
[-103.281, 28.982],
[-102.871, 29.242],
[-102.809, 29.522],
[-102.677, 29.738],
[-102.393, 29.766],
[-102.301, 29.878],
[-101.966, 29.807],
[-101.401, 29.738],
[-101.255, 29.52],
[-101.06, 29.459],
[-100.675, 29.1],
[-100.5, 28.662],
[-100.397, 28.576],
[-100.268, 28.25],
[-99.932, 27.968],
[-99.845, 27.779],
[-99.557, 27.614],
[-99.43, 27.159],
[-99.447, 27.026],
[-99.269, 26.843],
[-99.111, 26.426],
[-98.807, 26.369],
[-98.654, 26.236],
[-98.443, 26.199],
[-98.197, 26.056],
[-97.795, 26.055],
[-97.423, 25.84],
[-97.146, 25.971],
[-97.197, 26.306],
[-97.323, 26.702],
[-97.379, 27.06],
[-97.296, 27.427],
[-97.141, 27.717],
[-96.886, 28.031],
[-96.194, 28.502],
[-95.382, 28.866],
[-95.026, 29.148],
[-94.723, 29.331],
[-94.595, 29.468],
[-94.057, 29.671],
[-93.838, 29.691],
[-93.929, 29.803],
[-93.704, 30.054],
[-93.729, 30.545],
[-93.531, 30.925],
[-93.535, 31.186],
[-93.835, 31.586],
[-93.803, 31.701],
[-94.042, 31.992],
[-94.043, 33.019],
[-94.043, 33.551],
[-94.354, 33.556],
[-94.486, 33.638],
[-94.842, 33.739],
[-95.226, 33.962],
[-95.283, 33.878],
[-95.557, 33.927],
[-96.152, 33.832],
[-96.363, 33.694],
[-96.593, 33.831],
[-96.851, 33.847],
[-96.952, 33.945],
[-97.206, 33.81],
[-97.444, 33.824],
[-97.672, 33.991],
[-97.866, 33.849],
[-98.099, 34.104],
[-98.364, 34.157],
[-98.737, 34.131],
[-99.19, 34.214],
[-99.275, 34.387],
[-99.696, 34.381],
[-100, 34.561],
[-100, 35.619],
[-100, 36.5],
[-101.624, 36.5],
[-103.002, 36.5],
],
],
},
properties: { name: "Texas" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-120.368, 34.076],
[-120.122, 33.896],
[-120.055, 34.038],
[-120.368, 34.076],
],
],
[
[
[-124.212, 41.998],
[-124.063, 41.44],
[-124.164, 41.139],
[-124.118, 40.989],
[-124.41, 40.438],
[-124.363, 40.261],
[-124.087, 40.078],
[-123.852, 39.832],
[-123.766, 39.553],
[-123.825, 39.361],
[-123.691, 39.021],
[-123.711, 38.913],
[-123.166, 38.475],
[-123.004, 38.297],
[-122.94, 38.032],
[-122.537, 37.83],
[-122.394, 38.143],
[-122.263, 38.051],
[-122.313, 37.777],
[-122.163, 37.668],
[-122.517, 37.521],
[-122.397, 37.187],
[-122.106, 36.956],
[-121.906, 36.969],
[-121.792, 36.815],
[-121.97, 36.583],
[-121.888, 36.303],
[-121.68, 36.166],
[-121.272, 35.667],
[-121.003, 35.461],
[-120.897, 35.248],
[-120.636, 35.124],
[-120.61, 34.858],
[-120.646, 34.581],
[-120.451, 34.447],
[-120.141, 34.473],
[-119.874, 34.409],
[-119.617, 34.421],
[-119.27, 34.253],
[-119.11, 34.095],
[-118.805, 34.001],
[-118.52, 34.028],
[-118.397, 33.736],
[-118.133, 33.753],
[-117.646, 33.441],
[-117.446, 33.269],
[-117.281, 33.012],
[-117.282, 32.84],
[-117.125, 32.534],
[-115.465, 32.667],
[-114.72, 32.719],
[-114.469, 32.845],
[-114.511, 33.023],
[-114.671, 33.038],
[-114.707, 33.377],
[-114.525, 33.552],
[-114.535, 33.928],
[-114.428, 34.093],
[-114.139, 34.26],
[-114.335, 34.45],
[-114.465, 34.691],
[-114.634, 34.873],
[-114.633, 35.002],
[-115.648, 35.809],
[-116.488, 36.459],
[-117.681, 37.353],
[-118.95, 38.269],
[-120.001, 39],
[-119.998, 39.957],
[-120, 41.184],
[-119.999, 41.995],
[-121.035, 41.993],
[-122.501, 42.008],
[-124.212, 41.998],
],
],
],
},
properties: { name: "California" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.133, 36.982],
[-89.165, 36.662],
[-89.539, 36.498],
[-88.05, 36.5],
[-88.071, 36.678],
[-87.853, 36.633],
[-86.508, 36.652],
[-85.874, 36.624],
[-84.785, 36.603],
[-83.675, 36.601],
[-83.136, 36.743],
[-82.895, 36.882],
[-82.726, 37.112],
[-82.355, 37.265],
[-81.968, 37.538],
[-82.296, 37.686],
[-82.626, 38.135],
[-82.594, 38.422],
[-82.851, 38.604],
[-82.889, 38.756],
[-83.287, 38.599],
[-83.533, 38.702],
[-83.679, 38.63],
[-83.852, 38.751],
[-84.213, 38.806],
[-84.327, 39.027],
[-84.462, 39.122],
[-84.82, 39.105],
[-84.786, 38.882],
[-85.187, 38.688],
[-85.449, 38.713],
[-85.416, 38.546],
[-85.816, 38.283],
[-85.922, 38.029],
[-86.206, 38.022],
[-86.321, 38.147],
[-86.722, 37.893],
[-86.811, 37.997],
[-87.18, 37.841],
[-87.419, 37.945],
[-87.626, 37.852],
[-87.873, 37.921],
[-88.028, 37.799],
[-88.16, 37.654],
[-88.062, 37.488],
[-88.466, 37.401],
[-88.476, 37.068],
[-88.932, 37.228],
[-89.168, 37.074],
[-89.133, 36.982],
],
],
},
properties: { name: "Kentucky" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-85.605, 34.985],
[-85.429, 34.125],
[-85.184, 32.861],
[-84.892, 32.263],
[-85.059, 32.136],
[-85.142, 31.839],
[-85.042, 31.545],
[-85.108, 31.186],
[-85.002, 31.001],
[-84.865, 30.712],
[-83.131, 30.624],
[-82.219, 30.564],
[-82.18, 30.369],
[-82.041, 30.37],
[-82.033, 30.751],
[-81.943, 30.827],
[-81.444, 30.71],
[-81.402, 31.125],
[-81.305, 31.206],
[-81.131, 31.723],
[-80.886, 32.035],
[-81.113, 32.113],
[-81.195, 32.465],
[-81.397, 32.606],
[-81.502, 33.015],
[-81.755, 33.152],
[-81.933, 33.344],
[-81.926, 33.463],
[-82.162, 33.611],
[-82.324, 33.82],
[-82.557, 33.945],
[-82.715, 34.148],
[-82.874, 34.472],
[-83.048, 34.493],
[-83.339, 34.682],
[-83.324, 34.79],
[-83.109, 35.001],
[-84.322, 34.988],
[-85.605, 34.985],
],
],
},
properties: { name: "Georgia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-92.015, 46.706],
[-92.292, 46.663],
[-92.294, 46.074],
[-92.721, 45.884],
[-92.87, 45.715],
[-92.647, 45.438],
[-92.762, 45.285],
[-92.751, 44.942],
[-92.805, 44.768],
[-92.549, 44.578],
[-91.964, 44.362],
[-91.893, 44.231],
[-91.441, 44.002],
[-91.244, 43.773],
[-91.218, 43.501],
[-91.058, 43.254],
[-91.175, 43.135],
[-91.138, 42.904],
[-90.942, 42.684],
[-90.701, 42.626],
[-90.643, 42.508],
[-88.707, 42.494],
[-87.8, 42.492],
[-87.767, 42.785],
[-87.896, 43.016],
[-87.889, 43.308],
[-87.706, 43.68],
[-87.736, 43.874],
[-87.447, 44.586],
[-87.063, 45.079],
[-87.265, 45.081],
[-87.581, 44.852],
[-87.775, 44.639],
[-87.983, 44.72],
[-87.813, 44.954],
[-87.59, 45.095],
[-87.863, 45.353],
[-87.781, 45.674],
[-88.135, 45.822],
[-88.115, 45.922],
[-88.527, 46.021],
[-88.812, 46.022],
[-89.092, 46.139],
[-90.12, 46.337],
[-90.215, 46.5],
[-90.418, 46.566],
[-90.755, 46.646],
[-90.881, 46.74],
[-90.745, 46.894],
[-90.924, 47.002],
[-91.168, 46.845],
[-91.82, 46.69],
[-92.015, 46.706],
],
],
},
properties: { name: "Wisconsin" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-123.548, 46.259],
[-123.959, 46.142],
[-123.939, 45.709],
[-123.975, 45.145],
[-124.074, 44.798],
[-124.065, 44.633],
[-124.15, 43.911],
[-124.234, 43.557],
[-124.552, 42.841],
[-124.413, 42.658],
[-124.411, 42.251],
[-124.212, 41.998],
[-122.501, 42.008],
[-121.035, 41.993],
[-119.999, 41.995],
[-118.776, 41.993],
[-117.026, 42],
[-117.024, 43.824],
[-116.896, 44.154],
[-117.243, 44.391],
[-117.062, 44.727],
[-116.834, 44.929],
[-116.675, 45.314],
[-116.464, 45.616],
[-116.593, 45.779],
[-116.788, 45.84],
[-116.916, 45.995],
[-118.987, 46],
[-119.126, 45.933],
[-119.966, 45.824],
[-120.211, 45.726],
[-120.591, 45.747],
[-121.085, 45.648],
[-121.533, 45.727],
[-121.811, 45.707],
[-122.263, 45.544],
[-122.775, 45.68],
[-122.814, 45.961],
[-123.116, 46.185],
[-123.28, 46.145],
[-123.548, 46.259],
],
],
},
properties: { name: "Oregon" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-95.766, 40.585],
[-95.654, 40.323],
[-95.473, 40.236],
[-95.308, 40],
[-94.86, 39.75],
[-95.114, 39.554],
[-94.8, 39.206],
[-94.607, 39.113],
[-94.613, 38.238],
[-94.618, 36.999],
[-94.618, 36.499],
[-93.959, 36.499],
[-92.35, 36.498],
[-91.127, 36.498],
[-90.154, 36.495],
[-90.064, 36.303],
[-90.369, 35.996],
[-89.733, 36.001],
[-89.523, 36.345],
[-89.539, 36.498],
[-89.165, 36.662],
[-89.133, 36.982],
[-89.359, 37.043],
[-89.495, 37.325],
[-89.522, 37.696],
[-90.219, 38.094],
[-90.373, 38.323],
[-90.185, 38.612],
[-90.113, 38.849],
[-90.468, 38.962],
[-90.657, 38.92],
[-90.73, 39.256],
[-91.038, 39.448],
[-91.368, 39.729],
[-91.512, 40.17],
[-91.419, 40.378],
[-91.729, 40.614],
[-93.136, 40.583],
[-94.534, 40.571],
[-95.766, 40.585],
],
],
},
properties: { name: "Missouri" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-75.67, 37.951],
[-75.941, 37.564],
[-76.023, 37.289],
[-75.817, 37.193],
[-75.658, 37.452],
[-75.552, 37.748],
[-75.242, 38.027],
[-75.67, 37.951],
],
],
[
[
[-81.968, 37.538],
[-82.355, 37.265],
[-82.726, 37.112],
[-82.895, 36.882],
[-83.136, 36.743],
[-83.675, 36.601],
[-81.678, 36.588],
[-80.295, 36.544],
[-78.51, 36.541],
[-76.917, 36.546],
[-75.867, 36.551],
[-75.996, 36.922],
[-76.268, 36.965],
[-76.394, 37.225],
[-76.25, 37.422],
[-76.329, 37.671],
[-76.237, 37.889],
[-76.614, 38.149],
[-76.962, 38.214],
[-77.048, 38.36],
[-77.265, 38.333],
[-77.323, 38.467],
[-77.13, 38.635],
[-77.039, 38.792],
[-77.12, 38.934],
[-77.463, 39.076],
[-77.46, 39.219],
[-77.72, 39.321],
[-77.828, 39.132],
[-78.347, 39.466],
[-78.414, 39.158],
[-78.773, 38.894],
[-78.999, 38.84],
[-79.298, 38.416],
[-79.649, 38.592],
[-79.788, 38.273],
[-80.292, 37.684],
[-80.292, 37.537],
[-80.545, 37.475],
[-80.919, 37.306],
[-81.225, 37.235],
[-81.362, 37.338],
[-81.561, 37.207],
[-81.85, 37.285],
[-81.968, 37.538],
],
],
],
},
properties: { name: "Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-89.733, 36.001],
[-89.723, 35.809],
[-89.957, 35.695],
[-89.958, 35.542],
[-90.122, 35.305],
[-90.091, 35.118],
[-90.309, 34.996],
[-89.435, 34.994],
[-88.2, 34.996],
[-86.784, 34.992],
[-85.605, 34.985],
[-84.322, 34.988],
[-84.283, 35.227],
[-84.098, 35.247],
[-84.022, 35.407],
[-83.772, 35.562],
[-83.498, 35.563],
[-83.162, 35.763],
[-82.978, 35.783],
[-82.779, 35.993],
[-82.211, 36.159],
[-82.029, 36.124],
[-81.908, 36.302],
[-81.734, 36.413],
[-81.678, 36.588],
[-83.675, 36.601],
[-84.785, 36.603],
[-85.874, 36.624],
[-86.508, 36.652],
[-87.853, 36.633],
[-88.071, 36.678],
[-88.05, 36.5],
[-89.539, 36.498],
[-89.523, 36.345],
[-89.733, 36.001],
],
],
},
properties: { name: "Tennessee" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-94.043, 33.019],
[-94.042, 31.992],
[-93.803, 31.701],
[-93.835, 31.586],
[-93.535, 31.186],
[-93.531, 30.925],
[-93.729, 30.545],
[-93.704, 30.054],
[-93.929, 29.803],
[-93.838, 29.691],
[-93.538, 29.763],
[-93.177, 29.77],
[-92.684, 29.605],
[-92.323, 29.531],
[-92.065, 29.586],
[-91.822, 29.474],
[-91.711, 29.569],
[-91.394, 29.497],
[-91.279, 29.248],
[-90.942, 29.162],
[-90.868, 29.056],
[-90.224, 29.085],
[-89.843, 29.319],
[-89.483, 29.215],
[-89.361, 29.072],
[-89.149, 29.03],
[-89.014, 29.167],
[-89.2, 29.344],
[-89.482, 29.406],
[-89.602, 29.61],
[-89.404, 29.682],
[-89.236, 29.877],
[-89.186, 30.064],
[-89.445, 30.061],
[-89.702, 29.874],
[-89.845, 30.018],
[-89.525, 30.181],
[-89.608, 30.217],
[-89.836, 30.727],
[-89.728, 31.002],
[-90.759, 31],
[-91.56, 31.05],
[-91.644, 31.234],
[-91.536, 31.338],
[-91.36, 31.799],
[-91.035, 32.101],
[-90.921, 32.342],
[-91.053, 32.438],
[-91.114, 32.74],
[-91.072, 32.938],
[-91.166, 33.004],
[-92.223, 33.009],
[-94.043, 33.019],
],
],
},
properties: { name: "Louisiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-79.762, 42.27],
[-79.761, 41.999],
[-77.832, 41.999],
[-76.462, 41.999],
[-75.341, 41.993],
[-75.113, 41.841],
[-74.982, 41.496],
[-74.695, 41.357],
[-73.894, 40.997],
[-74.087, 40.652],
[-74.261, 40.502],
[-73.013, 40.68],
[-71.937, 41.006],
[-72.283, 41.068],
[-72.585, 40.998],
[-73.11, 40.972],
[-73.229, 40.905],
[-73.657, 40.985],
[-73.728, 41.101],
[-73.551, 41.295],
[-73.487, 42.05],
[-73.508, 42.086],
[-73.265, 42.746],
[-73.242, 43.535],
[-73.415, 43.658],
[-73.351, 43.77],
[-73.437, 44.043],
[-73.294, 44.441],
[-73.39, 44.62],
[-73.343, 45.011],
[-74.234, 44.992],
[-74.835, 45.015],
[-75.256, 44.858],
[-75.766, 44.516],
[-75.95, 44.349],
[-76.287, 44.204],
[-76.412, 43.926],
[-76.229, 43.804],
[-76.236, 43.529],
[-76.418, 43.521],
[-76.685, 43.353],
[-76.952, 43.271],
[-77.341, 43.281],
[-77.551, 43.236],
[-77.76, 43.341],
[-78.547, 43.37],
[-79.07, 43.262],
[-79.074, 43.078],
[-78.851, 42.792],
[-79.139, 42.564],
[-79.762, 42.27],
],
],
},
properties: { name: "New York" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-83.454, 41.733],
[-83.442, 41.809],
[-83.134, 42.088],
[-83.097, 42.29],
[-82.924, 42.352],
[-82.859, 42.542],
[-82.679, 42.522],
[-82.51, 42.637],
[-82.416, 43.006],
[-82.523, 43.225],
[-82.634, 43.831],
[-82.929, 44.069],
[-83.407, 43.92],
[-83.683, 43.591],
[-83.948, 43.735],
[-83.869, 43.961],
[-83.584, 44.057],
[-83.525, 44.262],
[-83.337, 44.333],
[-83.266, 45.027],
[-83.385, 45.274],
[-84.196, 45.621],
[-84.462, 45.652],
[-84.719, 45.778],
[-84.867, 45.752],
[-85.12, 45.569],
[-85.041, 45.437],
[-85.372, 45.271],
[-85.381, 45.046],
[-86.059, 44.911],
[-86.089, 44.741],
[-86.248, 44.699],
[-86.269, 44.345],
[-86.515, 44.058],
[-86.431, 43.841],
[-86.541, 43.645],
[-86.255, 43.083],
[-86.208, 42.763],
[-86.356, 42.254],
[-86.598, 41.918],
[-86.825, 41.76],
[-84.806, 41.76],
[-84.806, 41.696],
[-83.454, 41.733],
],
],
[
[
[-89.221, 47.908],
[-89.158, 47.824],
[-88.579, 48.041],
[-88.632, 48.148],
[-89.221, 47.908],
],
],
[
[
[-90.418, 46.566],
[-90.215, 46.5],
[-90.12, 46.337],
[-89.092, 46.139],
[-88.812, 46.022],
[-88.527, 46.021],
[-88.115, 45.922],
[-88.135, 45.822],
[-87.781, 45.674],
[-87.863, 45.353],
[-87.59, 45.095],
[-87.172, 45.662],
[-86.964, 45.673],
[-86.773, 45.811],
[-86.541, 45.708],
[-86.278, 45.942],
[-85.914, 45.919],
[-85.541, 46.08],
[-85.152, 46.051],
[-84.793, 45.859],
[-84.633, 45.951],
[-84.08, 45.971],
[-83.526, 45.919],
[-83.599, 46.09],
[-83.882, 46.042],
[-84.115, 46.174],
[-84.118, 46.518],
[-84.969, 46.476],
[-85.028, 46.675],
[-85.257, 46.753],
[-85.482, 46.68],
[-86.138, 46.673],
[-86.558, 46.487],
[-86.811, 46.45],
[-86.977, 46.527],
[-87.367, 46.507],
[-87.595, 46.783],
[-88.144, 46.967],
[-88.455, 46.923],
[-88.194, 47.209],
[-87.943, 47.336],
[-87.929, 47.479],
[-88.218, 47.449],
[-89.415, 46.844],
[-89.832, 46.804],
[-90.045, 46.668],
[-90.418, 46.566],
],
],
],
},
properties: { name: "Michigan" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.916, 45.995],
[-116.788, 45.84],
[-116.593, 45.779],
[-116.464, 45.616],
[-116.675, 45.314],
[-116.834, 44.929],
[-117.062, 44.727],
[-117.243, 44.391],
[-116.896, 44.154],
[-117.024, 43.824],
[-117.026, 42],
[-115.87, 41.997],
[-114.042, 41.994],
[-112.11, 41.998],
[-111.047, 42.002],
[-111.045, 43.316],
[-111.049, 44.474],
[-111.324, 44.724],
[-111.563, 44.555],
[-112.473, 44.48],
[-113.007, 44.472],
[-113.131, 44.765],
[-113.422, 44.843],
[-113.452, 45.059],
[-113.736, 45.325],
[-113.807, 45.602],
[-113.972, 45.701],
[-114.279, 45.481],
[-114.506, 45.559],
[-114.402, 45.961],
[-114.48, 46.03],
[-114.422, 46.387],
[-114.321, 46.647],
[-114.547, 46.644],
[-114.943, 46.868],
[-115.327, 47.256],
[-115.71, 47.418],
[-115.724, 47.697],
[-116.049, 48],
[-116.049, 49.001],
[-117.032, 48.999],
[-117.042, 47.735],
[-117.036, 46.41],
[-116.916, 45.995],
],
],
},
properties: { name: "Idaho" },
},
{
type: "Feature",
geometry: {
type: "MultiPolygon",
coordinates: [
[
[
[-81.812, 24.569],
[-81.685, 24.559],
[-81.243, 24.674],
[-81.444, 24.813],
[-81.751, 24.654],
[-81.812, 24.569],
],
],
[
[
[-85.002, 31.001],
[-85.894, 30.993],
[-87.599, 30.997],
[-87.635, 30.866],
[-87.4, 30.657],
[-87.452, 30.344],
[-87.518, 30.28],
[-86.633, 30.396],
[-86.223, 30.344],
[-86, 30.271],
[-85.385, 29.921],
[-85.353, 29.66],
[-85.045, 29.587],
[-84.565, 29.81],
[-84.29, 30.057],
[-84.063, 30.101],
[-83.679, 29.919],
[-83.402, 29.523],
[-83.17, 29.29],
[-82.824, 29.099],
[-82.657, 28.545],
[-82.764, 28.244],
[-82.86, 28.174],
[-82.847, 27.854],
[-82.705, 27.625],
[-82.692, 27.437],
[-82.54, 27.254],
[-82.265, 26.757],
[-82.181, 26.476],
[-81.924, 26.437],
[-81.845, 26.328],
[-81.727, 25.907],
[-81.384, 25.777],
[-81.147, 25.408],
[-81.171, 25.246],
[-81.08, 25.119],
[-80.812, 25.186],
[-80.495, 25.2],
[-80.358, 25.153],
[-80.301, 25.613],
[-80.11, 25.818],
[-80.11, 26.087],
[-80.039, 26.569],
[-80.046, 26.859],
[-80.384, 27.74],
[-80.548, 28.049],
[-80.607, 28.336],
[-80.525, 28.459],
[-80.584, 28.598],
[-80.966, 29.148],
[-81.257, 29.785],
[-81.396, 30.34],
[-81.444, 30.71],
[-81.943, 30.827],
[-82.033, 30.751],
[-82.041, 30.37],
[-82.18, 30.369],
[-82.219, 30.564],
[-83.131, 30.624],
[-84.865, 30.712],
[-85.002, 31.001],
],
],
],
},
properties: { name: "Florida" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.419, 40.378],
[-91.512, 40.17],
[-91.368, 39.729],
[-91.038, 39.448],
[-90.73, 39.256],
[-90.657, 38.92],
[-90.468, 38.962],
[-90.113, 38.849],
[-90.185, 38.612],
[-90.373, 38.323],
[-90.219, 38.094],
[-89.522, 37.696],
[-89.495, 37.325],
[-89.359, 37.043],
[-89.133, 36.982],
[-89.168, 37.074],
[-88.932, 37.228],
[-88.476, 37.068],
[-88.466, 37.401],
[-88.062, 37.488],
[-88.16, 37.654],
[-88.028, 37.799],
[-88.031, 38.031],
[-87.499, 38.758],
[-87.625, 39.102],
[-87.532, 39.348],
[-87.526, 40.535],
[-87.524, 41.708],
[-87.682, 42.076],
[-87.835, 42.302],
[-87.8, 42.492],
[-88.707, 42.494],
[-90.643, 42.508],
[-90.431, 42.278],
[-90.161, 42.106],
[-90.181, 41.812],
[-90.34, 41.599],
[-90.701, 41.455],
[-91.028, 41.424],
[-91.114, 41.25],
[-90.957, 41.111],
[-90.952, 40.954],
[-91.121, 40.673],
[-91.34, 40.613],
[-91.419, 40.378],
],
],
},
properties: { name: "Illinois" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-116.049, 49.001],
[-116.049, 48],
[-115.724, 47.697],
[-115.71, 47.418],
[-115.327, 47.256],
[-114.943, 46.868],
[-114.547, 46.644],
[-114.321, 46.647],
[-114.422, 46.387],
[-114.48, 46.03],
[-114.402, 45.961],
[-114.506, 45.559],
[-114.279, 45.481],
[-113.972, 45.701],
[-113.807, 45.602],
[-113.736, 45.325],
[-113.452, 45.059],
[-113.422, 44.843],
[-113.131, 44.765],
[-113.007, 44.472],
[-112.473, 44.48],
[-111.563, 44.555],
[-111.324, 44.724],
[-111.049, 44.474],
[-111.044, 45.001],
[-108.621, 45],
[-106.264, 44.994],
[-104.058, 44.997],
[-104.045, 45.945],
[-104.042, 47.803],
[-104.049, 49],
[-106.051, 48.999],
[-107.441, 48.999],
[-109.001, 48.999],
[-111.501, 48.997],
[-113.693, 48.998],
[-116.049, 49.001],
],
],
},
properties: { name: "Montana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-97.229, 49.001],
[-97.1, 48.668],
[-97.147, 48.169],
[-96.854, 47.572],
[-96.791, 46.637],
[-96.601, 46.32],
[-96.564, 45.935],
[-96.587, 45.816],
[-96.826, 45.654],
[-96.711, 45.437],
[-96.458, 45.308],
[-96.453, 43.5],
[-94.855, 43.501],
[-93.971, 43.5],
[-92.449, 43.5],
[-91.218, 43.501],
[-91.244, 43.773],
[-91.441, 44.002],
[-91.893, 44.231],
[-91.964, 44.362],
[-92.549, 44.578],
[-92.805, 44.768],
[-92.751, 44.942],
[-92.762, 45.285],
[-92.647, 45.438],
[-92.87, 45.715],
[-92.721, 45.884],
[-92.294, 46.074],
[-92.292, 46.663],
[-92.015, 46.706],
[-92.062, 46.804],
[-91.457, 47.139],
[-90.868, 47.557],
[-90.537, 47.703],
[-89.974, 47.831],
[-89.868, 47.99],
[-90.136, 48.112],
[-90.704, 48.096],
[-90.844, 48.244],
[-91.25, 48.084],
[-91.543, 48.053],
[-91.715, 48.199],
[-91.981, 48.248],
[-92.955, 48.631],
[-93.207, 48.642],
[-93.468, 48.546],
[-93.815, 48.527],
[-93.844, 48.629],
[-94.447, 48.693],
[-94.694, 48.789],
[-94.816, 49.321],
[-95.153, 49.384],
[-95.154, 48.999],
[-97.229, 49.001],
],
],
},
properties: { name: "Minnesota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-87.524, 41.708],
[-87.526, 40.535],
[-87.532, 39.348],
[-87.625, 39.102],
[-87.499, 38.758],
[-88.031, 38.031],
[-88.028, 37.799],
[-87.873, 37.921],
[-87.626, 37.852],
[-87.419, 37.945],
[-87.18, 37.841],
[-86.811, 37.997],
[-86.722, 37.893],
[-86.321, 38.147],
[-86.206, 38.022],
[-85.922, 38.029],
[-85.816, 38.283],
[-85.416, 38.546],
[-85.449, 38.713],
[-85.187, 38.688],
[-84.786, 38.882],
[-84.82, 39.105],
[-84.804, 40.353],
[-84.806, 41.696],
[-84.806, 41.76],
[-86.825, 41.76],
[-87.262, 41.62],
[-87.524, 41.708],
],
],
},
properties: { name: "Indiana" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.265, 42.746],
[-73.508, 42.086],
[-73.487, 42.05],
[-71.799, 42.008],
[-71.381, 42.019],
[-71.329, 41.783],
[-71.133, 41.66],
[-71.121, 41.497],
[-70.91, 41.577],
[-70.734, 41.486],
[-70.322, 41.631],
[-70.662, 41.961],
[-70.731, 42.211],
[-70.975, 42.356],
[-70.655, 42.582],
[-70.817, 42.872],
[-71.15, 42.815],
[-71.294, 42.697],
[-72.459, 42.727],
[-73.265, 42.746],
],
],
},
properties: { name: "Massachusetts" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-102.052, 40.003],
[-102.046, 38.698],
[-102.042, 36.993],
[-100.856, 36.999],
[-99.129, 36.999],
[-97.462, 36.999],
[-95.787, 36.999],
[-94.618, 36.999],
[-94.613, 38.238],
[-94.607, 39.113],
[-94.8, 39.206],
[-95.114, 39.554],
[-94.86, 39.75],
[-95.308, 40],
[-96.47, 40.001],
[-98.076, 40.002],
[-99.813, 40.001],
[-101.06, 40.002],
[-102.052, 40.003],
],
],
},
properties: { name: "Kansas" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-119.999, 41.995],
[-120, 41.184],
[-119.998, 39.957],
[-120.001, 39],
[-118.95, 38.269],
[-117.681, 37.353],
[-116.488, 36.459],
[-115.648, 35.809],
[-114.633, 35.002],
[-114.573, 35.139],
[-114.664, 35.449],
[-114.736, 36.104],
[-114.372, 36.143],
[-114.152, 36.025],
[-114.047, 36.194],
[-114.051, 37],
[-114.05, 37.881],
[-114.049, 39.006],
[-114.046, 40.398],
[-114.042, 41.994],
[-115.87, 41.997],
[-117.026, 42],
[-118.776, 41.993],
[-119.999, 41.995],
],
],
},
properties: { name: "Nevada" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.343, 45.011],
[-73.39, 44.62],
[-73.294, 44.441],
[-73.437, 44.043],
[-73.351, 43.77],
[-73.415, 43.658],
[-73.242, 43.535],
[-73.265, 42.746],
[-72.459, 42.727],
[-72.54, 42.805],
[-72.445, 43.004],
[-72.379, 43.574],
[-72.183, 43.808],
[-72.037, 44.103],
[-72.046, 44.292],
[-71.819, 44.353],
[-71.58, 44.502],
[-71.627, 44.747],
[-71.501, 45.013],
[-72.349, 45.006],
[-73.343, 45.011],
],
],
},
properties: { name: "Vermont" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-73.487, 42.05],
[-73.551, 41.295],
[-73.728, 41.101],
[-73.657, 40.985],
[-73.422, 41.048],
[-72.936, 41.258],
[-72.547, 41.25],
[-71.861, 41.32],
[-71.798, 41.417],
[-71.799, 42.008],
[-73.487, 42.05],
],
],
},
properties: { name: "Connecticut" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-75.415, 39.802],
[-75.559, 39.63],
[-75.528, 39.498],
[-75.244, 39.286],
[-74.886, 39.144],
[-74.647, 39.212],
[-74.413, 39.361],
[-74.101, 39.756],
[-73.971, 40.348],
[-74.261, 40.502],
[-74.087, 40.652],
[-73.894, 40.997],
[-74.695, 41.357],
[-75.133, 40.98],
[-75.187, 40.569],
[-74.722, 40.154],
[-75.415, 39.802],
],
],
},
properties: { name: "New Jersey" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-81.678, 36.588],
[-81.734, 36.413],
[-81.908, 36.302],
[-82.029, 36.124],
[-82.211, 36.159],
[-82.779, 35.993],
[-82.978, 35.783],
[-83.162, 35.763],
[-83.498, 35.563],
[-83.772, 35.562],
[-84.022, 35.407],
[-84.098, 35.247],
[-84.283, 35.227],
[-84.322, 34.988],
[-83.109, 35.001],
[-82.411, 35.202],
[-81.043, 35.149],
[-80.782, 34.936],
[-80.797, 34.824],
[-79.675, 34.805],
[-78.541, 33.851],
[-78.137, 33.912],
[-77.96, 33.853],
[-77.829, 34.163],
[-77.635, 34.36],
[-77.137, 34.633],
[-76.727, 34.697],
[-76.536, 34.589],
[-76.137, 34.988],
[-75.913, 35.12],
[-75.534, 35.226],
[-75.459, 35.597],
[-75.718, 36.114],
[-75.867, 36.551],
[-76.917, 36.546],
[-78.51, 36.541],
[-80.295, 36.544],
[-81.678, 36.588],
],
],
},
properties: { name: "North Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.042, 41.994],
[-114.046, 40.398],
[-114.049, 39.006],
[-114.05, 37.881],
[-114.051, 37],
[-112.966, 37],
[-111.278, 37],
[-110.001, 36.998],
[-109.045, 36.999],
[-109.042, 38.165],
[-109.06, 38.275],
[-109.051, 39.875],
[-109.05, 41.001],
[-111.047, 40.998],
[-111.047, 42.002],
[-112.11, 41.998],
[-114.042, 41.994],
],
],
},
properties: { name: "Utah" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.049, 49],
[-104.042, 47.803],
[-104.045, 45.945],
[-102.088, 45.945],
[-100.762, 45.944],
[-99.49, 45.94],
[-97.777, 45.935],
[-96.564, 45.935],
[-96.601, 46.32],
[-96.791, 46.637],
[-96.854, 47.572],
[-97.147, 48.169],
[-97.1, 48.668],
[-97.229, 49.001],
[-98.869, 49],
[-99.914, 48.999],
[-102.217, 48.999],
[-104.049, 49],
],
],
},
properties: { name: "North Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-83.109, 35.001],
[-83.324, 34.79],
[-83.339, 34.682],
[-83.048, 34.493],
[-82.874, 34.472],
[-82.715, 34.148],
[-82.557, 33.945],
[-82.324, 33.82],
[-82.162, 33.611],
[-81.926, 33.463],
[-81.933, 33.344],
[-81.755, 33.152],
[-81.502, 33.015],
[-81.397, 32.606],
[-81.195, 32.465],
[-81.113, 32.113],
[-80.886, 32.035],
[-80.338, 32.479],
[-80.001, 32.606],
[-79.57, 32.927],
[-79.36, 33.007],
[-79.215, 33.156],
[-79.135, 33.404],
[-78.773, 33.769],
[-78.541, 33.851],
[-79.675, 34.805],
[-80.797, 34.824],
[-80.782, 34.936],
[-81.043, 35.149],
[-82.411, 35.202],
[-83.109, 35.001],
],
],
},
properties: { name: "South Carolina" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-91.166, 33.004],
[-91.072, 32.938],
[-91.114, 32.74],
[-91.053, 32.438],
[-90.921, 32.342],
[-91.035, 32.101],
[-91.36, 31.799],
[-91.536, 31.338],
[-91.644, 31.234],
[-91.56, 31.05],
[-90.759, 31],
[-89.728, 31.002],
[-89.836, 30.727],
[-89.608, 30.217],
[-89.525, 30.181],
[-89.345, 30.293],
[-88.894, 30.393],
[-88.472, 30.32],
[-88.395, 30.369],
[-88.469, 31.933],
[-88.317, 33.184],
[-88.098, 34.892],
[-88.2, 34.996],
[-89.435, 34.994],
[-90.309, 34.996],
[-90.25, 34.907],
[-90.474, 34.789],
[-90.587, 34.616],
[-90.575, 34.415],
[-90.895, 34.224],
[-91.061, 33.878],
[-91.027, 33.764],
[-91.216, 33.529],
[-91.069, 33.233],
[-91.166, 33.004],
],
],
},
properties: { name: "Mississippi" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-109.05, 41.001],
[-109.051, 39.875],
[-109.06, 38.275],
[-109.042, 38.165],
[-109.045, 36.999],
[-108.001, 37],
[-106.006, 36.995],
[-104.732, 36.993],
[-103.002, 37],
[-102.042, 36.993],
[-102.046, 38.698],
[-102.052, 40.003],
[-102.052, 41.002],
[-104.053, 41.001],
[-104.855, 40.998],
[-106.191, 40.998],
[-107.367, 41.003],
[-109.05, 41.001],
],
],
},
properties: { name: "Colorado" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-104.055, 44.25],
[-104.053, 43.001],
[-102.082, 42.999],
[-100.198, 42.998],
[-98.499, 42.999],
[-98.435, 42.929],
[-97.95, 42.77],
[-97.858, 42.865],
[-97.238, 42.853],
[-97.131, 42.772],
[-96.698, 42.659],
[-96.611, 42.506],
[-96.446, 42.491],
[-96.622, 42.779],
[-96.439, 43.114],
[-96.522, 43.221],
[-96.453, 43.5],
[-96.458, 45.308],
[-96.711, 45.437],
[-96.826, 45.654],
[-96.587, 45.816],
[-96.564, 45.935],
[-97.777, 45.935],
[-99.49, 45.94],
[-100.762, 45.944],
[-102.088, 45.945],
[-104.045, 45.945],
[-104.058, 44.997],
],
],
},
properties: { name: "South Dakota" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-103.002, 37],
[-103.002, 36.5],
[-101.624, 36.5],
[-100, 36.5],
[-100, 35.619],
[-100, 34.561],
[-99.696, 34.381],
[-99.275, 34.387],
[-99.19, 34.214],
[-98.737, 34.131],
[-98.364, 34.157],
[-98.099, 34.104],
[-97.866, 33.849],
[-97.672, 33.991],
[-97.444, 33.824],
[-97.206, 33.81],
[-96.952, 33.945],
[-96.851, 33.847],
[-96.593, 33.831],
[-96.363, 33.694],
[-96.152, 33.832],
[-95.557, 33.927],
[-95.283, 33.878],
[-95.226, 33.962],
[-94.842, 33.739],
[-94.486, 33.638],
[-94.432, 35.37],
[-94.618, 36.499],
[-94.618, 36.999],
[-95.787, 36.999],
[-97.462, 36.999],
[-99.129, 36.999],
[-100.856, 36.999],
[-102.042, 36.993],
[-103.002, 37],
],
],
},
properties: { name: "Oklahoma" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-104.058, 44.997],
[-106.264, 44.994],
[-108.621, 45],
[-111.044, 45.001],
[-111.049, 44.474],
[-111.045, 43.316],
[-111.047, 42.002],
[-111.047, 40.998],
[-109.05, 41.001],
[-107.367, 41.003],
[-106.191, 40.998],
[-104.855, 40.998],
[-104.053, 41.001],
[-104.053, 42.25],
[-104.053, 43.001],
[-104.055, 44.25],
[-104.058, 44.997],
],
],
},
properties: { name: "Wyoming" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-82.594, 38.422],
[-82.626, 38.135],
[-82.296, 37.686],
[-81.968, 37.538],
[-81.85, 37.285],
[-81.561, 37.207],
[-81.362, 37.338],
[-81.225, 37.235],
[-80.919, 37.306],
[-80.545, 37.475],
[-80.292, 37.537],
[-80.292, 37.684],
[-79.788, 38.273],
[-79.649, 38.592],
[-79.298, 38.416],
[-78.999, 38.84],
[-78.773, 38.894],
[-78.414, 39.158],
[-78.347, 39.466],
[-77.828, 39.132],
[-77.72, 39.321],
[-77.83, 39.587],
[-78.082, 39.671],
[-78.383, 39.622],
[-78.461, 39.526],
[-78.707, 39.556],
[-79.091, 39.472],
[-79.487, 39.206],
[-79.477, 39.721],
[-80.519, 39.721],
[-80.519, 40.639],
[-80.668, 40.582],
[-80.607, 40.304],
[-80.803, 39.919],
[-80.83, 39.712],
[-81.129, 39.449],
[-81.348, 39.346],
[-81.456, 39.409],
[-81.678, 39.274],
[-81.898, 38.93],
[-82.007, 39.03],
[-82.209, 38.803],
[-82.175, 38.608],
[-82.324, 38.449],
[-82.594, 38.422],
],
],
},
properties: { name: "West Virginia" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.084, 45.305],
[-71.037, 44.736],
[-70.973, 43.57],
[-70.984, 43.376],
[-70.704, 43.06],
[-70.554, 43.322],
[-70.416, 43.361],
[-70.168, 43.675],
[-69.916, 43.775],
[-69.321, 43.857],
[-69.077, 43.974],
[-68.439, 44.116],
[-68.126, 44.387],
[-67.855, 44.419],
[-67.449, 44.6],
[-67.293, 44.599],
[-66.95, 44.817],
[-67.112, 45.112],
[-67.48, 45.268],
[-67.417, 45.502],
[-67.803, 45.678],
[-67.78, 45.938],
[-67.79, 47.066],
[-68.204, 47.34],
[-68.362, 47.356],
[-68.901, 47.179],
[-69.04, 47.245],
[-69.039, 47.422],
[-69.22, 47.457],
[-69.997, 46.695],
[-70.054, 46.429],
[-70.291, 46.186],
[-70.259, 45.891],
[-70.781, 45.431],
[-71.084, 45.305],
],
],
},
properties: { name: "Maine" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.501, 45.013],
[-71.627, 44.747],
[-71.58, 44.502],
[-71.819, 44.353],
[-72.046, 44.292],
[-72.037, 44.103],
[-72.183, 43.808],
[-72.379, 43.574],
[-72.445, 43.004],
[-72.54, 42.805],
[-72.459, 42.727],
[-71.294, 42.697],
[-71.15, 42.815],
[-70.817, 42.872],
[-70.704, 43.06],
[-70.984, 43.376],
[-70.973, 43.57],
[-71.037, 44.736],
[-71.084, 45.305],
[-71.284, 45.302],
[-71.501, 45.013],
],
],
},
properties: { name: "New Hampshire" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-114.72, 32.719],
[-114.814, 32.494],
[-113.751, 32.169],
[-112.365, 31.741],
[-111.075, 31.332],
[-109.05, 31.333],
[-109.047, 32.778],
[-109.046, 33.875],
[-109.046, 34.96],
[-109.046, 36.117],
[-109.045, 36.999],
[-110.001, 36.998],
[-111.278, 37],
[-112.966, 37],
[-114.051, 37],
[-114.047, 36.194],
[-114.152, 36.025],
[-114.372, 36.143],
[-114.736, 36.104],
[-114.664, 35.449],
[-114.573, 35.139],
[-114.633, 35.002],
[-114.634, 34.873],
[-114.465, 34.691],
[-114.335, 34.45],
[-114.139, 34.26],
[-114.428, 34.093],
[-114.535, 33.928],
[-114.525, 33.552],
[-114.707, 33.377],
[-114.671, 33.038],
[-114.511, 33.023],
[-114.469, 32.845],
[-114.72, 32.719],
],
],
},
properties: { name: "Arizona" },
},
{
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-71.861, 41.32],
[-71.483, 41.372],
[-71.429, 41.454],
[-71.121, 41.497],
[-71.133, 41.66],
[-71.329, 41.783],
[-71.381, 42.019],
[-71.799, 42.008],
[-71.798, 41.417],
[-71.861, 41.32],
],
],
},
properties: { name: "Rhode Island" },
},
],
};
topology,
series: [
{
type: 'map-shape-background',
},
// ...
]As this is a background series rather than a data series, many normal series behaviours are disabled - including interactivity and appearing in the legend.
API Reference Copy Link
Properties available on the AgMapShapeSeriesOptions interface.
- type required
'map-shape' - Configuration for the Map Shape Series.
- topology
GeoJSON - GeoJSON data.
- topologyIdKey
stringdefault: name - The property to reference in the topology to match up with data.
- title
string - The title to use for the series.
- legendItemName
string - The text to display in the legend for this series. If multiple series share this value, they will be merged for the legend toggle behaviour.
- id
stringdefault: auto-generated value - Primary identifier for the series. This is provided as `seriesId` in user callbacks to differentiate multiple series. Auto-generated ids are subject to future change without warning, if your callbacks need to vary behaviour by series please supply your own unique `id` value.
- context
ContextDefault - Context object to use in callbacks.
- data
DatumDefault[] - The data to use when rendering the series. If this is not supplied, data must be set on the chart instead.
- visible
boolean - Whether to display the series.
- cursor
string - The cursor to use for hovered markers. This config is identical to the CSS `cursor` property.
- selection
AgSelectionOptions - Configuration for data selection.
- nodeClickRange
InteractionRange - Range from a node that a click triggers the listener.
- showInLegend
boolean - Whether to include the series in the legend.
- listeners
AgSeriesListeners - A map of event names to event listeners.
- idKey
DatumKey - The name of the node key containing the id value.
- colorKey
DatumKey - The name of the node key containing the colour value. This value (along with `colorScale` config) will be used to determine the segment colour.
- labelKey
DatumKey - The key to use to retrieve values from the data to use as labels inside shapes.
- idName
string - A human-readable description of the id-values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters.
- colorName
string - A human-readable description of the colour values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters.
- labelName
string - A human-readable description of the label values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters.
- colorScale
AgColorScale - Configuration for colour scale with fills, domain, and mode.
- label
AgChartAutoSizedSecondaryLabelOptions - Configuration for the labels shown inside the shape.
- padding
PixelSize - Distance between the shape edges and the text.
- tooltip
AgSeriesTooltip - Series-specific tooltip configuration.
- itemStyler
Styler - A callback function for adjusting the styles of a particular Map shape based on the input parameters.
- highlight
AgMultiSeriesHighlightOptions - Configuration for highlighting when a series or legend item is hovered over.
- fill
AgColorType - The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill.
- fillOpacity
Opacity - The opacity of the fill colour.
- stroke
AgCssColorOrRef - The colour for the stroke.
- strokeWidth
PixelSize - The width of the stroke in pixels.
- strokeOpacity
Opacity - The opacity of the stroke colour.
- lineDash
PixelSize[] - An array specifying the length in pixels of alternating dashes and gaps.
- lineDashOffset
PixelSize - The initial offset of the dashed line in pixels.
Properties available on the AgMapShapeSeriesOptions interface.
- type required
'map-shape' - Configuration for the Map Shape Series.
- topology
GeoJSON - GeoJSON data.
- topologyIdKey
stringdefault: name - The property to reference in the topology to match up with data.
- title
string - The title to use for the series.
- legendItemName
string - The text to display in the legend for this series. If multiple series share this value, they will be merged for the legend toggle behaviour.
- id
stringdefault: auto-generated value - Primary identifier for the series. This is provided as `seriesId` in user callbacks to differentiate multiple series. Auto-generated ids are subject to future change without warning, if your callbacks need to vary behaviour by series please supply your own unique `id` value.
- context
ContextDefault - Context object to use in callbacks.
- data
DatumDefault[] - The data to use when rendering the series. If this is not supplied, data must be set on the chart instead.
- visible
boolean - Whether to display the series.
- cursor
string - The cursor to use for hovered markers. This config is identical to the CSS `cursor` property.
- selection
AgSelectionOptions - Configuration for data selection.
- nodeClickRange
InteractionRange - Range from a node that a click triggers the listener.
- showInLegend
boolean - Whether to include the series in the legend.
- listeners
AgSeriesListeners - A map of event names to event listeners.
- idKey
DatumKey - The name of the node key containing the id value.
- colorKey
DatumKey - The name of the node key containing the colour value. This value (along with `colorScale` config) will be used to determine the segment colour.
- labelKey
DatumKey - The key to use to retrieve values from the data to use as labels inside shapes.
- idName
string - A human-readable description of the id-values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters.
- colorName
string - A human-readable description of the colour values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters.
- labelName
string - A human-readable description of the label values. If supplied, this will be shown in the default tooltip and passed to the tooltip renderer as one of the parameters.
- colorScale
AgColorScale - Configuration for colour scale with fills, domain, and mode.
- label
AgChartAutoSizedSecondaryLabelOptions - Configuration for the labels shown inside the shape.
- padding
PixelSize - Distance between the shape edges and the text.
- tooltip
AgSeriesTooltip - Series-specific tooltip configuration.
- itemStyler
Styler - A callback function for adjusting the styles of a particular Map shape based on the input parameters.
- highlight
AgMultiSeriesHighlightOptions - Configuration for highlighting when a series or legend item is hovered over.
- fill
AgColorType - The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill.
- fillOpacity
Opacity - The opacity of the fill colour.
- stroke
AgCssColorOrRef - The colour for the stroke.
- strokeWidth
PixelSize - The width of the stroke in pixels.
- strokeOpacity
Opacity - The opacity of the stroke colour.
- lineDash
PixelSize[] - An array specifying the length in pixels of alternating dashes and gaps.
- lineDashOffset
PixelSize - The initial offset of the dashed line in pixels.
Properties available on the AgMapShapeBackgroundOptions interface.
- type required
'map-shape-background' - Configuration for the Map Shape Background.
- topology
GeoJSON - GeoJSON data.
- fill
AgColorType - The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill.
- fillOpacity
Opacity - The opacity of the fill colour.
- stroke
AgCssColorOrRef - The colour for the stroke.
- strokeWidth
PixelSize - The width of the stroke in pixels.
- strokeOpacity
Opacity - The opacity of the stroke colour.
- lineDash
PixelSize[] - An array specifying the length in pixels of alternating dashes and gaps.
- lineDashOffset
PixelSize - The initial offset of the dashed line in pixels.
Properties available on the AgMapShapeBackgroundOptions interface.
- type required
'map-shape-background' - Configuration for the Map Shape Background.
- topology
GeoJSON - GeoJSON data.
- fill
AgColorType - The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill.
- fillOpacity
Opacity - The opacity of the fill colour.
- stroke
AgCssColorOrRef - The colour for the stroke.
- strokeWidth
PixelSize - The width of the stroke in pixels.
- strokeOpacity
Opacity - The opacity of the stroke colour.
- lineDash
PixelSize[] - An array specifying the length in pixels of alternating dashes and gaps.
- lineDashOffset
PixelSize - The initial offset of the dashed line in pixels.