Skip to content

86 charts, all live.

Every chart below is drawn in your browser from the spec under “Show spec”: exactly what an agent would send. Hover for values, drag the time sliders, click a treemap group to drill down or a network node to focus it. Chart text uses the default Spanish (Chile) locale; set locale: "en" for English.

Compare 7

Columns

bar

Few short categories become columns, sorted largest first, with the value on each tip and no axis, since the values are already written.

ColumnsColumns
Show spec
plot({
  type: "bar",
  title: "Biobío concentra el 30% de las ventas del sur",
  subtitle: "Ventas por región, millones de pesos, 2025",
  source: "datos ilustrativos",
  data: [
    {region: "Biobío", ventas: 1240},
    {region: "Araucanía", ventas: 880},
    // … 4 more rows
  ],
  x: "region",
  y: "ventas"
})
Open in playground →

Horizontal bars with highlight

bar

Long labels switch to horizontal bars automatically. highlight emphasizes one category and mutes the rest.

Horizontal bars with highlightHorizontal bars with highlight
Show spec
plot({
  type: "bar",
  title: "Casi tres de cada diez reclamos son por retrasos en la entrega",
  subtitle: "Reclamos recibidos por motivo, enero a junio",
  source: "datos ilustrativos",
  data: [
    {servicio: "Retraso en la entrega del pedido", casos: 412},
    {servicio: "Cobro duplicado en la tarjeta", casos: 268},
    // … 5 more rows
  ],
  x: "servicio",
  y: "casos",
  highlight: "Retraso en la entrega del pedido"
})
Open in playground →

Grouped bars

bar

One color per series, in fixed order. With two or more series the legend is always there.

Grouped barsGrouped bars
Show spec
plot({
  type: "bar",
  title: "En 2025 el canal online superó por primera vez a la tienda",
  subtitle: "Ventas por canal, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {"año":2022, canal: "Tienda", ventas: 820},
    {"año":2022, canal: "Online", ventas: 310},
    // … 10 more rows
  ],
  x: "año",
  y: "ventas",
  series: "canal"
})
Open in playground →

100% stacked

bar

stack: "percent" compares composition. Shares are written inside a segment only when they fit.

100% stacked100% stacked
Show spec
plot({
  type: "bar",
  title: "En Biobío casi 4 de cada 10 pesos se venden online",
  subtitle: "Participación de cada canal en las ventas regionales",
  source: "datos ilustrativos",
  data: [
    {region: "Biobío", canal: "Tienda", ventas: 520},
    {region: "Biobío", canal: "Online", ventas: 480},
    // … 13 more rows
  ],
  x: "region",
  y: "ventas",
  series: "canal",
  stack: "percent",
  horizontal: true
})
Open in playground →

Countplot

count

type: "countplot" counts rows per category, no pre-aggregation needed.

CountplotCountplot
Show spec
plot({
  type: "countplot",
  title: "Concepción concentra 60 de 192 respuestas",
  subtitle: "Respuestas de la encuesta por sede",
  source: "datos ilustrativos",
  data: [
    {sede: "Concepción", canal: "Teléfono", nota: 7},
    {sede: "Concepción", canal: "Presencial", nota: 4.405015014597343},
    // … 190 more rows
  ],
  x: "sede"
})
Open in playground →

Estimated columns

bar

On a time axis, dashedFrom hatches the columns from that year on: stripes of the same color and a dashed border. The legend explains the hatching, and hovering it highlights only those columns.

Estimated columnsEstimated columns
Show spec
plot({
  type: "bar",
  title: "De US$ 24,1 mil millones en 2024 a casi US$ 29 mil millones en 2028",
  subtitle: "Exportaciones de fruta fresca, miles de millones de US$",
  source: "datos ilustrativos",
  data: [
    {"año":2016, valor: 15.2},
    {"año":2017, valor: 18.6},
    // … 11 more rows
  ],
  x: "año",
  y: "valor",
  dashedFrom: 2025,
  dashedLabel: "Estimado",
  format: {
    decimals: 1
  }
})
Open in playground →

Provisional figures

bar

dashed: "provisional" reads a data field: rows with a truthy value are drawn dashed. It also takes a list of categories (dashed: ["Biobío"]).

Provisional figuresProvisional figures
Show spec
plot({
  type: "bar",
  title: "Maule lidera la cosecha; tres regiones aún no cierran su cifra",
  subtitle: "Cosecha de cerezas por región, miles de toneladas",
  source: "datos ilustrativos",
  data: [
    {region: "Maule", toneladas: 412, provisional: false},
    {region: "Ñuble", toneladas: 298, provisional: false},
    // … 5 more rows
  ],
  x: "region",
  y: "toneladas",
  horizontal: true,
  dashed: "provisional",
  dashedLabel: "Provisorio"
})
Open in playground →

Time 10

Lines with an annotation

line

Labels always sit at the end of each line; when they collide they are spread apart with a leader line. In the browser a slider narrows the period.

Lines with an annotationLines with an annotation
Show spec
plot({
  type: "line",
  title: "Ñuble acelera desde la apertura de su nueva sucursal",
  subtitle: "Ventas mensuales por región, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", region: "Biobío", ventas: 123},
    {mes: "2022-01", region: "Araucanía", ventas: 81},
    // … 142 more rows
  ],
  x: "mes",
  y: "ventas",
  series: "region",
  annotations: [
    {
      x: "2024-01",
      label: "Nueva sucursal en Chillán"
    }
  ]
})
Open in playground →

Index = 100 (no dual axis)

line

Measures on different scales never share two axes: index: true rebases them to 100 so growth can be compared.

Index = 100 (no dual axis)Index = 100 (no dual axis)
Show spec
plot({
  type: "line",
  title: "Los clientes crecieron 2,4 veces; la dotación, solo 7%",
  subtitle: "Índice 2018 = 100",
  source: "datos ilustrativos",
  data: [
    {"año":2018, ingresos: 1180, dotacion: 212, clientes: 3100},
    {"año":2019, ingresos: 1260, dotacion: 220, clientes: 3400},
    // … 6 more rows
  ],
  x: "año",
  y: [
    "clientes",
    "ingresos",
    "dotacion"
  ],
  labelsFor: {
    dotacion: "Dotación"
  },
  index: true,
  refLines: [
    {
      y: 100,
      label: "Base"
    }
  ]
})
Open in playground →

Area with a target

area

One hue at 12% opacity and a reference line for a target, average or threshold.

Area with a targetArea with a target
Show spec
plot({
  type: "area",
  title: "El saldo de caja superó la meta en enero de 2025",
  subtitle: "Saldo de caja a fin de mes, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {mes: "2024-01", saldo: 420},
    {mes: "2024-02", saldo: 457},
    // … 22 more rows
  ],
  x: "mes",
  y: "saldo",
  refLines: [
    {
      y: 600,
      label: "Meta"
    }
  ]
})
Open in playground →

100% stacked areas

area

stack: "percent" shows how each region's share of the total changes over time; labels at the end give the latest share. curve: "smooth" never invents peaks.

100% stacked areas100% stacked areas
Show spec
plot({
  type: "area",
  title: "Ñuble pasó de 19% a 27% de las ventas del sur entre 2022 y 2025",
  subtitle: "Participación mensual de cada región en las ventas, %",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", region: "Biobío", ventas: 123},
    {mes: "2022-01", region: "Araucanía", ventas: 81},
    // … 142 more rows
  ],
  x: "mes",
  y: "ventas",
  series: "region",
  stack: "percent",
  curve: "smooth"
})
Open in playground →

Period buttons with play

treemap

time: "año" shows one year at a time (the latest by default); every tile shows its change vs the previous year and colors follow each sector across years. Controls are opt-in: slider: true adds buttons when there are few periods and a minimal slider when there are many; "buttons" or "slider" force one, play: false hides play.

Period buttons with playPeriod buttons with play
Show spec
plot({
  type: "treemap",
  slider: true,
  title: "El cobre bajó de 67% a 55% de las exportaciones",
  subtitle: "Exportaciones por sector y producto, miles de millones de US$",
  source: "datos ilustrativos",
  data: [
    {"año":2018, sector: "Minería", producto: "Cobre", valor: 68.65},
    {"año":2018, sector: "Minería", producto: "Litio", valor: 1.33},
    // … 158 more rows
  ],
  path: [
    "sector",
    "producto"
  ],
  value: "valor",
  time: "año"
})
Open in playground →

Treemap colored by change

treemap

With time, every tile shows its share and its change vs the previous period; colorBy: "change" paints growth in the cool hue and decline in the warm one.

Treemap colored by changeTreemap colored by change
Show spec
plot({
  type: "treemap",
  slider: "buttons",
  play: false,
  title: "El litio y las cerezas crecen más rápido que el resto",
  subtitle: "Exportaciones por sector y producto, variación anual",
  source: "datos ilustrativos",
  data: [
    {"año":2018, sector: "Minería", producto: "Cobre", valor: 68.65},
    {"año":2018, sector: "Minería", producto: "Litio", valor: 1.33},
    // … 158 more rows
  ],
  path: [
    "sector",
    "producto"
  ],
  value: "valor",
  time: "año",
  colorBy: "change"
})
Open in playground →

Small multiples (facet)

area

facet: "region" draws one panel per region on the same scale with the same colors (seaborn col / col_wrap). Better than tangled lines.

Small multiples (facet)Small multiples (facet)
Show spec
plot({
  type: "area",
  title: "Las tres regiones crecen, Ñuble desde una base menor",
  subtitle: "Ventas mensuales, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", region: "Biobío", ventas: 123},
    {mes: "2022-01", region: "Araucanía", ventas: 81},
    // … 142 more rows
  ],
  x: "mes",
  y: "ventas",
  facet: "region",
  columns: 3
})
Open in playground →

Log scale

line

yScale: "log": exponential growth looks straight, so rates can be compared instead of levels. 1-2-5 ticks, no empty decades.

Log scaleLog scale
Show spec
plot({
  type: "line",
  title: "Los usuarios de la app se multiplicaron por 176 en cuatro años",
  subtitle: "Usuarios activos mensuales, escala logarítmica",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", plataforma: "App móvil", usuarios: 604},
    {mes: "2022-01", plataforma: "Sitio web", usuarios: 5581},
    // … 94 more rows
  ],
  x: "mes",
  y: "usuarios",
  series: "plataforma",
  yScale: "log"
})
Open in playground →

Line with a projection

line

dashedFrom: 2025 draws the projected stretch with a dashed stroke and hollow points over a soft band labeled with dashedLabel. Solid and dashed meet at the last firm value; the tooltip says which values are projected.

Line with a projectionLine with a projection
Show spec
plot({
  type: "line",
  title: "Las exportaciones llegarían a US$ 29 mil millones en 2028",
  subtitle: "Exportaciones de fruta fresca, miles de millones de US$",
  source: "datos ilustrativos",
  data: [
    {"año":2016, valor: 15.2},
    {"año":2017, valor: 18.6},
    // … 11 more rows
  ],
  x: "año",
  y: "valor",
  dashedFrom: 2025,
  dashedLabel: "Proyección",
  points: true,
  format: {
    decimals: 1
  }
})
Open in playground →

Stacked areas with a projection

area

In stacked areas, the stretch from dashedFrom is hatched in each series' color: the composition still reads, but it is clearly an estimate.

Stacked areas with a projectionStacked areas with a projection
Show spec
plot({
  type: "area",
  title: "La venta web superaría a la tienda desde 2025",
  subtitle: "Ventas por canal, millones de $",
  source: "datos ilustrativos",
  data: [
    {"año":"2021", canal: "Tienda", ventas: 410},
    {"año":"2021", canal: "Web", ventas: 120},
    // … 10 more rows
  ],
  x: "año",
  y: "ventas",
  series: "canal",
  dashedFrom: "2025",
  dashedLabel: "Estimación"
})
Open in playground →

Projects 3

Gantt chart

gantt

Tasks with start and end, grouped by phase with group. The filled part is the progress (progress), diamonds are milestones, arrows come from dependsOn and today marks where we are. Tentative work is hatched with dashed.

Gantt chartGantt chart
Show spec
plot({
  type: "gantt",
  title: "El proyecto llega a producción el 15 de junio; la integración con el ERP es la ruta crítica",
  subtitle: "Plan de trabajo por fase, 2026. La parte llena de cada barra es el avance",
  source: "datos ilustrativos",
  data: [
    {fase: "Diagnóstico", tarea: "Entrevistas con usuarios", inicio: "2026-01-05", fin: "2026-01-23", avance: 100},
    {fase: "Diagnóstico", tarea: "Mapa de procesos", inicio: "2026-01-19", fin: "2026-02-06", avance: 100, depende: "Entrevistas con usuarios"},
    // … 8 more rows
  ],
  task: "tarea",
  start: "inicio",
  end: "fin",
  group: "fase",
  progress: "avance",
  dependsOn: "depende",
  milestone: "hito",
  today: "2026-03-12",
  dashed: "tentativo",
  dashedLabel: "Por confirmar"
})
Open in playground →

Schedule in weeks

gantt

No dates: start as a week number and duration in weeks. With groupHeaders: false teams go in a color legend, and highlight brings one forward.

Schedule in weeksSchedule in weeks
Show spec
plot({
  type: "gantt",
  title: "Marketing concentra su trabajo en las últimas seis semanas del lanzamiento",
  subtitle: "Cronograma de lanzamiento por equipo, semanas desde el inicio",
  source: "datos ilustrativos",
  data: [
    {equipo: "Producto", tarea: "Definir alcance", semana: 1, semanas: 2},
    {equipo: "Diseño", tarea: "Identidad y empaque", semana: 2, semanas: 4},
    // … 5 more rows
  ],
  task: "tarea",
  start: "semana",
  duration: "semanas",
  group: "equipo",
  groupHeaders: false,
  highlight: "Marketing",
  xLabel: "Semana"
})
Open in playground →

Collapsible phases and critical path

gantt

With collapsed a phase rolls up into one row: its duration-weighted progress and its milestones (true collapses them all). In the browser, a click on the phase opens or closes it. critical: true marks the critical path, the tasks with no slack; short plans shade weekends.

Collapsible phases and critical pathCollapsible phases and critical path
Show spec
plot({
  type: "gantt",
  title: "La apertura del 22 de junio no tiene holgura: un día de atraso en la climatización la mueve",
  subtitle: "Plan de ampliación de la sucursal por fase, 2026. Permisos, ya cerrada, va contraída; la parte llena es el avance",
  source: "datos ilustrativos",
  data: [
    {fase: "Permisos", tarea: "Levantamiento del local", inicio: "2026-03-02", fin: "2026-03-06", avance: 100},
    {fase: "Permisos", tarea: "Planos y especificaciones", inicio: "2026-03-09", fin: "2026-03-20", avance: 100, depende: "Levantamiento del local"},
    // … 12 more rows
  ],
  task: "tarea",
  start: "inicio",
  end: "fin",
  group: "fase",
  progress: "avance",
  dependsOn: "depende",
  today: "2026-04-15",
  collapsed: [
    "Permisos"
  ],
  critical: true
})
Open in playground →

Part-to-whole 7

Three-level treemap

treemap

Sector › subsector › product with path. Areas are exact (no header bands), one solid color per sector, wider gaps between sectors than inside them, and a legend with each sector's share. Hover the legend to light up a sector.

Three-level treemapThree-level treemap
Show spec
plot({
  type: "treemap",
  title: "El cobre por sí solo explica el 54% de las exportaciones",
  subtitle: "Exportaciones por sector, subsector y producto, miles de millones de US$",
  source: "datos ilustrativos",
  data: [
    {sector: "Minería", subsector: "Metálica", producto: "Cobre", valor: 50.1},
    {sector: "Minería", subsector: "Metálica", producto: "Molibdeno", valor: 3.1},
    // … 23 more rows
  ],
  path: [
    "sector",
    "subsector",
    "producto"
  ],
  value: "valor"
})
Open in playground →

Treemap with focus (drill-down)

treemap

focus: ["Agro"] shows only that branch, keeping its colors, with breadcrumbs to go back. In the browser, a click on a group does the same.

Treemap with focus (drill-down)Treemap with focus (drill-down)
Show spec
plot({
  type: "treemap",
  title: "Dentro del agro, la fruta fresca suma el 73%",
  subtitle: "Exportaciones agropecuarias por subsector y producto, miles de millones de US$",
  source: "datos ilustrativos",
  data: [
    {sector: "Minería", subsector: "Metálica", producto: "Cobre", valor: 50.1},
    {sector: "Minería", subsector: "Metálica", producto: "Molibdeno", valor: 3.1},
    // … 23 more rows
  ],
  path: [
    "sector",
    "subsector",
    "producto"
  ],
  value: "valor",
  focus: [
    "Agro"
  ]
})
Open in playground →

Sunburst

sunburst

The same hierarchy as rings: the inner ring is level 1 and outer rings inherit its color. Total in the center. Click to drill in.

SunburstSunburst
Show spec
plot({
  type: "sunburst",
  title: "Docencia concentra el 49% del presupuesto",
  subtitle: "Presupuesto por área, unidad e ítem, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {area: "Docencia", unidad: "Pregrado", item: "Remuneraciones", monto: 2100},
    {area: "Docencia", unidad: "Pregrado", item: "Operación", monto: 520},
    // … 17 more rows
  ],
  path: [
    "area",
    "unidad",
    "item"
  ],
  value: "monto",
  format: "currency"
})
Open in playground →

Pie

pie

Percentages inside each slice and a legend table beside it. Six parts at most.

PiePie
Show spec
plot({
  type: "pie",
  title: "Hidroeléctrica y solar generan casi la mitad de la electricidad",
  subtitle: "Generación eléctrica por fuente, % del total anual",
  source: "datos ilustrativos",
  data: [
    {fuente: "Hidroeléctrica", gwh: 27},
    {fuente: "Solar", gwh: 22},
    // … 4 more rows
  ],
  label: "fuente",
  value: "gwh"
})
Open in playground →

Donut with outside labels

donut

labels: "outside" puts name and percentage outside, with leader lines that never collide.

Donut with outside labelsDonut with outside labels
Show spec
plot({
  type: "donut",
  title: "Docencia e investigación suman el 73% del presupuesto",
  subtitle: "Presupuesto 2025 por área, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {area: "Docencia", monto: 4200},
    {area: "Investigación", monto: 2600},
    // … 4 more rows
  ],
  label: "area",
  value: "monto",
  format: "currency",
  labels: "outside"
})
Open in playground →

Half donut

donut

half: true draws a semicircle with the total on the baseline. Good for simple shares in little height.

Half donutHalf donut
Show spec
plot({
  type: "donut",
  half: true,
  title: "El canal online ya vende más que la tienda",
  subtitle: "Ventas 2025 por canal, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {canal: "Online", ventas: 780},
    {canal: "Tienda", ventas: 740},
    // … 1 more rows
  ],
  label: "canal",
  value: "ventas",
  format: "currency"
})
Open in playground →

Donut with an estimated part

donut

A dashed segment keeps its color and place, with hatching and an inner dashed border; its swatch in the table-legend is hatched too.

Donut with an estimated partDonut with an estimated part
Show spec
plot({
  type: "donut",
  title: "Las remuneraciones son casi la mitad del gasto",
  subtitle: "Gasto operacional por partida, millones de $",
  source: "datos ilustrativos",
  data: [
    {partida: "Remuneraciones", monto: 4620},
    {partida: "Arriendo", monto: 1810},
    // … 3 more rows
  ],
  label: "partida",
  value: "monto",
  dashed: "Sin clasificar",
  dashedLabel: "Estimado",
  format: {
    prefix: "$",
    suffix: " M"
  }
})
Open in playground →

Maps 13

Chile choropleth

choropleth

Regions matched by name, code or alias ("RM", "Biobio", "Aisén"). The map sits on the left and a north-to-south column shows name, bar and value.

Chile choroplethChile choropleth
Show spec
plot({
  type: "choropleth",
  geo: "chile",
  title: "El sur austral tiene el menor desempleo: 3,8% en Magallanes",
  subtitle: "Tasa de desocupación por región, %",
  source: "datos ilustrativos",
  data: [
    {region: "Arica y Parinacota", tasa: 8.9},
    {region: "Tarapacá", tasa: 7.8},
    // … 14 more rows
  ],
  key: "region",
  value: "tasa",
  format: {
    suffix: "%",
    decimals: 1
  },
  legendTitle: "Desocupación"
})
Open in playground →

Diverging map

choropleth

With midpoint: 0 the scale diverges: one color for gains, another for losses and a neutral gray near zero.

Diverging mapDiverging map
Show spec
plot({
  type: "choropleth",
  geo: "chile",
  title: "10 de 16 regiones aumentaron su empleo en el año",
  subtitle: "Variación anual de ocupados, %",
  source: "datos ilustrativos",
  data: [
    {region: "Arica y Parinacota", variacion: -1.8},
    {region: "Tarapacá", variacion: 0.6},
    // … 14 more rows
  ],
  key: "region",
  value: "variacion",
  midpoint: 0,
  format: {
    suffix: "%",
    decimals: 1
  },
  legendTitle: "Variación"
})
Open in playground →

Proportional symbol map

symbolmap

For absolute amounts (people, money) the circle area is proportional to the value; coloring regions misleads when their sizes differ.

Proportional symbol mapProportional symbol map
Show spec
plot({
  type: "symbolmap",
  geo: "chile",
  title: "La Región Metropolitana concentra el 42% de los habitantes",
  subtitle: "Población por región",
  source: "datos ilustrativos",
  data: [
    {region: "Arica y Parinacota", habitantes: 253000},
    {region: "Tarapacá", habitantes: 391000},
    // … 14 more rows
  ],
  key: "region",
  value: "habitantes",
  format: "compact"
})
Open in playground →

World map

choropleth

Equal Earth projection (true areas). Countries by ISO-3 code, Spanish or English name. missing: "plain" leaves countries without data unhatched.

World mapWorld map
Show spec
plot({
  type: "choropleth",
  geo: "world",
  title: "China compra el 51% del cobre exportado",
  subtitle: "Exportaciones de cobre por destino, miles de millones de US$",
  source: "datos ilustrativos",
  data: [
    {iso3: "CHN", valor: 26.1},
    {iso3: "JPN", valor: 4.6},
    // … 19 more rows
  ],
  key: "iso3",
  value: "valor",
  missing: "plain",
  labels: 4,
  format: {
    prefix: "US$",
    decimals: 1
  },
  legendTitle: "Miles de millones"
})
Open in playground →

United States map

choropleth

geo: "usa": 50 states, DC and Puerto Rico in an Albers projection with Alaska and Hawaii insets. States match by postal code, English or Spanish name, or FIPS code. Small northeastern states get labels outside with leader lines. dashed hatches the ones with preliminary figures. In the browser: click a state to zoom in, Ctrl + scroll or pinch to zoom, drag to pan.

United States mapUnited States map
Show spec
plot({
  type: "choropleth",
  geo: "usa",
  title: "Idaho creció más rápido (8,9%) y 12 estados perdieron población",
  subtitle: "Variación de la población 2020–2024, %",
  source: "datos ilustrativos",
  data: [
    {estado: "AL", crecimiento: 2.1, preliminar: false},
    {estado: "AK", crecimiento: -0.4, preliminar: false},
    // … 49 more rows
  ],
  key: "estado",
  value: "crecimiento",
  midpoint: 0,
  dashed: "preliminar",
  dashedLabel: "Cifra preliminar",
  format: {
    suffix: "%",
    decimals: 1
  },
  legendTitle: "Variación"
})
Open in playground →

Map with a time slider

choropleth

time: "año" shows one year at a time; slider: true adds the controls and, with play, each state's color glides into the next year's. The color scale stays fixed across years (scale with breaks) so colors are comparable.

Map with a time sliderMap with a time slider
Show spec
plot({
  type: "choropleth",
  geo: "usa",
  time: "año",
  slider: true,
  title: "El desempleo saltó en 2020 en todos los estados y volvió a su nivel en 2022",
  subtitle: "Tasa de desempleo por estado, %",
  source: "datos ilustrativos",
  data: [
    {estado: "AL","año":2019, tasa: 2.5},
    {estado: "AL","año":2020, tasa: 6.5},
    // … 304 more rows
  ],
  key: "estado",
  value: "tasa",
  scale: [
    3,
    4,
    5,
    6,
    8
  ],
  format: {
    suffix: "%",
    decimals: 1
  },
  legendTitle: "Desempleo"
})
Open in playground →

US proportional symbol map

symbolmap

For totals, area-proportional circles on each state. The size legend sits on top, in a row, so it never collides with the Alaska and Hawaii insets.

US proportional symbol mapUS proportional symbol map
Show spec
plot({
  type: "symbolmap",
  geo: "usa",
  title: "Cuatro estados reúnen el 34% de la población",
  subtitle: "Habitantes por estado, 2024",
  source: "datos ilustrativos",
  data: [
    {estado: "AL", habitantes: 5100000},
    {estado: "AK", habitantes: 700000},
    // … 49 more rows
  ],
  key: "estado",
  value: "habitantes",
  format: "compact",
  labels: [
    "CA",
    "TX",
    "FL",
    "NY"
  ]
})
Open in playground →

Your own GeoJSON

choropleth

Pass any GeoJSON or TopoJSON in geo. The property that matches your data is detected for you (here ADMIN); a text value colors by category. markers adds points by lon/lat and layers overlays lines.

Your own GeoJSONYour own GeoJSON
Show spec
plot({
  type: "choropleth",
  geo: {
    type: "FeatureCollection",
    features: [
      {
        type: "Feature",
        properties: {
          ADMIN: "Argentina",
          ISO_A3: "ARG"
        },
        geometry: {
          type: "MultiPolygon",
          coordinates: [
            [
              [
                [
                  -68.63,
                  -52.64
                ],
                [
                  -68.25,
                  -53.1
                ],
                [
                  -67.75,
                  -53.85
                ],
                [
                  -66.45,
                  -54.45
                ],
                [
                  -65.05,
                  -54.7
                ],
                [
                  -65.5,
                  -55.2
                ],
                [
                  -66.45,
                  -55.25
                ],
                [
                  -66.96,
                  -54.9
                ],
                [
                  -68.63,
                  -54.87
                ],
                [
                  -68.63,
                  -52.64
                ]
              ]
            ],
            [
              [
                [
                  -57.62,
                  -30.22
                ],
                [
                  -57.88,
                  -31.02
                ],
                [
                  -58.14,
                  -32.04
                ],
                [
                  -58.13,
                  -33.04
                ],
                [
                  -58.35,
                  -33.26
                ],
                [
                  -58.5,
                  -34.43
                ],
                [
                  -57.22,
                  -35.29
                ],
                [
                  -57.36,
                  -35.98
                ],
                [
                  -56.74,
                  -36.41
                ],
                [
                  -56.79,
                  -36.9
                ],
                [
                  -57.75,
                  -38.18
                ],
                [
                  -59.23,
                  -38.72
                ],
                [
                  -61.24,
                  -38.93
                ],
                [
                  -62.34,
                  -38.83
                ],
                [
                  -62.12,
                  -39.42
                ],
                [
                  -62.33,
                  -40.17
                ],
                [
                  -62.15,
                  -40.68
                ],
                [
                  -62.75,
                  -41.03
                ],
                [
                  -63.77,
                  -41.17
                ],
                [
                  -64.73,
                  -40.8
                ],
                [
                  -65.12,
                  -41.06
                ],
                [
                  -64.98,
                  -42.06
                ],
                [
                  -64.3,
                  -42.36
                ],
                [
                  -63.75,
                  -42.04
                ],
                [
                  -63.46,
                  -42.56
                ],
                [
                  -64.38,
                  -42.87
                ],
                [
                  -65.18,
                  -43.49
                ],
                [
                  -65.33,
                  -44.5
                ],
                [
                  -65.57,
                  -45.04
                ],
                [
                  -66.51,
                  -45.04
                ],
                [
                  -67.29,
                  -45.55
                ],
                [
                  -67.58,
                  -46.3
                ],
                [
                  -66.6,
                  -47.03
                ],
                [
                  -65.64,
                  -47.24
                ],
                [
                  -65.99,
                  -48.13
                ],
                [
                  -67.17,
                  -48.7
                ],
                [
                  -67.82,
                  -49.87
                ],
                [
                  -68.73,
                  -50.27
                ],
                [
                  -69.14,
                  -50.73
                ],
                [
                  -68.82,
                  -51.77
                ],
                [
                  -68.15,
                  -52.35
                ],
                [
                  -69.5,
                  -52.14
                ],
                [
                  -71.92,
                  -52.01
                ],
                [
                  -72.33,
                  -51.43
                ],
                [
                  -72.31,
                  -50.68
                ],
                [
                  -72.97,
                  -50.74
                ],
                [
                  -73.33,
                  -50.38
                ],
                [
                  -73.41,
                  -49.32
                ],
                [
                  -72.65,
                  -48.88
                ],
                [
                  -72.33,
                  -48.24
                ],
                [
                  -72.45,
                  -47.74
                ],
                [
                  -71.92,
                  -46.88
                ],
                [
                  -71.55,
                  -45.56
                ],
                [
                  -71.66,
                  -44.97
                ],
                [
                  -71.22,
                  -44.78
                ],
                [
                  -71.33,
                  -44.41
                ],
                [
                  -71.79,
                  -44.21
                ],
                [
                  -71.46,
                  -43.79
                ],
                [
                  -71.92,
                  -43.41
                ],
                [
                  -72.15,
                  -42.25
                ],
                [
                  -71.75,
                  -42.05
                ],
                [
                  -71.92,
                  -40.83
                ],
                [
                  -71.68,
                  -39.81
                ],
                [
                  -71.41,
                  -38.92
                ],
                [
                  -70.81,
                  -38.55
                ],
                [
                  -71.12,
                  -37.58
                ],
                [
                  -71.12,
                  -36.66
                ],
                [
                  -70.36,
                  -36.01
                ],
                [
                  -70.39,
                  -35.17
                ],
                [
                  -69.82,
                  -34.19
                ],
                [
                  -69.81,
                  -33.27
                ],
                [
                  -70.07,
                  -33.09
                ],
                [
                  -70.53,
                  -31.36
                ],
                [
                  -69.92,
                  -30.34
                ],
                [
                  -70.02,
                  -29.37
                ],
                [
                  -69.66,
                  -28.46
                ],
                [
                  -69,
                  -27.52
                ],
                [
                  -68.29,
                  -26.9
                ],
                [
                  -68.59,
                  -26.51
                ],
                [
                  -68.38,
                  -26.18
                ],
                [
                  -68.42,
                  -24.52
                ],
                [
                  -67.33,
                  -24.03
                ],
                [
                  -66.98,
                  -22.99
                ],
                [
                  -67.11,
                  -22.74
                ],
                [
                  -66.27,
                  -21.83
                ],
                [
                  -64.96,
                  -22.08
                ],
                [
                  -64.38,
                  -22.8
                ],
                [
                  -63.99,
                  -21.99
                ],
                [
                  -62.85,
                  -22.03
                ],
                [
                  -62.69,
                  -22.25
                ],
                [
                  -60.85,
                  -23.88
                ],
                [
                  -60.03,
                  -24.03
                ],
                [
                  -58.81,
                  -24.77
                ],
                [
                  -57.78,
                  -25.16
                ],
                [
                  -57.63,
                  -25.6
                ],
                [
                  -58.62,
                  -27.12
                ],
                [
                  -57.61,
                  -27.4
                ],
                [
                  -56.49,
                  -27.55
                ],
                [
                  -55.69,
                  -27.39
                ],
                [
                  -54.79,
                  -26.62
                ],
                [
                  -54.63,
                  -25.74
                ],
                [
                  -54.13,
                  -25.55
                ],
                [
                  -53.63,
                  -26.12
                ],
                [
                  -53.65,
                  -26.92
                ],
                [
                  -55.16,
                  -27.88
                ],
                [
                  -56.29,
                  -28.85
                ],
                [
                  -57.62,
                  -30.22
                ]
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Chile",
          ISO_A3: "CHL"
        },
        geometry: {
          type: "MultiPolygon",
          coordinates: [
            [
              [
                [
                  -68.63,
                  -52.64
                ],
                [
                  -68.63,
                  -54.87
                ],
                [
                  -66.96,
                  -54.9
                ],
                [
                  -67.29,
                  -55.3
                ],
                [
                  -68.15,
                  -55.61
                ],
                [
                  -69.23,
                  -55.5
                ],
                [
                  -69.96,
                  -55.2
                ],
                [
                  -71.01,
                  -55.05
                ],
                [
                  -72.27,
                  -54.49
                ],
                [
                  -73.28,
                  -53.96
                ],
                [
                  -74.66,
                  -52.84
                ],
                [
                  -73.84,
                  -53.05
                ],
                [
                  -72.43,
                  -53.72
                ],
                [
                  -71.11,
                  -54.07
                ],
                [
                  -70.59,
                  -53.62
                ],
                [
                  -70.27,
                  -52.93
                ],
                [
                  -69.35,
                  -52.52
                ],
                [
                  -68.63,
                  -52.64
                ]
              ]
            ],
            [
              [
                [
                  -69.59,
                  -17.58
                ],
                [
                  -69.1,
                  -18.26
                ],
                [
                  -68.97,
                  -18.98
                ],
                [
                  -68.44,
                  -19.4
                ],
                [
                  -68.76,
                  -20.37
                ],
                [
                  -68.22,
                  -21.49
                ],
                [
                  -67.83,
                  -22.87
                ],
                [
                  -67.11,
                  -22.74
                ],
                [
                  -66.98,
                  -22.99
                ],
                [
                  -67.33,
                  -24.03
                ],
                [
                  -68.42,
                  -24.52
                ],
                [
                  -68.38,
                  -26.18
                ],
                [
                  -68.59,
                  -26.51
                ],
                [
                  -68.29,
                  -26.9
                ],
                [
                  -69,
                  -27.52
                ],
                [
                  -69.66,
                  -28.46
                ],
                [
                  -70.02,
                  -29.37
                ],
                [
                  -69.92,
                  -30.34
                ],
                [
                  -70.53,
                  -31.36
                ],
                [
                  -70.07,
                  -33.09
                ],
                [
                  -69.81,
                  -33.27
                ],
                [
                  -69.82,
                  -34.19
                ],
                [
                  -70.39,
                  -35.17
                ],
                [
                  -70.36,
                  -36.01
                ],
                [
                  -71.12,
                  -36.66
                ],
                [
                  -71.12,
                  -37.58
                ],
                [
                  -70.81,
                  -38.55
                ],
                [
                  -71.41,
                  -38.92
                ],
                [
                  -71.68,
                  -39.81
                ],
                [
                  -71.92,
                  -40.83
                ],
                [
                  -71.75,
                  -42.05
                ],
                [
                  -72.15,
                  -42.25
                ],
                [
                  -71.92,
                  -43.41
                ],
                [
                  -71.46,
                  -43.79
                ],
                [
                  -71.79,
                  -44.21
                ],
                [
                  -71.33,
                  -44.41
                ],
                [
                  -71.22,
                  -44.78
                ],
                [
                  -71.66,
                  -44.97
                ],
                [
                  -71.55,
                  -45.56
                ],
                [
                  -71.92,
                  -46.88
                ],
                [
                  -72.45,
                  -47.74
                ],
                [
                  -72.33,
                  -48.24
                ],
                [
                  -72.65,
                  -48.88
                ],
                [
                  -73.41,
                  -49.32
                ],
                [
                  -73.33,
                  -50.38
                ],
                [
                  -72.97,
                  -50.74
                ],
                [
                  -72.31,
                  -50.68
                ],
                [
                  -72.33,
                  -51.43
                ],
                [
                  -71.92,
                  -52.01
                ],
                [
                  -69.5,
                  -52.14
                ],
                [
                  -68.57,
                  -52.3
                ],
                [
                  -69.46,
                  -52.29
                ],
                [
                  -69.94,
                  -52.54
                ],
                [
                  -70.84,
                  -52.9
                ],
                [
                  -71.01,
                  -53.83
                ],
                [
                  -71.43,
                  -53.86
                ],
                [
                  -72.56,
                  -53.53
                ],
                [
                  -73.7,
                  -52.83
                ],
                [
                  -74.95,
                  -52.26
                ],
                [
                  -75.26,
                  -51.63
                ],
                [
                  -74.98,
                  -51.04
                ],
                [
                  -75.48,
                  -50.38
                ],
                [
                  -75.61,
                  -48.67
                ],
                [
                  -75.18,
                  -47.71
                ],
                [
                  -74.13,
                  -46.94
                ],
                [
                  -75.65,
                  -46.65
                ],
                [
                  -74.69,
                  -45.76
                ],
                [
                  -74.35,
                  -44.1
                ],
                [
                  -73.24,
                  -44.45
                ],
                [
                  -72.72,
                  -42.38
                ],
                [
                  -73.39,
                  -42.12
                ],
                [
                  -73.7,
                  -43.37
                ],
                [
                  -74.33,
                  -43.23
                ],
                [
                  -74.02,
                  -41.8
                ],
                [
                  -73.68,
                  -39.94
                ],
                [
                  -73.22,
                  -39.26
                ],
                [
                  -73.51,
                  -38.28
                ],
                [
                  -73.59,
                  -37.16
                ],
                [
                  -73.17,
                  -37.12
                ],
                [
                  -72.55,
                  -35.51
                ],
                [
                  -71.86,
                  -33.91
                ],
                [
                  -71.44,
                  -32.42
                ],
                [
                  -71.67,
                  -30.92
                ],
                [
                  -71.37,
                  -30.1
                ],
                [
                  -71.49,
                  -28.86
                ],
                [
                  -70.9,
                  -27.64
                ],
                [
                  -70.72,
                  -25.71
                ],
                [
                  -70.09,
                  -21.39
                ],
                [
                  -70.16,
                  -19.76
                ],
                [
                  -70.37,
                  -18.35
                ],
                [
                  -69.86,
                  -18.09
                ],
                [
                  -69.59,
                  -17.58
                ]
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Uruguay",
          ISO_A3: "URY"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -57.62,
                -30.22
              ],
              [
                -56.98,
                -30.11
              ],
              [
                -55.97,
                -30.88
              ],
              [
                -55.6,
                -30.85
              ],
              [
                -54.57,
                -31.49
              ],
              [
                -53.79,
                -32.05
              ],
              [
                -53.21,
                -32.73
              ],
              [
                -53.65,
                -33.2
              ],
              [
                -53.37,
                -33.77
              ],
              [
                -53.81,
                -34.4
              ],
              [
                -54.93,
                -34.95
              ],
              [
                -55.67,
                -34.75
              ],
              [
                -56.22,
                -34.86
              ],
              [
                -57.14,
                -34.43
              ],
              [
                -57.82,
                -34.46
              ],
              [
                -58.43,
                -33.91
              ],
              [
                -58.35,
                -33.26
              ],
              [
                -58.13,
                -33.04
              ],
              [
                -58.14,
                -32.04
              ],
              [
                -57.88,
                -31.02
              ],
              [
                -57.62,
                -30.22
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Brasil",
          ISO_A3: "BRA"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -53.37,
                -33.77
              ],
              [
                -53.65,
                -33.2
              ],
              [
                -53.21,
                -32.73
              ],
              [
                -53.79,
                -32.05
              ],
              [
                -54.57,
                -31.49
              ],
              [
                -55.6,
                -30.85
              ],
              [
                -55.97,
                -30.88
              ],
              [
                -56.98,
                -30.11
              ],
              [
                -57.62,
                -30.22
              ],
              [
                -56.29,
                -28.85
              ],
              [
                -55.16,
                -27.88
              ],
              [
                -53.65,
                -26.92
              ],
              [
                -53.63,
                -26.12
              ],
              [
                -54.13,
                -25.55
              ],
              [
                -54.63,
                -25.74
              ],
              [
                -54.43,
                -25.16
              ],
              [
                -54.29,
                -24.57
              ],
              [
                -54.29,
                -24.02
              ],
              [
                -54.65,
                -23.84
              ],
              [
                -55.03,
                -24
              ],
              [
                -55.4,
                -23.96
              ],
              [
                -55.52,
                -23.57
              ],
              [
                -55.61,
                -22.66
              ],
              [
                -55.8,
                -22.36
              ],
              [
                -56.47,
                -22.09
              ],
              [
                -56.88,
                -22.28
              ],
              [
                -57.94,
                -22.09
              ],
              [
                -57.87,
                -20.73
              ],
              [
                -58.17,
                -20.18
              ],
              [
                -57.85,
                -19.97
              ],
              [
                -57.95,
                -19.4
              ],
              [
                -57.67,
                -18.96
              ],
              [
                -57.5,
                -18.17
              ],
              [
                -57.74,
                -17.55
              ],
              [
                -58.28,
                -17.27
              ],
              [
                -58.39,
                -16.88
              ],
              [
                -58.24,
                -16.3
              ],
              [
                -60.16,
                -16.26
              ],
              [
                -60.54,
                -15.09
              ],
              [
                -60.25,
                -15.08
              ],
              [
                -60.26,
                -14.65
              ],
              [
                -60.46,
                -14.35
              ],
              [
                -60.5,
                -13.78
              ],
              [
                -61.08,
                -13.48
              ],
              [
                -61.71,
                -13.49
              ],
              [
                -62.13,
                -13.2
              ],
              [
                -62.8,
                -13
              ],
              [
                -63.2,
                -12.63
              ],
              [
                -64.32,
                -12.46
              ],
              [
                -65.4,
                -11.57
              ],
              [
                -65.32,
                -10.9
              ],
              [
                -65.44,
                -10.51
              ],
              [
                -65.34,
                -9.76
              ],
              [
                -66.65,
                -9.93
              ],
              [
                -67.17,
                -10.31
              ],
              [
                -68.05,
                -10.71
              ],
              [
                -68.27,
                -11.01
              ],
              [
                -68.79,
                -11.04
              ],
              [
                -69.53,
                -10.95
              ],
              [
                -70.09,
                -11.12
              ],
              [
                -70.55,
                -11.01
              ],
              [
                -70.48,
                -9.49
              ],
              [
                -71.3,
                -10.08
              ],
              [
                -72.19,
                -10.05
              ],
              [
                -72.56,
                -9.52
              ],
              [
                -73.23,
                -9.46
              ],
              [
                -73.01,
                -9.03
              ],
              [
                -73.57,
                -8.42
              ],
              [
                -73.99,
                -7.52
              ],
              [
                -73.72,
                -7.34
              ],
              [
                -73.72,
                -6.92
              ],
              [
                -73.12,
                -6.63
              ],
              [
                -73.22,
                -6.09
              ],
              [
                -72.96,
                -5.74
              ],
              [
                -72.89,
                -5.28
              ],
              [
                -71.75,
                -4.59
              ],
              [
                -70.93,
                -4.4
              ],
              [
                -70.8,
                -4.25
              ],
              [
                -69.89,
                -4.3
              ],
              [
                -69.44,
                -1.56
              ],
              [
                -69.42,
                -1.12
              ],
              [
                -69.58,
                -0.55
              ],
              [
                -70.02,
                -0.19
              ],
              [
                -70.02,
                0.54
              ],
              [
                -69.45,
                0.71
              ],
              [
                -69.25,
                0.6
              ],
              [
                -69.22,
                0.99
              ],
              [
                -69.8,
                1.09
              ],
              [
                -69.82,
                1.72
              ],
              [
                -67.87,
                1.69
              ],
              [
                -67.54,
                2.04
              ],
              [
                -67.26,
                1.72
              ],
              [
                -67.06,
                1.13
              ],
              [
                -66.88,
                1.25
              ],
              [
                -66.33,
                0.72
              ],
              [
                -65.55,
                0.79
              ],
              [
                -65.35,
                1.1
              ],
              [
                -64.61,
                1.33
              ],
              [
                -64.2,
                1.49
              ],
              [
                -64.08,
                1.92
              ],
              [
                -63.37,
                2.2
              ],
              [
                -63.42,
                2.41
              ],
              [
                -64.27,
                2.5
              ],
              [
                -64.41,
                3.13
              ],
              [
                -64.37,
                3.8
              ],
              [
                -64.82,
                4.06
              ],
              [
                -64.63,
                4.15
              ],
              [
                -63.89,
                4.02
              ],
              [
                -63.09,
                3.77
              ],
              [
                -62.8,
                4.01
              ],
              [
                -62.08,
                4.16
              ],
              [
                -60.97,
                4.54
              ],
              [
                -60.6,
                4.92
              ],
              [
                -60.73,
                5.2
              ],
              [
                -60.21,
                5.24
              ],
              [
                -59.98,
                5.01
              ],
              [
                -60.11,
                4.58
              ],
              [
                -59.77,
                4.42
              ],
              [
                -59.54,
                3.96
              ],
              [
                -59.82,
                3.61
              ],
              [
                -59.97,
                2.76
              ],
              [
                -59.72,
                2.25
              ],
              [
                -59.65,
                1.79
              ],
              [
                -59.03,
                1.32
              ],
              [
                -58.54,
                1.27
              ],
              [
                -58.43,
                1.46
              ],
              [
                -58.11,
                1.51
              ],
              [
                -57.66,
                1.68
              ],
              [
                -57.34,
                1.95
              ],
              [
                -56.78,
                1.86
              ],
              [
                -56.54,
                1.9
              ],
              [
                -56,
                1.82
              ],
              [
                -55.91,
                2.02
              ],
              [
                -56.07,
                2.22
              ],
              [
                -55.97,
                2.51
              ],
              [
                -55.57,
                2.42
              ],
              [
                -55.1,
                2.52
              ],
              [
                -54.52,
                2.31
              ],
              [
                -54.09,
                2.11
              ],
              [
                -53.78,
                2.38
              ],
              [
                -53.56,
                2.33
              ],
              [
                -53.42,
                2.05
              ],
              [
                -52.94,
                2.12
              ],
              [
                -52.56,
                2.5
              ],
              [
                -52.25,
                3.24
              ],
              [
                -51.66,
                4.16
              ],
              [
                -51.32,
                4.2
              ],
              [
                -51.07,
                3.65
              ],
              [
                -50.51,
                1.9
              ],
              [
                -49.97,
                1.74
              ],
              [
                -49.95,
                1.05
              ],
              [
                -50.7,
                0.22
              ],
              [
                -50.39,
                -0.08
              ],
              [
                -48.62,
                -0.23
              ],
              [
                -48.58,
                -1.24
              ],
              [
                -47.82,
                -0.58
              ],
              [
                -46.57,
                -0.94
              ],
              [
                -44.91,
                -1.55
              ],
              [
                -44.42,
                -2.14
              ],
              [
                -44.58,
                -2.69
              ],
              [
                -43.42,
                -2.38
              ],
              [
                -41.47,
                -2.91
              ],
              [
                -39.98,
                -2.87
              ],
              [
                -38.5,
                -3.7
              ],
              [
                -37.22,
                -4.82
              ],
              [
                -36.45,
                -5.11
              ],
              [
                -35.6,
                -5.15
              ],
              [
                -35.24,
                -5.46
              ],
              [
                -34.73,
                -7.34
              ],
              [
                -35.13,
                -9
              ],
              [
                -35.64,
                -9.65
              ],
              [
                -37.05,
                -11.04
              ],
              [
                -37.68,
                -12.17
              ],
              [
                -38.42,
                -13.04
              ],
              [
                -38.67,
                -13.06
              ],
              [
                -38.95,
                -13.79
              ],
              [
                -38.88,
                -15.67
              ],
              [
                -39.27,
                -17.87
              ],
              [
                -39.58,
                -18.26
              ],
              [
                -39.76,
                -19.6
              ],
              [
                -40.78,
                -20.9
              ],
              [
                -40.95,
                -21.94
              ],
              [
                -41.76,
                -22.37
              ],
              [
                -41.99,
                -22.97
              ],
              [
                -43.08,
                -22.97
              ],
              [
                -44.65,
                -23.35
              ],
              [
                -45.35,
                -23.8
              ],
              [
                -46.47,
                -24.09
              ],
              [
                -47.65,
                -24.89
              ],
              [
                -48.49,
                -25.88
              ],
              [
                -48.64,
                -26.62
              ],
              [
                -48.48,
                -27.18
              ],
              [
                -48.66,
                -28.19
              ],
              [
                -48.89,
                -28.67
              ],
              [
                -49.59,
                -29.22
              ],
              [
                -50.7,
                -30.99
              ],
              [
                -51.58,
                -31.78
              ],
              [
                -52.26,
                -32.25
              ],
              [
                -52.71,
                -33.2
              ],
              [
                -53.37,
                -33.77
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Bolivia",
          ISO_A3: "BOL"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -69.53,
                -10.95
              ],
              [
                -68.79,
                -11.04
              ],
              [
                -68.27,
                -11.01
              ],
              [
                -68.05,
                -10.71
              ],
              [
                -67.17,
                -10.31
              ],
              [
                -66.65,
                -9.93
              ],
              [
                -65.34,
                -9.76
              ],
              [
                -65.44,
                -10.51
              ],
              [
                -65.32,
                -10.9
              ],
              [
                -65.4,
                -11.57
              ],
              [
                -64.32,
                -12.46
              ],
              [
                -63.2,
                -12.63
              ],
              [
                -62.8,
                -13
              ],
              [
                -62.13,
                -13.2
              ],
              [
                -61.71,
                -13.49
              ],
              [
                -61.08,
                -13.48
              ],
              [
                -60.5,
                -13.78
              ],
              [
                -60.46,
                -14.35
              ],
              [
                -60.26,
                -14.65
              ],
              [
                -60.25,
                -15.08
              ],
              [
                -60.54,
                -15.09
              ],
              [
                -60.16,
                -16.26
              ],
              [
                -58.24,
                -16.3
              ],
              [
                -58.39,
                -16.88
              ],
              [
                -58.28,
                -17.27
              ],
              [
                -57.74,
                -17.55
              ],
              [
                -57.5,
                -18.17
              ],
              [
                -57.67,
                -18.96
              ],
              [
                -57.95,
                -19.4
              ],
              [
                -57.85,
                -19.97
              ],
              [
                -58.17,
                -20.18
              ],
              [
                -58.18,
                -19.87
              ],
              [
                -59.11,
                -19.36
              ],
              [
                -60.04,
                -19.34
              ],
              [
                -61.79,
                -19.63
              ],
              [
                -62.26,
                -20.51
              ],
              [
                -62.29,
                -21.05
              ],
              [
                -62.69,
                -22.25
              ],
              [
                -62.85,
                -22.03
              ],
              [
                -63.99,
                -21.99
              ],
              [
                -64.38,
                -22.8
              ],
              [
                -64.96,
                -22.08
              ],
              [
                -66.27,
                -21.83
              ],
              [
                -67.11,
                -22.74
              ],
              [
                -67.83,
                -22.87
              ],
              [
                -68.22,
                -21.49
              ],
              [
                -68.76,
                -20.37
              ],
              [
                -68.44,
                -19.4
              ],
              [
                -68.97,
                -18.98
              ],
              [
                -69.1,
                -18.26
              ],
              [
                -69.59,
                -17.58
              ],
              [
                -68.96,
                -16.5
              ],
              [
                -69.39,
                -15.66
              ],
              [
                -69.16,
                -15.32
              ],
              [
                -69.34,
                -14.95
              ],
              [
                -68.95,
                -14.45
              ],
              [
                -68.88,
                -12.9
              ],
              [
                -68.67,
                -12.56
              ],
              [
                -69.53,
                -10.95
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Perú",
          ISO_A3: "PER"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -69.89,
                -4.3
              ],
              [
                -70.8,
                -4.25
              ],
              [
                -70.93,
                -4.4
              ],
              [
                -71.75,
                -4.59
              ],
              [
                -72.89,
                -5.28
              ],
              [
                -72.96,
                -5.74
              ],
              [
                -73.22,
                -6.09
              ],
              [
                -73.12,
                -6.63
              ],
              [
                -73.72,
                -6.92
              ],
              [
                -73.72,
                -7.34
              ],
              [
                -73.99,
                -7.52
              ],
              [
                -73.57,
                -8.42
              ],
              [
                -73.01,
                -9.03
              ],
              [
                -73.23,
                -9.46
              ],
              [
                -72.56,
                -9.52
              ],
              [
                -72.19,
                -10.05
              ],
              [
                -71.3,
                -10.08
              ],
              [
                -70.48,
                -9.49
              ],
              [
                -70.55,
                -11.01
              ],
              [
                -70.09,
                -11.12
              ],
              [
                -69.53,
                -10.95
              ],
              [
                -68.67,
                -12.56
              ],
              [
                -68.88,
                -12.9
              ],
              [
                -68.95,
                -14.45
              ],
              [
                -69.34,
                -14.95
              ],
              [
                -69.16,
                -15.32
              ],
              [
                -69.39,
                -15.66
              ],
              [
                -68.96,
                -16.5
              ],
              [
                -69.86,
                -18.09
              ],
              [
                -70.37,
                -18.35
              ],
              [
                -71.38,
                -17.77
              ],
              [
                -71.46,
                -17.36
              ],
              [
                -73.45,
                -16.36
              ],
              [
                -75.24,
                -15.27
              ],
              [
                -76.01,
                -14.65
              ],
              [
                -76.42,
                -13.82
              ],
              [
                -76.26,
                -13.53
              ],
              [
                -77.11,
                -12.22
              ],
              [
                -78.09,
                -10.38
              ],
              [
                -79.04,
                -8.39
              ],
              [
                -79.45,
                -7.93
              ],
              [
                -79.76,
                -7.19
              ],
              [
                -80.54,
                -6.54
              ],
              [
                -81.25,
                -6.14
              ],
              [
                -80.93,
                -5.69
              ],
              [
                -81.41,
                -4.74
              ],
              [
                -81.1,
                -4.04
              ],
              [
                -80.3,
                -3.4
              ],
              [
                -80.19,
                -3.82
              ],
              [
                -80.47,
                -4.06
              ],
              [
                -80.44,
                -4.43
              ],
              [
                -80.03,
                -4.35
              ],
              [
                -79.62,
                -4.45
              ],
              [
                -79.21,
                -4.96
              ],
              [
                -78.64,
                -4.55
              ],
              [
                -78.45,
                -3.87
              ],
              [
                -77.84,
                -3
              ],
              [
                -76.64,
                -2.61
              ],
              [
                -75.54,
                -1.56
              ],
              [
                -75.24,
                -0.91
              ],
              [
                -75.37,
                -0.15
              ],
              [
                -75.11,
                -0.06
              ],
              [
                -74.44,
                -0.53
              ],
              [
                -74.12,
                -1
              ],
              [
                -73.66,
                -1.26
              ],
              [
                -73.07,
                -2.31
              ],
              [
                -72.33,
                -2.44
              ],
              [
                -71.78,
                -2.17
              ],
              [
                -71.41,
                -2.34
              ],
              [
                -70.81,
                -2.26
              ],
              [
                -70.05,
                -2.72
              ],
              [
                -70.69,
                -3.74
              ],
              [
                -70.39,
                -3.77
              ],
              [
                -69.89,
                -4.3
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Colombia",
          ISO_A3: "COL"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -66.88,
                1.25
              ],
              [
                -67.06,
                1.13
              ],
              [
                -67.26,
                1.72
              ],
              [
                -67.54,
                2.04
              ],
              [
                -67.87,
                1.69
              ],
              [
                -69.82,
                1.72
              ],
              [
                -69.8,
                1.09
              ],
              [
                -69.22,
                0.99
              ],
              [
                -69.25,
                0.6
              ],
              [
                -69.45,
                0.71
              ],
              [
                -70.02,
                0.54
              ],
              [
                -70.02,
                -0.19
              ],
              [
                -69.58,
                -0.55
              ],
              [
                -69.42,
                -1.12
              ],
              [
                -69.44,
                -1.56
              ],
              [
                -69.89,
                -4.3
              ],
              [
                -70.39,
                -3.77
              ],
              [
                -70.69,
                -3.74
              ],
              [
                -70.05,
                -2.72
              ],
              [
                -70.81,
                -2.26
              ],
              [
                -71.41,
                -2.34
              ],
              [
                -71.78,
                -2.17
              ],
              [
                -72.33,
                -2.44
              ],
              [
                -73.07,
                -2.31
              ],
              [
                -73.66,
                -1.26
              ],
              [
                -74.12,
                -1
              ],
              [
                -74.44,
                -0.53
              ],
              [
                -75.11,
                -0.06
              ],
              [
                -75.37,
                -0.15
              ],
              [
                -75.8,
                0.09
              ],
              [
                -76.29,
                0.42
              ],
              [
                -76.58,
                0.26
              ],
              [
                -77.42,
                0.39
              ],
              [
                -77.67,
                0.83
              ],
              [
                -77.86,
                0.81
              ],
              [
                -78.86,
                1.38
              ],
              [
                -78.99,
                1.69
              ],
              [
                -78.62,
                1.77
              ],
              [
                -78.66,
                2.27
              ],
              [
                -78.43,
                2.63
              ],
              [
                -77.93,
                2.7
              ],
              [
                -77.13,
                3.85
              ],
              [
                -77.5,
                4.09
              ],
              [
                -77.31,
                4.67
              ],
              [
                -77.53,
                5.58
              ],
              [
                -77.32,
                5.84
              ],
              [
                -77.48,
                6.69
              ],
              [
                -77.88,
                7.22
              ],
              [
                -77.75,
                7.71
              ],
              [
                -77.43,
                7.64
              ],
              [
                -77.24,
                7.94
              ],
              [
                -77.47,
                8.52
              ],
              [
                -77.35,
                8.67
              ],
              [
                -76.84,
                8.64
              ],
              [
                -76.08,
                9.34
              ],
              [
                -75.67,
                9.44
              ],
              [
                -75.66,
                9.77
              ],
              [
                -75.48,
                10.62
              ],
              [
                -74.91,
                11.08
              ],
              [
                -74.28,
                11.1
              ],
              [
                -74.2,
                11.31
              ],
              [
                -73.41,
                11.23
              ],
              [
                -72.24,
                11.96
              ],
              [
                -71.75,
                12.44
              ],
              [
                -71.4,
                12.38
              ],
              [
                -71.14,
                12.11
              ],
              [
                -71.33,
                11.78
              ],
              [
                -71.97,
                11.61
              ],
              [
                -72.23,
                11.11
              ],
              [
                -72.61,
                10.82
              ],
              [
                -72.91,
                10.45
              ],
              [
                -73.03,
                9.74
              ],
              [
                -73.31,
                9.15
              ],
              [
                -72.79,
                9.08
              ],
              [
                -72.66,
                8.63
              ],
              [
                -72.44,
                8.41
              ],
              [
                -72.36,
                8
              ],
              [
                -72.48,
                7.63
              ],
              [
                -72.45,
                7.42
              ],
              [
                -72.2,
                7.34
              ],
              [
                -71.96,
                6.99
              ],
              [
                -70.67,
                7.09
              ],
              [
                -70.09,
                6.96
              ],
              [
                -69.39,
                6.1
              ],
              [
                -68.99,
                6.21
              ],
              [
                -68.27,
                6.15
              ],
              [
                -67.7,
                6.27
              ],
              [
                -67.34,
                6.1
              ],
              [
                -67.52,
                5.56
              ],
              [
                -67.74,
                5.22
              ],
              [
                -67.82,
                4.5
              ],
              [
                -67.62,
                3.84
              ],
              [
                -67.34,
                3.54
              ],
              [
                -67.3,
                3.32
              ],
              [
                -67.81,
                2.82
              ],
              [
                -67.45,
                2.6
              ],
              [
                -67.18,
                2.25
              ],
              [
                -66.88,
                1.25
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Venezuela",
          ISO_A3: "VEN"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -60.73,
                5.2
              ],
              [
                -60.6,
                4.92
              ],
              [
                -60.97,
                4.54
              ],
              [
                -62.08,
                4.16
              ],
              [
                -62.8,
                4.01
              ],
              [
                -63.09,
                3.77
              ],
              [
                -63.89,
                4.02
              ],
              [
                -64.63,
                4.15
              ],
              [
                -64.82,
                4.06
              ],
              [
                -64.37,
                3.8
              ],
              [
                -64.41,
                3.13
              ],
              [
                -64.27,
                2.5
              ],
              [
                -63.42,
                2.41
              ],
              [
                -63.37,
                2.2
              ],
              [
                -64.08,
                1.92
              ],
              [
                -64.2,
                1.49
              ],
              [
                -64.61,
                1.33
              ],
              [
                -65.35,
                1.1
              ],
              [
                -65.55,
                0.79
              ],
              [
                -66.33,
                0.72
              ],
              [
                -66.88,
                1.25
              ],
              [
                -67.18,
                2.25
              ],
              [
                -67.45,
                2.6
              ],
              [
                -67.81,
                2.82
              ],
              [
                -67.3,
                3.32
              ],
              [
                -67.34,
                3.54
              ],
              [
                -67.62,
                3.84
              ],
              [
                -67.82,
                4.5
              ],
              [
                -67.74,
                5.22
              ],
              [
                -67.52,
                5.56
              ],
              [
                -67.34,
                6.1
              ],
              [
                -67.7,
                6.27
              ],
              [
                -68.27,
                6.15
              ],
              [
                -68.99,
                6.21
              ],
              [
                -69.39,
                6.1
              ],
              [
                -70.09,
                6.96
              ],
              [
                -70.67,
                7.09
              ],
              [
                -71.96,
                6.99
              ],
              [
                -72.2,
                7.34
              ],
              [
                -72.45,
                7.42
              ],
              [
                -72.48,
                7.63
              ],
              [
                -72.36,
                8
              ],
              [
                -72.44,
                8.41
              ],
              [
                -72.66,
                8.63
              ],
              [
                -72.79,
                9.08
              ],
              [
                -73.31,
                9.15
              ],
              [
                -73.03,
                9.74
              ],
              [
                -72.91,
                10.45
              ],
              [
                -72.61,
                10.82
              ],
              [
                -72.23,
                11.11
              ],
              [
                -71.97,
                11.61
              ],
              [
                -71.33,
                11.78
              ],
              [
                -71.36,
                11.54
              ],
              [
                -71.95,
                11.42
              ],
              [
                -71.62,
                10.97
              ],
              [
                -71.63,
                10.45
              ],
              [
                -72.07,
                9.86
              ],
              [
                -71.7,
                9.07
              ],
              [
                -71.26,
                9.14
              ],
              [
                -71.04,
                9.86
              ],
              [
                -71.35,
                10.21
              ],
              [
                -71.4,
                10.97
              ],
              [
                -70.16,
                11.38
              ],
              [
                -70.29,
                11.85
              ],
              [
                -69.94,
                12.16
              ],
              [
                -69.58,
                11.46
              ],
              [
                -68.88,
                11.44
              ],
              [
                -68.23,
                10.89
              ],
              [
                -68.19,
                10.56
              ],
              [
                -67.3,
                10.55
              ],
              [
                -66.23,
                10.65
              ],
              [
                -65.66,
                10.2
              ],
              [
                -64.89,
                10.08
              ],
              [
                -64.33,
                10.39
              ],
              [
                -64.32,
                10.64
              ],
              [
                -63.08,
                10.7
              ],
              [
                -61.88,
                10.72
              ],
              [
                -62.73,
                10.42
              ],
              [
                -62.39,
                9.95
              ],
              [
                -61.59,
                9.87
              ],
              [
                -60.83,
                9.38
              ],
              [
                -60.67,
                8.58
              ],
              [
                -60.15,
                8.6
              ],
              [
                -59.76,
                8.37
              ],
              [
                -60.55,
                7.78
              ],
              [
                -60.64,
                7.42
              ],
              [
                -60.3,
                7.04
              ],
              [
                -60.54,
                6.86
              ],
              [
                -61.16,
                6.7
              ],
              [
                -61.14,
                6.23
              ],
              [
                -61.41,
                5.96
              ],
              [
                -60.73,
                5.2
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Guyana",
          ISO_A3: "GUY"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -56.54,
                1.9
              ],
              [
                -56.78,
                1.86
              ],
              [
                -57.34,
                1.95
              ],
              [
                -57.66,
                1.68
              ],
              [
                -58.11,
                1.51
              ],
              [
                -58.43,
                1.46
              ],
              [
                -58.54,
                1.27
              ],
              [
                -59.03,
                1.32
              ],
              [
                -59.65,
                1.79
              ],
              [
                -59.72,
                2.25
              ],
              [
                -59.97,
                2.76
              ],
              [
                -59.82,
                3.61
              ],
              [
                -59.54,
                3.96
              ],
              [
                -59.77,
                4.42
              ],
              [
                -60.11,
                4.58
              ],
              [
                -59.98,
                5.01
              ],
              [
                -60.21,
                5.24
              ],
              [
                -60.73,
                5.2
              ],
              [
                -61.41,
                5.96
              ],
              [
                -61.14,
                6.23
              ],
              [
                -61.16,
                6.7
              ],
              [
                -60.54,
                6.86
              ],
              [
                -60.3,
                7.04
              ],
              [
                -60.64,
                7.42
              ],
              [
                -60.55,
                7.78
              ],
              [
                -59.76,
                8.37
              ],
              [
                -59.1,
                8
              ],
              [
                -58.48,
                7.35
              ],
              [
                -58.46,
                6.83
              ],
              [
                -58.08,
                6.81
              ],
              [
                -57.15,
                5.97
              ],
              [
                -57.31,
                5.07
              ],
              [
                -57.92,
                4.81
              ],
              [
                -57.86,
                4.58
              ],
              [
                -58.05,
                4.06
              ],
              [
                -57.6,
                3.33
              ],
              [
                -57.28,
                3.33
              ],
              [
                -57.15,
                2.77
              ],
              [
                -56.54,
                1.9
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Surinam",
          ISO_A3: "SUR"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -54.52,
                2.31
              ],
              [
                -55.1,
                2.52
              ],
              [
                -55.57,
                2.42
              ],
              [
                -55.97,
                2.51
              ],
              [
                -56.07,
                2.22
              ],
              [
                -55.91,
                2.02
              ],
              [
                -56,
                1.82
              ],
              [
                -56.54,
                1.9
              ],
              [
                -57.15,
                2.77
              ],
              [
                -57.28,
                3.33
              ],
              [
                -57.6,
                3.33
              ],
              [
                -58.05,
                4.06
              ],
              [
                -57.86,
                4.58
              ],
              [
                -57.92,
                4.81
              ],
              [
                -57.31,
                5.07
              ],
              [
                -57.15,
                5.97
              ],
              [
                -55.95,
                5.77
              ],
              [
                -55.84,
                5.95
              ],
              [
                -55.03,
                6.03
              ],
              [
                -53.96,
                5.76
              ],
              [
                -54.48,
                4.9
              ],
              [
                -54.4,
                4.21
              ],
              [
                -54.01,
                3.62
              ],
              [
                -54.18,
                3.19
              ],
              [
                -54.27,
                2.73
              ],
              [
                -54.52,
                2.31
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Ecuador",
          ISO_A3: "ECU"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -75.37,
                -0.15
              ],
              [
                -75.24,
                -0.91
              ],
              [
                -75.54,
                -1.56
              ],
              [
                -76.64,
                -2.61
              ],
              [
                -77.84,
                -3
              ],
              [
                -78.45,
                -3.87
              ],
              [
                -78.64,
                -4.55
              ],
              [
                -79.21,
                -4.96
              ],
              [
                -79.62,
                -4.45
              ],
              [
                -80.03,
                -4.35
              ],
              [
                -80.44,
                -4.43
              ],
              [
                -80.47,
                -4.06
              ],
              [
                -80.19,
                -3.82
              ],
              [
                -80.3,
                -3.4
              ],
              [
                -79.77,
                -2.66
              ],
              [
                -79.99,
                -2.22
              ],
              [
                -80.37,
                -2.69
              ],
              [
                -80.97,
                -2.25
              ],
              [
                -80.77,
                -1.96
              ],
              [
                -80.93,
                -1.06
              ],
              [
                -80.59,
                -0.91
              ],
              [
                -80.4,
                -0.28
              ],
              [
                -80.02,
                0.36
              ],
              [
                -80.09,
                0.77
              ],
              [
                -79.54,
                0.98
              ],
              [
                -78.86,
                1.38
              ],
              [
                -77.86,
                0.81
              ],
              [
                -77.67,
                0.83
              ],
              [
                -77.42,
                0.39
              ],
              [
                -76.58,
                0.26
              ],
              [
                -76.29,
                0.42
              ],
              [
                -75.8,
                0.09
              ],
              [
                -75.37,
                -0.15
              ]
            ]
          ]
        }
      },
      {
        type: "Feature",
        properties: {
          ADMIN: "Paraguay",
          ISO_A3: "PRY"
        },
        geometry: {
          type: "Polygon",
          coordinates: [
            [
              [
                -58.17,
                -20.18
              ],
              [
                -57.87,
                -20.73
              ],
              [
                -57.94,
                -22.09
              ],
              [
                -56.88,
                -22.28
              ],
              [
                -56.47,
                -22.09
              ],
              [
                -55.8,
                -22.36
              ],
              [
                -55.61,
                -22.66
              ],
              [
                -55.52,
                -23.57
              ],
              [
                -55.4,
                -23.96
              ],
              [
                -55.03,
                -24
              ],
              [
                -54.65,
                -23.84
              ],
              [
                -54.29,
                -24.02
              ],
              [
                -54.29,
                -24.57
              ],
              [
                -54.43,
                -25.16
              ],
              [
                -54.63,
                -25.74
              ],
              [
                -54.79,
                -26.62
              ],
              [
                -55.69,
                -27.39
              ],
              [
                -56.49,
                -27.55
              ],
              [
                -57.61,
                -27.4
              ],
              [
                -58.62,
                -27.12
              ],
              [
                -57.63,
                -25.6
              ],
              [
                -57.78,
                -25.16
              ],
              [
                -58.81,
                -24.77
              ],
              [
                -60.03,
                -24.03
              ],
              [
                -60.85,
                -23.88
              ],
              [
                -62.69,
                -22.25
              ],
              [
                -62.29,
                -21.05
              ],
              [
                -62.26,
                -20.51
              ],
              [
                -61.79,
                -19.63
              ],
              [
                -60.04,
                -19.34
              ],
              [
                -59.11,
                -19.36
              ],
              [
                -58.18,
                -19.87
              ],
              [
                -58.17,
                -20.18
              ]
            ]
          ]
        }
      }
    ]
  },
  title: "El español es lengua oficial en 9 de los 12 países de Sudamérica",
  subtitle: "Principal lengua oficial por país, con sus capitales",
  source: "Natural Earth (dominio público)",
  data: [
    {pais: "Argentina", idioma: "Español"},
    {pais: "Bolivia", idioma: "Español"},
    // … 10 more rows
  ],
  key: "pais",
  value: "idioma",
  markers: {
    data: [
      {
        ciudad: "Buenos Aires",
        lon: -58.38,
        lat: -34.6
      },
      {
        ciudad: "Santiago",
        lon: -70.67,
        lat: -33.45
      },
      {
        ciudad: "Lima",
        lon: -77.04,
        lat: -12.05
      },
      {
        ciudad: "Bogotá",
        lon: -74.07,
        lat: 4.71
      },
      {
        ciudad: "Brasília",
        lon: -47.88,
        lat: -15.79
      },
      {
        ciudad: "Caracas",
        lon: -66.9,
        lat: 10.48
      },
      {
        ciudad: "Quito",
        lon: -78.47,
        lat: -0.18
      },
      {
        ciudad: "La Paz",
        lon: -68.15,
        lat: -16.5
      },
      {
        ciudad: "Asunción",
        lon: -57.58,
        lat: -25.26
      },
      {
        ciudad: "Montevideo",
        lon: -56.16,
        lat: -34.9
      },
      {
        ciudad: "Georgetown",
        lon: -58.16,
        lat: 6.8
      },
      {
        ciudad: "Paramaribo",
        lon: -55.2,
        lat: 5.85
      }
    ],
    label: "ciudad",
    legend: "Capital"
  },
  layers: [
    {
      geo: {
        type: "Feature",
        properties: {
          name: "Trópico de Capricornio"
        },
        geometry: {
          type: "LineString",
          coordinates: [
            [
              -71,
              -23.44
            ],
            [
              -40.5,
              -23.44
            ]
          ]
        }
      },
      label: "Trópico de Capricornio",
      dash: true,
      width: 1
    }
  ]
})
Open in playground →

Framing and markers

choropleth

fitTo frames a few regions (or a [lon, lat, lon, lat] box) and keeps the rest as context. Markers with size get an area proportional to the value.

Framing and markersFraming and markers
Show spec
plot({
  type: "choropleth",
  geo: "chile",
  title: "Biobío exporta más que sus tres vecinas juntas, y lo hace por tres puertos",
  subtitle: "Exportaciones por región, miles de millones de US$, y carga por puerto, millones de toneladas",
  source: "datos ilustrativos",
  data: [
    {region: "Maule", mm: 3.1},
    {region: "Ñuble", mm: 1.2},
    // … 2 more rows
  ],
  key: "region",
  value: "mm",
  legendTitle: "Exportaciones",
  format: {
    decimals: 1
  },
  fitTo: [
    "Biobío",
    "Ñuble"
  ],
  markers: {
    data: [
      {
        puerto: "Talcahuano y San Vicente",
        lon: -73.12,
        lat: -36.72,
        mt: 10.9
      },
      {
        puerto: "Coronel",
        lon: -73.16,
        lat: -37.03,
        mt: 7.4
      },
      {
        puerto: "Lirquén",
        lon: -72.97,
        lat: -36.71,
        mt: 4.1
      }
    ],
    label: "puerto",
    size: "mt",
    legend: "Puerto (área ∝ toneladas)",
    color: "#E8A33D",
    maxRadius: 16
  },
  missing: "plain"
})
Open in playground →

Point map over a basemap

pointmap

type: "pointmap" draws lon/lat points over a real basemap (OpenStreetMap by default), muted so the data leads. size sets each circle's area; the size key sits in a corner and the largest cities are named. In the browser: click, Ctrl + scroll or pinch to zoom.

Point map over a basemapPoint map over a basemap
Show spec
plot({
  type: "pointmap",
  title: "Santiago reúne el 52% de los habitantes de las 30 mayores ciudades",
  subtitle: "Habitantes por ciudad, aproximado",
  source: "datos ilustrativos",
  data: [
    {ciudad: "Santiago", lat: -33.45, lon: -70.66, habitantes: 6310000, macrozona: "Centro", variacion: 8.1},
    {ciudad: "Concepción", lat: -36.82, lon: -73.05, habitantes: 985000, macrozona: "Sur", variacion: 4.2},
    // … 28 more rows
  ],
  lon: "lon",
  lat: "lat",
  size: "habitantes",
  label: "ciudad",
  format: "compact"
})
Open in playground →

Points by category

pointmap

hue colors by category with the theme palette and a linked legend. At city scale the zoom rises on its own (about 12 here) and the tiles show streets.

Points by categoryPoints by category
Show spec
plot({
  type: "pointmap",
  title: "4 de las 7 tiendas están fuera del centro de Concepción",
  subtitle: "Sucursales del Gran Concepción por tipo de local",
  source: "datos ilustrativos",
  data: [
    {sucursal: "Centro", lat: -36.827, lon: -73.05, tipo: "Tienda", ventas: 182},
    {sucursal: "Mall Plaza Trébol", lat: -36.792, lon: -73.068, tipo: "Tienda", ventas: 241},
    // … 14 more rows
  ],
  lon: "lon",
  lat: "lat",
  hue: "tipo",
  label: "sucursal",
  labels: [
    "Centro",
    "Talcahuano",
    "San Pedro de la Paz",
    "Coronel",
    "Tomé",
    "Chiguayante"
  ]
})
Open in playground →

Value ramp on the dark theme

pointmap

A numeric value colors along a sequential ramp. On the noche theme the tiles are inverted and tinted navy; tileStyle: "original" leaves them as they come.

Value ramp on the dark theme
Show spec
plot({
  type: "pointmap",
  theme: "noche",
  title: "Las ciudades del norte crecieron 7,8% en promedio; Alto Hospicio, 14,1%",
  subtitle: "Variación de la población 2017–2024, %; tamaño según habitantes",
  source: "datos ilustrativos",
  data: [
    {ciudad: "Santiago", lat: -33.45, lon: -70.66, habitantes: 6310000, macrozona: "Centro", variacion: 8.1},
    {ciudad: "Concepción", lat: -36.82, lon: -73.05, habitantes: 985000, macrozona: "Sur", variacion: 4.2},
    // … 28 more rows
  ],
  lon: "lon",
  lat: "lat",
  size: "habitantes",
  value: "variacion",
  label: "ciudad",
  valueFormat: {
    suffix: "%",
    decimals: 1
  },
  sizeFormat: "compact",
  legendTitle: "Variación"
})
Open in playground →

Another basemap

pointmap

tiles picks the basemap: "osm", "esri-gray", "esri-dark", "carto-light", "carto-dark", "mapbox-light" / "mapbox-dark" (with tilesKey: "pk.…") or your own { url, attribution }. The attribution is always drawn, with a link.

Another basemapAnother basemap
Show spec
plot({
  type: "pointmap",
  locale: "en",
  tiles: "esri-gray",
  title: "São Paulo, Buenos Aires and Rio hold 38% of the people in these 24 metro areas",
  subtitle: "Population of the largest South American metro areas",
  source: "illustrative data",
  data: [
    {city: "São Paulo", lat: -23.55, lon: -46.63, population: 22400000, country: "Brazil"},
    {city: "Buenos Aires", lat: -34.6, lon: -58.38, population: 15600000, country: "Argentina"},
    // … 22 more rows
  ],
  lon: "lon",
  lat: "lat",
  size: "population",
  highlight: [
    "São Paulo",
    "Buenos Aires",
    "Rio de Janeiro"
  ],
  label: "city",
  format: "compact"
})
Open in playground →

Distributions 14

Line with a confidence band

line

ci: true (seaborn lineplot): with several observations per x, it draws the mean and its 95% interval. errorbar: "sd" also works.

Line with a confidence bandLine with a confidence band
Show spec
plot({
  type: "line",
  title: "Entre semana la espera tiene dos peaks: 10:00 y 18:00",
  subtitle: "Minutos de espera promedio por hora, con intervalo de confianza de 95%",
  source: "datos ilustrativos",
  data: [
    {hora: 8, dia: "Laboral", minutos: 3.4348942318371343},
    {hora: 8, dia: "Fin de semana", minutos: 7.693086451248866},
    // … 648 more rows
  ],
  x: "hora",
  y: "minutos",
  series: "dia",
  ci: true,
  xLabel: "Hora del día"
})
Open in playground →

Barplot with intervals

bar

type: "barplot" (or ci: true): mean per category with error bars. The tooltip shows the interval.

Barplot with intervalsBarplot with intervals
Show spec
plot({
  type: "barplot",
  title: "Concepción tiene la mejor nota de satisfacción: 5,5",
  subtitle: "Nota promedio (1 a 7) por sede y canal, intervalo de 95%",
  source: "datos ilustrativos",
  data: [
    {sede: "Concepción", canal: "Teléfono", nota: 7},
    {sede: "Concepción", canal: "Presencial", nota: 4.405015014597343},
    // … 190 more rows
  ],
  x: "sede",
  y: "nota",
  series: "canal",
  sort: "none"
})
Open in playground →

Histogram with density

hist

Nice bin widths from Freedman–Diaconis and a KDE curve on the same scale.

Histogram with densityHistogram with density
Show spec
plot({
  type: "hist",
  title: "La mitad de las atenciones dura menos de 9,1 minutos",
  subtitle: "Duración de 600 atenciones presenciales, minutos",
  source: "datos ilustrativos",
  data: [
    {minutos: 5.4},
    {minutos: 6.2},
    // … 598 more rows
  ],
  x: "minutos",
  kde: true,
  xLabel: "Minutos"
})
Open in playground →

Overlapping histograms

hist

hue splits groups; multiple: "layer" overlaps them with transparency. Also "stack", "dodge" and "fill".

Overlapping histogramsOverlapping histograms
Show spec
plot({
  type: "hist",
  title: "Los estudiantes presenciales promedian 0,5 puntos más que los de modalidad en línea",
  subtitle: "Distribución de notas finales (escala 1,0 a 7,0)",
  source: "datos ilustrativos",
  data: [
    {modalidad: "Presencial", nota: 5.4},
    {modalidad: "Presencial", nota: 5.7},
    // … 598 more rows
  ],
  x: "nota",
  hue: "modalidad",
  binWidth: 0.25,
  stat: "percent",
  commonNorm: false,
  xLabel: "Nota final"
})
Open in playground →

Density by group

kde

Filled density curves, one per area, each named over its peak. xScale: "log" also works.

Density by groupDensity by group
Show spec
plot({
  type: "kde",
  title: "Tecnología tiene la mediana salarial más alta: $1.590.000",
  subtitle: "Distribución del sueldo bruto mensual por área, miles de pesos",
  source: "datos ilustrativos",
  data: [
    {area: "Operaciones", sueldo: 837},
    {area: "Operaciones", sueldo: 1121},
    // … 578 more rows
  ],
  x: "sueldo",
  hue: "area",
  format: {
    prefix: "$"
  },
  xLabel: "Sueldo (miles de $)"
})
Open in playground →

Cumulative distribution

ecdf

Answers "what share is below this value?" without choosing bin widths. The median is marked.

Cumulative distributionCumulative distribution
Show spec
plot({
  type: "ecdf",
  title: "En Biobío el 80% de los despachos llega en 5,1 días o menos; en Araucanía, en 8,5",
  subtitle: "Días entre la compra y la entrega, por región",
  source: "datos ilustrativos",
  data: [
    {region: "Biobío", dias: 3.8},
    {region: "Biobío", dias: 4.6},
    // … 658 more rows
  ],
  x: "dias",
  hue: "region",
  xLabel: "Días de despacho"
})
Open in playground →

Box plot

box

Median, quartiles and whiskers at 1.5 × IQR; outliers as hollow dots. Long labels switch to horizontal.

Box plotBox plot
Show spec
plot({
  type: "box",
  title: "En CESFAM Santa Sabina la espera mediana es de 48 minutos, la más alta de la comuna",
  subtitle: "Minutos de espera para atención, 70 pacientes por centro",
  source: "datos ilustrativos",
  data: [
    {centro: "CESFAM Lorenzo Arenas", minutos: 21},
    {centro: "CESFAM Lorenzo Arenas", minutos: 24},
    // … 348 more rows
  ],
  x: "centro",
  y: "minutos",
  highlight: "CESFAM Santa Sabina",
  xLabel: "Minutos de espera"
})
Open in playground →

Split violin

violin

Mirrored density (KDE) per group. With two hue levels and split: true, each half is a group; inside, the IQR and median.

Split violinSplit violin
Show spec
plot({
  type: "violin",
  title: "En gerencia, el sector privado paga 23% más en la mediana",
  subtitle: "Sueldo bruto mensual, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {cargo: "Analista", sector: "Público", sueldo: 2.09},
    {cargo: "Analista", sector: "Público", sueldo: 1.26},
    // … 538 more rows
  ],
  x: "cargo",
  y: "sueldo",
  hue: "sector",
  split: true,
  yScale: "log",
  yLabel: "Millones de pesos (escala log)"
})
Open in playground →

Strip plot

strip

Every observation is a point with deterministic jitter; the bar marks the group mean.

Strip plotStrip plot
Show spec
plot({
  type: "strip",
  title: "La Sección 3 tiene el mejor promedio (5,4); en total aprueba el 89% del curso",
  subtitle: "Notas finales en escala de 1 a 7",
  source: "datos ilustrativos",
  data: [
    {seccion: "Sección 1", nota: 6},
    {seccion: "Sección 1", nota: 5},
    // … 178 more rows
  ],
  x: "seccion",
  y: "nota",
  mean: true,
  refLines: [
    {
      y: 4,
      label: "Aprobación"
    }
  ],
  yDomain: [
    1,
    7
  ],
  yLabel: "Nota"
})
Open in playground →

Swarm plot

swarm

No overlaps: each point moves just enough to clear the others, so the shape shows the distribution.

Swarm plotSwarm plot
Show spec
plot({
  type: "swarm",
  title: "Biobío resuelve sus trámites en 36 días en la mediana, el más rápido",
  subtitle: "Días hábiles desde el ingreso hasta la resolución",
  source: "datos ilustrativos",
  data: [
    {region: "Biobío", dias: 31},
    {region: "Biobío", dias: 27},
    // … 218 more rows
  ],
  x: "region",
  y: "dias",
  highlight: "Biobío",
  yLabel: "Días"
})
Open in playground →

Point estimate with intervals

point

Mean with a 95% confidence interval (Student t), joined across categories. Labels at the end of each series.

Point estimate with intervalsPoint estimate with intervals
Show spec
plot({
  type: "point",
  title: "Concepción sube de 5,4 a 5,6 en el año y Los Ángeles baja a 5,2",
  subtitle: "Satisfacción promedio (1 a 7) con intervalo de confianza del 95%",
  source: "datos ilustrativos",
  data: [
    {trimestre: "T1", sede: "Concepción", nota: 6.2},
    {trimestre: "T1", sede: "Concepción", nota: 7},
    // … 718 more rows
  ],
  x: "trimestre",
  y: "nota",
  hue: "sede",
  yLabel: "Satisfacción promedio"
})
Open in playground →

Box plot on a log scale

box

Amounts spanning several orders of magnitude: xScale: "log" on the value axis, with the points over each box.

Box plot on a log scaleBox plot on a log scale
Show spec
plot({
  type: "box",
  title: "La mediana de una licitación LP es unas 6.000 veces la de un trato directo",
  subtitle: "Montos adjudicados por modalidad de compra, pesos",
  source: "datos ilustrativos",
  data: [
    {tipo: "Trato directo", monto: 13258},
    {tipo: "Trato directo", monto: 5504},
    // … 248 more rows
  ],
  x: "monto",
  y: "tipo",
  xScale: "log",
  points: true,
  format: "currency",
  xLabel: "Monto adjudicado (escala log)"
})
Open in playground →

Population pyramid

pyramid

Back-to-back bars from a central axis; age groups sit in the middle column, with no duplicated axes. Each side is named, with its share, in its own color.

Population pyramidPopulation pyramid
Show spec
plot({
  type: "pyramid",
  title: "Los menores de 15 años son solo el 15% de la población",
  subtitle: "Población por sexo y tramo de edad, miles de personas, 2024",
  source: "datos ilustrativos",
  data: [
    {"año":2024, edad: "0-4", sexo: "Hombres", personas: 406},
    {"año":2024, edad: "0-4", sexo: "Mujeres", personas: 400},
    // … 32 more rows
  ],
  age: "edad",
  sex: "sexo",
  value: "personas"
})
Open in playground →

Pyramid with a comparison

pyramid

compare: 2002 draws the earlier year as a stepped outline over the bars, showing where the base narrowed and the top grew.

Pyramid with a comparisonPyramid with a comparison
Show spec
plot({
  type: "pyramid",
  title: "Los menores de 15 años pasaron de 25% a 15% de la población",
  subtitle: "Participación por sexo y tramo de edad, 2024 frente a 2002",
  source: "datos ilustrativos",
  data: [
    {"año":2002, edad: "0-4", sexo: "Hombres", personas: 682},
    {"año":2002, edad: "0-4", sexo: "Mujeres", personas: 671},
    // … 66 more rows
  ],
  age: "edad",
  sex: "sexo",
  value: "personas",
  compareField: "año",
  compare: 2002,
  percent: true,
  compareLabel: "2002"
})
Open in playground →

Relationships 9

Bubbles with a trend

bubble

Size is area-proportional to population. Only the points that matter are labeled, plus a least-squares line with R².

Bubbles with a trendBubbles with a trend
Show spec
plot({
  type: "bubble",
  title: "A mayor ingreso por persona, mayor uso de internet",
  subtitle: "PIB per cápita (miles de US$ PPA) y % de la población que usa internet",
  source: "datos ilustrativos",
  data: [
    {pais: "Chile", pib: 30.2, internet: 90.2, poblacion: 19.8, continente: "Sudamérica"},
    {pais: "Perú", pib: 16, internet: 75, poblacion: 34, continente: "Sudamérica"},
    // … 14 more rows
  ],
  x: "pib",
  y: "internet",
  size: "poblacion",
  series: "continente",
  label: "pais",
  labels: [
    "Chile",
    "Estados Unidos",
    "Brasil",
    "Alemania",
    "Bolivia",
    "México"
  ],
  xLabel: "PIB per cápita (miles US$)",
  yLabel: "Usuarios de internet (%)",
  trend: true
})
Open in playground →

Regression with confidence band

regplot

Points, fitted line and a 95% band for the mean. annotate adds R² and n.

Regression with confidence bandRegression with confidence band
Show spec
plot({
  type: "regplot",
  title: "Cada hora semanal de estudio se asocia a 0,26 puntos más en la nota",
  subtitle: "Horas de estudio semanales y nota final de 140 estudiantes",
  source: "datos ilustrativos",
  data: [
    {horas: 6.3, nota: 5.5},
    {horas: 3.3, nota: 4.8},
    // … 138 more rows
  ],
  x: "horas",
  y: "nota",
  annotate: true,
  xLabel: "Horas de estudio por semana",
  yLabel: "Nota final"
})
Open in playground →

Regression on a log axis

regplot

logx: true fits y ~ log(x) and draws a log x axis. With hue, one fit per group named at its end.

Regression on a log axisRegression on a log axis
Show spec
plot({
  type: "regplot",
  title: "Duplicar el ingreso por persona se asocia a 2,3 años más de esperanza de vida",
  subtitle: "Ingreso per cápita (US$, escala log) y esperanza de vida al nacer, 72 países",
  source: "datos ilustrativos",
  data: [
    {region: "América", ingreso: 30835, vida: 82.5},
    {region: "América", ingreso: 12679, vida: 84.1},
    // … 70 more rows
  ],
  x: "ingreso",
  y: "vida",
  hue: "region",
  logx: true,
  xFormat: {
    prefix: "US$"
  },
  xLabel: "Ingreso per cápita (escala log)",
  yLabel: "Años de vida"
})
Open in playground →

Joint plot

jointplot

Scatter with marginal histograms on top and right, on the same scales. kind: "reg" adds the fit.

Joint plotJoint plot
Show spec
plot({
  type: "jointplot",
  kind: "reg",
  title: "La superficie explica el 87% de la variación del precio",
  subtitle: "Departamentos en venta: superficie útil (m²) y precio (UF)",
  source: "datos ilustrativos",
  data: [
    {m2: 56, uf: 3337},
    {m2: 93, uf: 5083},
    // … 258 more rows
  ],
  x: "m2",
  y: "uf",
  xLabel: "Superficie (m²)",
  yLabel: "Precio (UF)"
})
Open in playground →

Residuals

residplot

To check a fit: residuals should scatter around zero with no pattern. lowess shows the trend.

ResidualsResiduals
Show spec
plot({
  type: "residplot",
  title: "Los residuos no muestran patrón: el ajuste lineal es adecuado",
  subtitle: "Residuos de la nota sobre las horas de estudio",
  source: "datos ilustrativos",
  data: [
    {horas: 6.3, nota: 5.5},
    {horas: 3.3, nota: 4.8},
    // … 138 more rows
  ],
  x: "horas",
  y: "nota",
  lowess: true,
  xLabel: "Horas de estudio por semana"
})
Open in playground →

Correlation matrix

corr

Each pair once, below the diagonal, on a fixed diverging scale from −1 to 1. alpha: 0.05 greys out correlations that are not significant; method: "spearman" uses ranks.

Correlation matrixCorrelation matrix
Show spec
plot({
  type: "corr",
  title: "En los barrios con más escolaridad el ingreso es mayor (r = 0,85) y la pobreza menor (r = −0,81)",
  subtitle: "Correlación de Pearson entre ocho indicadores de 120 barrios",
  source: "datos ilustrativos",
  data: [
    {zona: "Centro", ingreso: 875, escolaridad: 12, pobreza: 8.6, hacinamiento: 9.5, areas_verdes: 3.3, densidad: 4652, tiempo_viaje: 31, edad_media: 36.6},
    {zona: "Oriente", ingreso: 1746, escolaridad: 16.2, pobreza: 1.9, hacinamiento: 0.4, areas_verdes: 8.8, densidad: 5512, tiempo_viaje: 29, edad_media: 40.3},
    // … 118 more rows
  ],
  vars: [
    "ingreso",
    "escolaridad",
    "pobreza",
    "hacinamiento",
    "areas_verdes",
    "densidad",
    "tiempo_viaje",
    "edad_media"
  ],
  labelsFor: {
    ingreso: "Ingreso",
    escolaridad: "Escolaridad",
    pobreza: "Pobreza",
    hacinamiento: "Hacinamiento",
    areas_verdes: "Áreas verdes",
    densidad: "Densidad",
    tiempo_viaje: "Tiempo de viaje",
    edad_media: "Edad media"
  },
  alpha: 0.05
})
Open in playground →

Clustered matrix (clustermap)

corr

cluster: true (or type: "clustermap") reorders the variables by hierarchical clustering and draws the dendrogram, so the blocks that move together stand out.

Clustered matrix (clustermap)Clustered matrix (clustermap)
Show spec
plot({
  type: "clustermap",
  title: "Ingreso, escolaridad y áreas verdes se mueven juntos; pobreza y hacinamiento, en sentido contrario",
  subtitle: "Correlación de Pearson, variables ordenadas por agrupamiento jerárquico. Densidad y tiempo de viaje: r = −0,65",
  source: "datos ilustrativos",
  data: [
    {zona: "Centro", ingreso: 875, escolaridad: 12, pobreza: 8.6, hacinamiento: 9.5, areas_verdes: 3.3, densidad: 4652, tiempo_viaje: 31, edad_media: 36.6},
    {zona: "Oriente", ingreso: 1746, escolaridad: 16.2, pobreza: 1.9, hacinamiento: 0.4, areas_verdes: 8.8, densidad: 5512, tiempo_viaje: 29, edad_media: 40.3},
    // … 118 more rows
  ],
  vars: [
    "ingreso",
    "escolaridad",
    "pobreza",
    "hacinamiento",
    "areas_verdes",
    "densidad",
    "tiempo_viaje",
    "edad_media"
  ],
  labelsFor: {
    ingreso: "Ingreso",
    escolaridad: "Escolaridad",
    pobreza: "Pobreza",
    hacinamiento: "Hacinamiento",
    areas_verdes: "Áreas verdes",
    densidad: "Densidad",
    tiempo_viaje: "Tiempo de viaje",
    edad_media: "Edad media"
  }
})
Open in playground →

Pair plot

pairplot

Each pair as a scatter below the diagonal, each variable's distribution on it, and Pearson r above (per group with hue). corner: true keeps only the lower triangle.

Pair plotPair plot
Show spec
plot({
  type: "pairplot",
  title: "La periferia concentra menos ingreso, más pobreza y viajes más largos",
  subtitle: "Cuatro indicadores de 120 barrios, por zona. Ingreso en miles de pesos, pobreza en %, viaje en minutos",
  source: "datos ilustrativos",
  data: [
    {zona: "Centro", ingreso: 875, escolaridad: 12, pobreza: 8.6, hacinamiento: 9.5, areas_verdes: 3.3, densidad: 4652, tiempo_viaje: 31, edad_media: 36.6},
    {zona: "Oriente", ingreso: 1746, escolaridad: 16.2, pobreza: 1.9, hacinamiento: 0.4, areas_verdes: 8.8, densidad: 5512, tiempo_viaje: 29, edad_media: 40.3},
    // … 118 more rows
  ],
  vars: [
    "ingreso",
    "escolaridad",
    "pobreza",
    "tiempo_viaje"
  ],
  hue: "zona",
  labelsFor: {
    ingreso: "Ingreso",
    escolaridad: "Escolaridad",
    pobreza: "Pobreza",
    hacinamiento: "Hacinamiento",
    areas_verdes: "Áreas verdes",
    densidad: "Densidad",
    tiempo_viaje: "Tiempo de viaje",
    edad_media: "Edad media"
  }
})
Open in playground →

Radar

radar

Profiles on comparable axes (same 1–5 scale). Thin polygons with a soft fill; labels anchor by angle.

RadarRadar
Show spec
plot({
  type: "radar",
  title: "La candidatura A destaca en liderazgo y la B en análisis de datos",
  subtitle: "Puntaje de la evaluación por competencias, escala 1 a 5",
  source: "datos ilustrativos",
  data: [
    {competencia: "Liderazgo", candidatura: "Candidatura A", puntaje: 4.5},
    {competencia: "Liderazgo", candidatura: "Candidatura B", puntaje: 3.2},
    // … 10 more rows
  ],
  axis: "competencia",
  value: "puntaje",
  series: "candidatura",
  domain: [
    0,
    5
  ]
})
Open in playground →

Networks and flows 12

Sankey

sankey

Flows between stages. Color starts at the source and is inherited downstream.

SankeySankey
Show spec
plot({
  type: "sankey",
  title: "Casi dos de cada tres pesos terminan en remuneraciones",
  subtitle: "Fuentes, áreas y destino del gasto, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {origen: "Aporte fiscal", destino: "Docencia", monto: 2400},
    {origen: "Aporte fiscal", destino: "Investigación", monto: 900},
    // … 15 more rows
  ],
  from: "origen",
  to: "destino",
  value: "monto",
  height: 460
})
Open in playground →

Collaboration network

network

Click a node: it glides to the center with its connections highlighted (click again or press Esc to go back). Deterministic force layout. Size = projects (weighted degree), color = kind of organization; the largest are labeled. highlight keeps one node and its neighbors in view.

Collaboration networkCollaboration network
Show spec
plot({
  type: "network",
  title: "U. del Pacífico Sur colabora con 12 organizaciones, más que ninguna otra",
  subtitle: "Proyectos conjuntos de I+D entre 44 organizaciones (246 proyectos)",
  source: "datos ilustrativos",
  data: [
    {from: "Forestal Ríos", to: "U. Minera del Norte", proyectos: 5},
    {from: "Salmones Fiordo", to: "U. Técnica del Litoral", proyectos: 2},
    // … 78 more rows
  ],
  nodes: [
    {
      id: "U. del Pacífico Sur",
      grupo: "Universidades"
    },
    {
      id: "U. Austral Andina",
      grupo: "Universidades"
    },
    {
      id: "U. Técnica del Litoral",
      grupo: "Universidades"
    },
    {
      id: "U. del Valle Central",
      grupo: "Universidades"
    },
    {
      id: "U. Minera del Norte",
      grupo: "Universidades"
    },
    {
      id: "U. de los Lagos Altos",
      grupo: "Universidades"
    },
    {
      id: "Centro de Genómica Vegetal",
      grupo: "Centros de investigación"
    },
    {
      id: "Centro de Energía Marina",
      grupo: "Centros de investigación"
    },
    {
      id: "Instituto de Datos Abiertos",
      grupo: "Centros de investigación"
    },
    {
      id: "Lab. de Materiales",
      grupo: "Centros de investigación"
    },
    {
      id: "Centro de Acuicultura",
      grupo: "Centros de investigación"
    },
    {
      id: "Instituto del Litio",
      grupo: "Centros de investigación"
    },
    {
      id: "Centro de Bosque Nativo",
      grupo: "Centros de investigación"
    },
    {
      id: "Lab. de Robótica Agrícola",
      grupo: "Centros de investigación"
    },
    {
      id: "Forestal Ríos",
      grupo: "Empresas"
    },
    {
      id: "Salmones Fiordo",
      grupo: "Empresas"
    },
    {
      id: "Viña Cordillera",
      grupo: "Empresas"
    },
    {
      id: "Minera Altiplano",
      grupo: "Empresas"
    },
    {
      id: "Agrícola Itata",
      grupo: "Empresas"
    },
    {
      id: "Pesquera Bahía",
      grupo: "Empresas"
    },
    {
      id: "Solar Atacama",
      grupo: "Empresas"
    },
    {
      id: "Celulosa Laja",
      grupo: "Empresas"
    },
    {
      id: "Frutícola Maule",
      grupo: "Empresas"
    },
    {
      id: "Lácteos del Sur",
      grupo: "Empresas"
    },
    {
      id: "Química Pacífico",
      grupo: "Empresas"
    },
    {
      id: "Logística Puerto",
      grupo: "Empresas"
    },
    {
      id: "Cervecera Calle-Calle",
      grupo: "Empresas"
    },
    {
      id: "Metalúrgica Bío",
      grupo: "Empresas"
    },
    {
      id: "Gobierno Regional",
      grupo: "Servicios públicos"
    },
    {
      id: "Servicio de Salud Regional",
      grupo: "Servicios públicos"
    },
    {
      id: "Agencia de Fomento",
      grupo: "Servicios públicos"
    },
    {
      id: "Oficina de Riego",
      grupo: "Servicios públicos"
    },
    {
      id: "Servicio de Pesca",
      grupo: "Servicios públicos"
    },
    {
      id: "Agencia Ambiental",
      grupo: "Servicios públicos"
    },
    {
      id: "Municipalidad Costera",
      grupo: "Servicios públicos"
    },
    {
      id: "AgroSense",
      grupo: "Startups"
    },
    {
      id: "DataMar",
      grupo: "Startups"
    },
    {
      id: "BioLitio",
      grupo: "Startups"
    },
    {
      id: "SolarTrack",
      grupo: "Startups"
    },
    {
      id: "AquaIA",
      grupo: "Startups"
    },
    {
      id: "Riego360",
      grupo: "Startups"
    },
    {
      id: "ForestEye",
      grupo: "Startups"
    },
    {
      id: "VinoLab",
      grupo: "Startups"
    },
    {
      id: "RoboFruit",
      grupo: "Startups"
    }
  ],
  from: "from",
  to: "to",
  value: "proyectos",
  group: "grupo"
})
Open in playground →

Circular network

network

layout: "circle" orders nodes by group around a circle; links curve toward the center. Good for small, dense networks.

Circular networkCircular network
Show spec
plot({
  type: "network",
  layout: "circle",
  title: "Planificación se coordina con 10 de las 14 otras áreas del municipio",
  subtitle: "Reuniones de coordinación entre áreas municipales en un año",
  source: "datos ilustrativos",
  data: [
    {from: "Alcaldía", to: "Planificación", reuniones: 18},
    {from: "Alcaldía", to: "Finanzas", reuniones: 5},
    // … 29 more rows
  ],
  nodes: [
    {
      id: "Alcaldía",
      grupo: "Gestión"
    },
    {
      id: "Planificación",
      grupo: "Gestión"
    },
    {
      id: "Finanzas",
      grupo: "Gestión"
    },
    {
      id: "Jurídica",
      grupo: "Gestión"
    },
    {
      id: "Obras",
      grupo: "Territorio"
    },
    {
      id: "Tránsito",
      grupo: "Territorio"
    },
    {
      id: "Medio Ambiente",
      grupo: "Territorio"
    },
    {
      id: "Aseo y Ornato",
      grupo: "Territorio"
    },
    {
      id: "Desarrollo Social",
      grupo: "Social"
    },
    {
      id: "Salud",
      grupo: "Social"
    },
    {
      id: "Educación",
      grupo: "Social"
    },
    {
      id: "Deportes",
      grupo: "Social"
    },
    {
      id: "Cultura",
      grupo: "Comunidad"
    },
    {
      id: "Turismo",
      grupo: "Comunidad"
    },
    {
      id: "Seguridad",
      grupo: "Comunidad"
    }
  ],
  from: "from",
  to: "to",
  value: "reuniones",
  group: "grupo"
})
Open in playground →

Character network

network

In the style of the ECharts *Les Misérables* graph: curved links in the color of the source character, node area ∝ shared scenes and non-overlapping names (the largest are labeled; the rest are in the tooltip). curveness sets the bend (0 = straight).

Character networkCharacter network
Show spec
plot({
  type: "network",
  title: "Julián comparte escena con 49 personajes, más que nadie",
  subtitle: "Personajes que aparecen juntos en una novela ficticia (70 personajes, 246 pares)",
  source: "datos ilustrativos",
  data: [
    {from: "Julián", to: "Inés", escenas: 1},
    {from: "Julián", to: "Tomasa", escenas: 12},
    // … 244 more rows
  ],
  nodes: [
    {
      id: "Julián",
      circulo: "Casa Valdés"
    },
    {
      id: "Inés",
      circulo: "Casa Valdés"
    },
    {
      id: "Tomasa",
      circulo: "Casa Valdés"
    },
    {
      id: "Bruno",
      circulo: "Casa Valdés"
    },
    {
      id: "Rosaura",
      circulo: "Casa Valdés"
    },
    {
      id: "Elías",
      circulo: "Casa Valdés"
    },
    {
      id: "Catalina",
      circulo: "Casa Valdés"
    },
    {
      id: "Gaspar",
      circulo: "Casa Valdés"
    },
    {
      id: "Leonor",
      circulo: "Casa Valdés"
    },
    {
      id: "Matías",
      circulo: "Casa Valdés"
    },
    {
      id: "Abril",
      circulo: "Casa Valdés"
    },
    {
      id: "Ramiro",
      circulo: "Casa Valdés"
    },
    {
      id: "Celia",
      circulo: "Casa Valdés"
    },
    {
      id: "Dámaso",
      circulo: "Casa Valdés"
    },
    {
      id: "Olga",
      circulo: "Casa Valdés"
    },
    {
      id: "Fermín",
      circulo: "Casa Valdés"
    },
    {
      id: "Nieves",
      circulo: "Casa Valdés"
    },
    {
      id: "Andrés",
      circulo: "Barricada"
    },
    {
      id: "Lucio",
      circulo: "Barricada"
    },
    {
      id: "Teo",
      circulo: "Barricada"
    },
    {
      id: "Marcial",
      circulo: "Barricada"
    },
    {
      id: "Simón",
      circulo: "Barricada"
    },
    {
      id: "Vera",
      circulo: "Barricada"
    },
    {
      id: "Íñigo",
      circulo: "Barricada"
    },
    {
      id: "Pablo",
      circulo: "Barricada"
    },
    {
      id: "Ruth",
      circulo: "Barricada"
    },
    {
      id: "Noé",
      circulo: "Barricada"
    },
    {
      id: "Hugo",
      circulo: "Barricada"
    },
    {
      id: "Capitán Ríos",
      circulo: "Puerto"
    },
    {
      id: "Marta",
      circulo: "Puerto"
    },
    {
      id: "Esteban",
      circulo: "Puerto"
    },
    {
      id: "Lola",
      circulo: "Puerto"
    },
    {
      id: "Basilio",
      circulo: "Puerto"
    },
    {
      id: "Ciro",
      circulo: "Puerto"
    },
    {
      id: "Dora",
      circulo: "Puerto"
    },
    {
      id: "Eloy",
      circulo: "Puerto"
    },
    {
      id: "Fabia",
      circulo: "Puerto"
    },
    {
      id: "Sor Clara",
      circulo: "Convento"
    },
    {
      id: "Sor Edith",
      circulo: "Convento"
    },
    {
      id: "Padre Anselmo",
      circulo: "Convento"
    },
    {
      id: "Sor Pía",
      circulo: "Convento"
    },
    {
      id: "Hermano Luis",
      circulo: "Convento"
    },
    {
      id: "Sor Rita",
      circulo: "Convento"
    },
    {
      id: "Sor Ana",
      circulo: "Convento"
    },
    {
      id: "Novicia Eva",
      circulo: "Convento"
    },
    {
      id: "Doña Benita",
      circulo: "Posada"
    },
    {
      id: "Don Cosme",
      circulo: "Posada"
    },
    {
      id: "Paca",
      circulo: "Posada"
    },
    {
      id: "Remigio",
      circulo: "Posada"
    },
    {
      id: "Toña",
      circulo: "Posada"
    },
    {
      id: "Zoilo",
      circulo: "Posada"
    },
    {
      id: "Quique",
      circulo: "Posada"
    },
    {
      id: "Juez Arteaga",
      circulo: "Tribunal"
    },
    {
      id: "Fiscal Ponce",
      circulo: "Tribunal"
    },
    {
      id: "Escribano Gil",
      circulo: "Tribunal"
    },
    {
      id: "Alguacil Mora",
      circulo: "Tribunal"
    },
    {
      id: "Abogado Sanz",
      circulo: "Tribunal"
    },
    {
      id: "Testigo Roca",
      circulo: "Tribunal"
    },
    {
      id: "Maestro Ibar",
      circulo: "Taller"
    },
    {
      id: "Aprendiz Leo",
      circulo: "Taller"
    },
    {
      id: "Clemente",
      circulo: "Taller"
    },
    {
      id: "Sabina",
      circulo: "Taller"
    },
    {
      id: "Rufo",
      circulo: "Taller"
    },
    {
      id: "Pepa",
      circulo: "Mercado"
    },
    {
      id: "Vicente",
      circulo: "Mercado"
    },
    {
      id: "Amparo",
      circulo: "Mercado"
    },
    {
      id: "Telmo",
      circulo: "Mercado"
    },
    {
      id: "Profesor Lago",
      circulo: "Colegio"
    },
    {
      id: "Alumna Sol",
      circulo: "Colegio"
    },
    {
      id: "Bedel Juan",
      circulo: "Colegio"
    }
  ],
  value: "escenas",
  group: "circulo"
})
Open in playground →

Circular network

network

layout: "circular": nodes go around a circle ordered by group, with a gap between groups; names point outward, rotated, and only those that do not fit are left out.

Circular networkCircular network
Show spec
plot({
  type: "network",
  layout: "circular",
  title: "Julián conecta los 9 círculos de la novela",
  subtitle: "Personajes que aparecen juntos en escena, ordenados por círculo",
  source: "datos ilustrativos",
  data: [
    {from: "Julián", to: "Inés", escenas: 1},
    {from: "Julián", to: "Tomasa", escenas: 12},
    // … 244 more rows
  ],
  nodes: [
    {
      id: "Julián",
      circulo: "Casa Valdés"
    },
    {
      id: "Inés",
      circulo: "Casa Valdés"
    },
    {
      id: "Tomasa",
      circulo: "Casa Valdés"
    },
    {
      id: "Bruno",
      circulo: "Casa Valdés"
    },
    {
      id: "Rosaura",
      circulo: "Casa Valdés"
    },
    {
      id: "Elías",
      circulo: "Casa Valdés"
    },
    {
      id: "Catalina",
      circulo: "Casa Valdés"
    },
    {
      id: "Gaspar",
      circulo: "Casa Valdés"
    },
    {
      id: "Leonor",
      circulo: "Casa Valdés"
    },
    {
      id: "Matías",
      circulo: "Casa Valdés"
    },
    {
      id: "Abril",
      circulo: "Casa Valdés"
    },
    {
      id: "Ramiro",
      circulo: "Casa Valdés"
    },
    {
      id: "Celia",
      circulo: "Casa Valdés"
    },
    {
      id: "Dámaso",
      circulo: "Casa Valdés"
    },
    {
      id: "Olga",
      circulo: "Casa Valdés"
    },
    {
      id: "Fermín",
      circulo: "Casa Valdés"
    },
    {
      id: "Nieves",
      circulo: "Casa Valdés"
    },
    {
      id: "Andrés",
      circulo: "Barricada"
    },
    {
      id: "Lucio",
      circulo: "Barricada"
    },
    {
      id: "Teo",
      circulo: "Barricada"
    },
    {
      id: "Marcial",
      circulo: "Barricada"
    },
    {
      id: "Simón",
      circulo: "Barricada"
    },
    {
      id: "Vera",
      circulo: "Barricada"
    },
    {
      id: "Íñigo",
      circulo: "Barricada"
    },
    {
      id: "Pablo",
      circulo: "Barricada"
    },
    {
      id: "Ruth",
      circulo: "Barricada"
    },
    {
      id: "Noé",
      circulo: "Barricada"
    },
    {
      id: "Hugo",
      circulo: "Barricada"
    },
    {
      id: "Capitán Ríos",
      circulo: "Puerto"
    },
    {
      id: "Marta",
      circulo: "Puerto"
    },
    {
      id: "Esteban",
      circulo: "Puerto"
    },
    {
      id: "Lola",
      circulo: "Puerto"
    },
    {
      id: "Basilio",
      circulo: "Puerto"
    },
    {
      id: "Ciro",
      circulo: "Puerto"
    },
    {
      id: "Dora",
      circulo: "Puerto"
    },
    {
      id: "Eloy",
      circulo: "Puerto"
    },
    {
      id: "Fabia",
      circulo: "Puerto"
    },
    {
      id: "Sor Clara",
      circulo: "Convento"
    },
    {
      id: "Sor Edith",
      circulo: "Convento"
    },
    {
      id: "Padre Anselmo",
      circulo: "Convento"
    },
    {
      id: "Sor Pía",
      circulo: "Convento"
    },
    {
      id: "Hermano Luis",
      circulo: "Convento"
    },
    {
      id: "Sor Rita",
      circulo: "Convento"
    },
    {
      id: "Sor Ana",
      circulo: "Convento"
    },
    {
      id: "Novicia Eva",
      circulo: "Convento"
    },
    {
      id: "Doña Benita",
      circulo: "Posada"
    },
    {
      id: "Don Cosme",
      circulo: "Posada"
    },
    {
      id: "Paca",
      circulo: "Posada"
    },
    {
      id: "Remigio",
      circulo: "Posada"
    },
    {
      id: "Toña",
      circulo: "Posada"
    },
    {
      id: "Zoilo",
      circulo: "Posada"
    },
    {
      id: "Quique",
      circulo: "Posada"
    },
    {
      id: "Juez Arteaga",
      circulo: "Tribunal"
    },
    {
      id: "Fiscal Ponce",
      circulo: "Tribunal"
    },
    {
      id: "Escribano Gil",
      circulo: "Tribunal"
    },
    {
      id: "Alguacil Mora",
      circulo: "Tribunal"
    },
    {
      id: "Abogado Sanz",
      circulo: "Tribunal"
    },
    {
      id: "Testigo Roca",
      circulo: "Tribunal"
    },
    {
      id: "Maestro Ibar",
      circulo: "Taller"
    },
    {
      id: "Aprendiz Leo",
      circulo: "Taller"
    },
    {
      id: "Clemente",
      circulo: "Taller"
    },
    {
      id: "Sabina",
      circulo: "Taller"
    },
    {
      id: "Rufo",
      circulo: "Taller"
    },
    {
      id: "Pepa",
      circulo: "Mercado"
    },
    {
      id: "Vicente",
      circulo: "Mercado"
    },
    {
      id: "Amparo",
      circulo: "Mercado"
    },
    {
      id: "Telmo",
      circulo: "Mercado"
    },
    {
      id: "Profesor Lago",
      circulo: "Colegio"
    },
    {
      id: "Alumna Sol",
      circulo: "Colegio"
    },
    {
      id: "Bedel Juan",
      circulo: "Colegio"
    }
  ],
  value: "escenas",
  group: "circulo"
})
Open in playground →

Radial tree

network

layout: "radial": a tree from the most connected node (or from focus): each ring is one more step away. Links outside the tree are faint.

Radial treeRadial tree
Show spec
plot({
  type: "network",
  layout: "radial",
  title: "49 de los 69 personajes comparten escena directamente con Julián; nadie está a más de 2 pasos",
  subtitle: "Anillos según la distancia a la protagonista, en escenas compartidas",
  source: "datos ilustrativos",
  data: [
    {from: "Julián", to: "Inés", escenas: 1},
    {from: "Julián", to: "Tomasa", escenas: 12},
    // … 244 more rows
  ],
  nodes: [
    {
      id: "Julián",
      circulo: "Casa Valdés"
    },
    {
      id: "Inés",
      circulo: "Casa Valdés"
    },
    {
      id: "Tomasa",
      circulo: "Casa Valdés"
    },
    {
      id: "Bruno",
      circulo: "Casa Valdés"
    },
    {
      id: "Rosaura",
      circulo: "Casa Valdés"
    },
    {
      id: "Elías",
      circulo: "Casa Valdés"
    },
    {
      id: "Catalina",
      circulo: "Casa Valdés"
    },
    {
      id: "Gaspar",
      circulo: "Casa Valdés"
    },
    {
      id: "Leonor",
      circulo: "Casa Valdés"
    },
    {
      id: "Matías",
      circulo: "Casa Valdés"
    },
    {
      id: "Abril",
      circulo: "Casa Valdés"
    },
    {
      id: "Ramiro",
      circulo: "Casa Valdés"
    },
    {
      id: "Celia",
      circulo: "Casa Valdés"
    },
    {
      id: "Dámaso",
      circulo: "Casa Valdés"
    },
    {
      id: "Olga",
      circulo: "Casa Valdés"
    },
    {
      id: "Fermín",
      circulo: "Casa Valdés"
    },
    {
      id: "Nieves",
      circulo: "Casa Valdés"
    },
    {
      id: "Andrés",
      circulo: "Barricada"
    },
    {
      id: "Lucio",
      circulo: "Barricada"
    },
    {
      id: "Teo",
      circulo: "Barricada"
    },
    {
      id: "Marcial",
      circulo: "Barricada"
    },
    {
      id: "Simón",
      circulo: "Barricada"
    },
    {
      id: "Vera",
      circulo: "Barricada"
    },
    {
      id: "Íñigo",
      circulo: "Barricada"
    },
    {
      id: "Pablo",
      circulo: "Barricada"
    },
    {
      id: "Ruth",
      circulo: "Barricada"
    },
    {
      id: "Noé",
      circulo: "Barricada"
    },
    {
      id: "Hugo",
      circulo: "Barricada"
    },
    {
      id: "Capitán Ríos",
      circulo: "Puerto"
    },
    {
      id: "Marta",
      circulo: "Puerto"
    },
    {
      id: "Esteban",
      circulo: "Puerto"
    },
    {
      id: "Lola",
      circulo: "Puerto"
    },
    {
      id: "Basilio",
      circulo: "Puerto"
    },
    {
      id: "Ciro",
      circulo: "Puerto"
    },
    {
      id: "Dora",
      circulo: "Puerto"
    },
    {
      id: "Eloy",
      circulo: "Puerto"
    },
    {
      id: "Fabia",
      circulo: "Puerto"
    },
    {
      id: "Sor Clara",
      circulo: "Convento"
    },
    {
      id: "Sor Edith",
      circulo: "Convento"
    },
    {
      id: "Padre Anselmo",
      circulo: "Convento"
    },
    {
      id: "Sor Pía",
      circulo: "Convento"
    },
    {
      id: "Hermano Luis",
      circulo: "Convento"
    },
    {
      id: "Sor Rita",
      circulo: "Convento"
    },
    {
      id: "Sor Ana",
      circulo: "Convento"
    },
    {
      id: "Novicia Eva",
      circulo: "Convento"
    },
    {
      id: "Doña Benita",
      circulo: "Posada"
    },
    {
      id: "Don Cosme",
      circulo: "Posada"
    },
    {
      id: "Paca",
      circulo: "Posada"
    },
    {
      id: "Remigio",
      circulo: "Posada"
    },
    {
      id: "Toña",
      circulo: "Posada"
    },
    {
      id: "Zoilo",
      circulo: "Posada"
    },
    {
      id: "Quique",
      circulo: "Posada"
    },
    {
      id: "Juez Arteaga",
      circulo: "Tribunal"
    },
    {
      id: "Fiscal Ponce",
      circulo: "Tribunal"
    },
    {
      id: "Escribano Gil",
      circulo: "Tribunal"
    },
    {
      id: "Alguacil Mora",
      circulo: "Tribunal"
    },
    {
      id: "Abogado Sanz",
      circulo: "Tribunal"
    },
    {
      id: "Testigo Roca",
      circulo: "Tribunal"
    },
    {
      id: "Maestro Ibar",
      circulo: "Taller"
    },
    {
      id: "Aprendiz Leo",
      circulo: "Taller"
    },
    {
      id: "Clemente",
      circulo: "Taller"
    },
    {
      id: "Sabina",
      circulo: "Taller"
    },
    {
      id: "Rufo",
      circulo: "Taller"
    },
    {
      id: "Pepa",
      circulo: "Mercado"
    },
    {
      id: "Vicente",
      circulo: "Mercado"
    },
    {
      id: "Amparo",
      circulo: "Mercado"
    },
    {
      id: "Telmo",
      circulo: "Mercado"
    },
    {
      id: "Profesor Lago",
      circulo: "Colegio"
    },
    {
      id: "Alumna Sol",
      circulo: "Colegio"
    },
    {
      id: "Bedel Juan",
      circulo: "Colegio"
    }
  ],
  value: "escenas",
  group: "circulo"
})
Open in playground →

Concentric network

network

layout: "concentric": rings by weight, the largest in the middle; within each ring, ordered by group. Who concentrates the network shows at a glance.

Concentric networkConcentric network
Show spec
plot({
  type: "network",
  layout: "concentric",
  title: "U. Minera del Norte participa en 41 proyectos conjuntos, más que cualquier otra organización",
  subtitle: "Proyectos conjuntos de I+D; anillos de mayor a menor número de proyectos",
  source: "datos ilustrativos",
  data: [
    {from: "Forestal Ríos", to: "U. Minera del Norte", proyectos: 5},
    {from: "Salmones Fiordo", to: "U. Técnica del Litoral", proyectos: 2},
    // … 78 more rows
  ],
  nodes: [
    {
      id: "U. del Pacífico Sur",
      grupo: "Universidades"
    },
    {
      id: "U. Austral Andina",
      grupo: "Universidades"
    },
    {
      id: "U. Técnica del Litoral",
      grupo: "Universidades"
    },
    {
      id: "U. del Valle Central",
      grupo: "Universidades"
    },
    {
      id: "U. Minera del Norte",
      grupo: "Universidades"
    },
    {
      id: "U. de los Lagos Altos",
      grupo: "Universidades"
    },
    {
      id: "Centro de Genómica Vegetal",
      grupo: "Centros de investigación"
    },
    {
      id: "Centro de Energía Marina",
      grupo: "Centros de investigación"
    },
    {
      id: "Instituto de Datos Abiertos",
      grupo: "Centros de investigación"
    },
    {
      id: "Lab. de Materiales",
      grupo: "Centros de investigación"
    },
    {
      id: "Centro de Acuicultura",
      grupo: "Centros de investigación"
    },
    {
      id: "Instituto del Litio",
      grupo: "Centros de investigación"
    },
    {
      id: "Centro de Bosque Nativo",
      grupo: "Centros de investigación"
    },
    {
      id: "Lab. de Robótica Agrícola",
      grupo: "Centros de investigación"
    },
    {
      id: "Forestal Ríos",
      grupo: "Empresas"
    },
    {
      id: "Salmones Fiordo",
      grupo: "Empresas"
    },
    {
      id: "Viña Cordillera",
      grupo: "Empresas"
    },
    {
      id: "Minera Altiplano",
      grupo: "Empresas"
    },
    {
      id: "Agrícola Itata",
      grupo: "Empresas"
    },
    {
      id: "Pesquera Bahía",
      grupo: "Empresas"
    },
    {
      id: "Solar Atacama",
      grupo: "Empresas"
    },
    {
      id: "Celulosa Laja",
      grupo: "Empresas"
    },
    {
      id: "Frutícola Maule",
      grupo: "Empresas"
    },
    {
      id: "Lácteos del Sur",
      grupo: "Empresas"
    },
    {
      id: "Química Pacífico",
      grupo: "Empresas"
    },
    {
      id: "Logística Puerto",
      grupo: "Empresas"
    },
    {
      id: "Cervecera Calle-Calle",
      grupo: "Empresas"
    },
    {
      id: "Metalúrgica Bío",
      grupo: "Empresas"
    },
    {
      id: "Gobierno Regional",
      grupo: "Servicios públicos"
    },
    {
      id: "Servicio de Salud Regional",
      grupo: "Servicios públicos"
    },
    {
      id: "Agencia de Fomento",
      grupo: "Servicios públicos"
    },
    {
      id: "Oficina de Riego",
      grupo: "Servicios públicos"
    },
    {
      id: "Servicio de Pesca",
      grupo: "Servicios públicos"
    },
    {
      id: "Agencia Ambiental",
      grupo: "Servicios públicos"
    },
    {
      id: "Municipalidad Costera",
      grupo: "Servicios públicos"
    },
    {
      id: "AgroSense",
      grupo: "Startups"
    },
    {
      id: "DataMar",
      grupo: "Startups"
    },
    {
      id: "BioLitio",
      grupo: "Startups"
    },
    {
      id: "SolarTrack",
      grupo: "Startups"
    },
    {
      id: "AquaIA",
      grupo: "Startups"
    },
    {
      id: "Riego360",
      grupo: "Startups"
    },
    {
      id: "ForestEye",
      grupo: "Startups"
    },
    {
      id: "VinoLab",
      grupo: "Startups"
    },
    {
      id: "RoboFruit",
      grupo: "Startups"
    }
  ],
  value: "proyectos",
  group: "grupo"
})
Open in playground →

Clustered network

network

layout: "clusters": one cluster per group (sunflower spiral, the largest in the middle), with room ∝ √size. Links inside a group stay short; bridges between groups stand out.

Clustered networkClustered network
Show spec
plot({
  type: "network",
  layout: "clusters",
  title: "Casa Valdés es el círculo más grande (17 personajes) y Julián lo une a todos los demás",
  subtitle: "Personajes que aparecen juntos en escena, agrupados por círculo",
  source: "datos ilustrativos",
  data: [
    {from: "Julián", to: "Inés", escenas: 1},
    {from: "Julián", to: "Tomasa", escenas: 12},
    // … 244 more rows
  ],
  nodes: [
    {
      id: "Julián",
      circulo: "Casa Valdés"
    },
    {
      id: "Inés",
      circulo: "Casa Valdés"
    },
    {
      id: "Tomasa",
      circulo: "Casa Valdés"
    },
    {
      id: "Bruno",
      circulo: "Casa Valdés"
    },
    {
      id: "Rosaura",
      circulo: "Casa Valdés"
    },
    {
      id: "Elías",
      circulo: "Casa Valdés"
    },
    {
      id: "Catalina",
      circulo: "Casa Valdés"
    },
    {
      id: "Gaspar",
      circulo: "Casa Valdés"
    },
    {
      id: "Leonor",
      circulo: "Casa Valdés"
    },
    {
      id: "Matías",
      circulo: "Casa Valdés"
    },
    {
      id: "Abril",
      circulo: "Casa Valdés"
    },
    {
      id: "Ramiro",
      circulo: "Casa Valdés"
    },
    {
      id: "Celia",
      circulo: "Casa Valdés"
    },
    {
      id: "Dámaso",
      circulo: "Casa Valdés"
    },
    {
      id: "Olga",
      circulo: "Casa Valdés"
    },
    {
      id: "Fermín",
      circulo: "Casa Valdés"
    },
    {
      id: "Nieves",
      circulo: "Casa Valdés"
    },
    {
      id: "Andrés",
      circulo: "Barricada"
    },
    {
      id: "Lucio",
      circulo: "Barricada"
    },
    {
      id: "Teo",
      circulo: "Barricada"
    },
    {
      id: "Marcial",
      circulo: "Barricada"
    },
    {
      id: "Simón",
      circulo: "Barricada"
    },
    {
      id: "Vera",
      circulo: "Barricada"
    },
    {
      id: "Íñigo",
      circulo: "Barricada"
    },
    {
      id: "Pablo",
      circulo: "Barricada"
    },
    {
      id: "Ruth",
      circulo: "Barricada"
    },
    {
      id: "Noé",
      circulo: "Barricada"
    },
    {
      id: "Hugo",
      circulo: "Barricada"
    },
    {
      id: "Capitán Ríos",
      circulo: "Puerto"
    },
    {
      id: "Marta",
      circulo: "Puerto"
    },
    {
      id: "Esteban",
      circulo: "Puerto"
    },
    {
      id: "Lola",
      circulo: "Puerto"
    },
    {
      id: "Basilio",
      circulo: "Puerto"
    },
    {
      id: "Ciro",
      circulo: "Puerto"
    },
    {
      id: "Dora",
      circulo: "Puerto"
    },
    {
      id: "Eloy",
      circulo: "Puerto"
    },
    {
      id: "Fabia",
      circulo: "Puerto"
    },
    {
      id: "Sor Clara",
      circulo: "Convento"
    },
    {
      id: "Sor Edith",
      circulo: "Convento"
    },
    {
      id: "Padre Anselmo",
      circulo: "Convento"
    },
    {
      id: "Sor Pía",
      circulo: "Convento"
    },
    {
      id: "Hermano Luis",
      circulo: "Convento"
    },
    {
      id: "Sor Rita",
      circulo: "Convento"
    },
    {
      id: "Sor Ana",
      circulo: "Convento"
    },
    {
      id: "Novicia Eva",
      circulo: "Convento"
    },
    {
      id: "Doña Benita",
      circulo: "Posada"
    },
    {
      id: "Don Cosme",
      circulo: "Posada"
    },
    {
      id: "Paca",
      circulo: "Posada"
    },
    {
      id: "Remigio",
      circulo: "Posada"
    },
    {
      id: "Toña",
      circulo: "Posada"
    },
    {
      id: "Zoilo",
      circulo: "Posada"
    },
    {
      id: "Quique",
      circulo: "Posada"
    },
    {
      id: "Juez Arteaga",
      circulo: "Tribunal"
    },
    {
      id: "Fiscal Ponce",
      circulo: "Tribunal"
    },
    {
      id: "Escribano Gil",
      circulo: "Tribunal"
    },
    {
      id: "Alguacil Mora",
      circulo: "Tribunal"
    },
    {
      id: "Abogado Sanz",
      circulo: "Tribunal"
    },
    {
      id: "Testigo Roca",
      circulo: "Tribunal"
    },
    {
      id: "Maestro Ibar",
      circulo: "Taller"
    },
    {
      id: "Aprendiz Leo",
      circulo: "Taller"
    },
    {
      id: "Clemente",
      circulo: "Taller"
    },
    {
      id: "Sabina",
      circulo: "Taller"
    },
    {
      id: "Rufo",
      circulo: "Taller"
    },
    {
      id: "Pepa",
      circulo: "Mercado"
    },
    {
      id: "Vicente",
      circulo: "Mercado"
    },
    {
      id: "Amparo",
      circulo: "Mercado"
    },
    {
      id: "Telmo",
      circulo: "Mercado"
    },
    {
      id: "Profesor Lago",
      circulo: "Colegio"
    },
    {
      id: "Alumna Sol",
      circulo: "Colegio"
    },
    {
      id: "Bedel Juan",
      circulo: "Colegio"
    }
  ],
  value: "escenas",
  group: "circulo"
})
Open in playground →

Network as a tree

network

layout: "tree": the same tree as radial, laid flat: left to right when the area is wider than tall. S-shaped connectors; cross links outside the tree are faint.

Network as a treeNetwork as a tree
Show spec
plot({
  type: "network",
  layout: "tree",
  title: "Ana A. trajo a 4 socios, y por ellos llegaron 18 más",
  subtitle: "Quién invitó a quién a la cooperativa; color según comuna",
  source: "datos ilustrativos",
  data: [
    {from: "Ana A.", to: "Beto B.", compras: 3},
    {from: "Ana A.", to: "Carla A.", compras: 2},
    // … 26 more rows
  ],
  nodes: [
    {
      id: "Ana A.",
      comuna: "Concepción"
    },
    {
      id: "Beto B.",
      comuna: "Concepción"
    },
    {
      id: "Carla A.",
      comuna: "Talcahuano"
    },
    {
      id: "Diego C.",
      comuna: "Chiguayante"
    },
    {
      id: "Elena A.",
      comuna: "Hualpén"
    },
    {
      id: "Fabio A.",
      comuna: "Concepción"
    },
    {
      id: "Gala A.",
      comuna: "Concepción"
    },
    {
      id: "Héctor A.",
      comuna: "Concepción"
    },
    {
      id: "Irene A.",
      comuna: "Talcahuano"
    },
    {
      id: "Jorge B.",
      comuna: "Concepción"
    },
    {
      id: "Karen B.",
      comuna: "Concepción"
    },
    {
      id: "Luis A.",
      comuna: "Talcahuano"
    },
    {
      id: "Mila A.",
      comuna: "Chiguayante"
    },
    {
      id: "Nico B.",
      comuna: "Talcahuano"
    },
    {
      id: "Olivia A.",
      comuna: "Concepción"
    },
    {
      id: "Pedro B.",
      comuna: "Concepción"
    },
    {
      id: "Rocío C.",
      comuna: "Concepción"
    },
    {
      id: "Samuel B.",
      comuna: "Chiguayante"
    },
    {
      id: "Tania B.",
      comuna: "Talcahuano"
    },
    {
      id: "Ulises A.",
      comuna: "Chiguayante"
    },
    {
      id: "Valeria B.",
      comuna: "Chiguayante"
    },
    {
      id: "Walter C.",
      comuna: "Talcahuano"
    },
    {
      id: "Ximena A.",
      comuna: "Talcahuano"
    }
  ],
  value: "compras",
  group: "comuna"
})
Open in playground →

Grid network

network

layout: "grid": nodes on a grid ordered by group and weight; useful when finding each node matters more than the shape of the network.

Grid networkGrid network
Show spec
plot({
  type: "network",
  layout: "grid",
  title: "Planificación se coordina con 10 de las 14 otras áreas",
  subtitle: "Reuniones de coordinación entre áreas municipales en un año, por área",
  source: "datos ilustrativos",
  data: [
    {from: "Alcaldía", to: "Planificación", reuniones: 18},
    {from: "Alcaldía", to: "Finanzas", reuniones: 5},
    // … 29 more rows
  ],
  nodes: [
    {
      id: "Alcaldía",
      grupo: "Gestión"
    },
    {
      id: "Planificación",
      grupo: "Gestión"
    },
    {
      id: "Finanzas",
      grupo: "Gestión"
    },
    {
      id: "Jurídica",
      grupo: "Gestión"
    },
    {
      id: "Obras",
      grupo: "Territorio"
    },
    {
      id: "Tránsito",
      grupo: "Territorio"
    },
    {
      id: "Medio Ambiente",
      grupo: "Territorio"
    },
    {
      id: "Aseo y Ornato",
      grupo: "Territorio"
    },
    {
      id: "Desarrollo Social",
      grupo: "Social"
    },
    {
      id: "Salud",
      grupo: "Social"
    },
    {
      id: "Educación",
      grupo: "Social"
    },
    {
      id: "Deportes",
      grupo: "Social"
    },
    {
      id: "Cultura",
      grupo: "Comunidad"
    },
    {
      id: "Turismo",
      grupo: "Comunidad"
    },
    {
      id: "Seguridad",
      grupo: "Comunidad"
    }
  ],
  from: "from",
  to: "to",
  value: "reuniones",
  group: "grupo"
})
Open in playground →

Chord diagram

chord

Each arc is a zone's total; each ribbon, the exchange between two zones (the tooltip splits both directions). Ribbons take the color of the zone that sends more.

Chord diagramChord diagram
Show spec
plot({
  type: "chord",
  title: "Metropolitana y Centro intercambian más personas que cualquier otro par: 135.000",
  subtitle: "Cambios de residencia entre macrozonas en cinco años",
  source: "datos ilustrativos",
  data: [
    {origen: "Norte Grande", destino: "Norte Chico", personas: 9000},
    {origen: "Norte Grande", destino: "Centro", personas: 6000},
    // … 28 more rows
  ],
  from: "origen",
  to: "destino",
  value: "personas"
})
Open in playground →

Flow chart with swimlanes

flowchart

Nodes and edges with a type (start, process, decision, end) and a lane per unit. Layout is automatic; decisions branch from the side and loops go around without crossing nodes.

Flow chart with swimlanesFlow chart with swimlanes
Show spec
plot({
  type: "flowchart",
  title: "Una compra pública pasa por 3 unidades y 2 decisiones antes del pago",
  subtitle: "Proceso de compra, esquema ilustrativo",
  source: "datos ilustrativos",
  nodes: [
    {
      id: "inicio",
      label: "Necesidad de compra",
      type: "start",
      lane: "Unidad requirente"
    },
    {
      id: "req",
      label: "Elaborar requerimiento y especificaciones técnicas",
      lane: "Unidad requirente",
      detail: "Incluye presupuesto estimado y criterios de evaluación."
    },
    {
      id: "presup",
      label: "¿Hay disponibilidad presupuestaria?",
      type: "decision",
      lane: "Finanzas"
    },
    {
      id: "ajustar",
      label: "Ajustar el requerimiento",
      lane: "Unidad requirente"
    },
    {
      id: "cdp",
      label: "Emitir certificado de disponibilidad",
      lane: "Finanzas"
    },
    {
      id: "monto",
      label: "¿Monto sobre 100 UTM?",
      type: "decision",
      lane: "Abastecimiento"
    },
    {
      id: "lic",
      label: "Publicar licitación en Mercado Público",
      lane: "Abastecimiento",
      detail: "Plazos mínimos de publicación según el monto."
    },
    {
      id: "agil",
      label: "Compra ágil o convenio marco",
      lane: "Abastecimiento"
    },
    {
      id: "eval",
      label: "Evaluar ofertas con la comisión",
      lane: "Unidad requirente"
    },
    {
      id: "oc",
      label: "Adjudicar y emitir orden de compra",
      lane: "Abastecimiento"
    },
    {
      id: "recep",
      label: "Recepción conforme",
      lane: "Unidad requirente"
    },
    {
      id: "pago",
      label: "Pagar la factura",
      lane: "Finanzas"
    },
    {
      id: "fin",
      label: "Proceso cerrado",
      type: "end",
      lane: "Finanzas"
    }
  ],
  data: [
    {from: "inicio", to: "req"},
    {from: "req", to: "presup"},
    // … 12 more rows
  ]
})
Open in playground →

Flows and numbers 4

Heatmap

heatmap

A single-hue sequential ramp. Values are written in the cell when they fit, in white or ink depending on contrast.

HeatmapHeatmap
Show spec
plot({
  type: "heatmap",
  title: "Los lunes a mediodía se concentra la demanda de atención",
  subtitle: "Atenciones promedio por día y hora",
  source: "datos ilustrativos",
  data: [
    {dia: "Lun", hora: "08:00", atenciones: 93},
    {dia: "Lun", hora: "10:00", atenciones: 130},
    // … 47 more rows
  ],
  x: "hora",
  y: "dia",
  value: "atenciones"
})
Open in playground →

Indicators (KPI)

kpi

When the story is a number, the number is the chart. Change with arrow and text, a sparkline and a target meter.

Indicators (KPI)Indicators (KPI)
Show spec
plot({
  type: "kpi",
  title: "El trimestre cierra con ventas 12% sobre el año anterior",
  source: "datos ilustrativos",
  items: [
    {label: "Ventas", value: 1250000000, format: "currency", delta: 0.124, period: "vs T3 2025", trend: [8.1,8.6,8.4,9.8,10.9,12.5]},
    {label: "Clientes activos", value: 8420, delta: -0.032, period: "vs T3 2025", trend: [9,8.9,8.7,8.6,8.5,8.4]},
    {label: "Costo por cliente", value: 18500, format: "currency", delta: -0.08, good: "down", period: "vs T3 2025"},
    {label: "Satisfacción (NPS)", value: 62, target: 70, delta: 0.05, period: "vs T3 2025"}
  ]
})
Open in playground →

Word cloud

wordcloud

Every word horizontal; each word's area is proportional to its frequency, placed in a spiral from the most frequent, without collisions and identical for the same spec. One hue that darkens with frequency. With text: "…" it counts the words in raw text, dropping stopwords.

Word cloudWord cloud
Show spec
plot({
  type: "wordcloud",
  title: "“Datos” e “inteligencia artificial” dominan lo que piden las empresas",
  subtitle: "Menciones en 312 respuestas abiertas sobre prioridades digitales, 2026",
  source: "datos ilustrativos",
  data: [
    {palabra: "datos", menciones: 120},
    {palabra: "inteligencia artificial", menciones: 96},
    // … 33 more rows
  ],
  text: "palabra",
  value: "menciones"
})
Open in playground →

Word cloud by theme

wordcloud

With series each word takes its theme's color, with a legend: color carries meaning instead of decorating.

Word cloud by themeWord cloud by theme
Show spec
plot({
  type: "wordcloud",
  title: "Las peticiones de tecnología superan a las de personas y negocio",
  subtitle: "Menciones por tema en 312 respuestas abiertas, 2026",
  source: "datos ilustrativos",
  data: [
    {palabra: "datos", menciones: 120, tema: "Tecnología"},
    {palabra: "inteligencia artificial", menciones: 96, tema: "Tecnología"},
    // … 33 more rows
  ],
  text: "palabra",
  value: "menciones",
  series: "tema"
})
Open in playground →

Tables 3

Table with indicators

table

Without columns, each column picks its indicator: a bar on the main measure, ▲/▼ on the change, a sparkline on lists of numbers, a meter on the target and a pill on the status (statuses are recognized in Spanish, English, Portuguese, French and German). Numbers right-aligned with matching decimals. On a phone, each row becomes a card.

Table with indicatorsTable with indicators
Show spec
plot({
  type: "table",
  title: "La Metropolitana vende más que las siete regiones siguientes juntas",
  subtitle: "Ventas 2025 en millones de pesos, variación anual, tendencia 2020–2025 y cumplimiento de la meta",
  source: "datos ilustrativos",
  data: [
    {region: "Metropolitana", ventas: 18420, variacion: 0.041, tendencia: [15.1,15.8,16.4,17.2,17.7,18.4], meta: 0.96, estado: "Completado"},
    {region: "Valparaíso", ventas: 4210, variacion: 0.021, tendencia: [3.7,3.8,3.9,4,4.1,4.2], meta: 0.88, estado: "En curso"},
    // … 6 more rows
  ],
  highlight: "Ñuble",
  total: true
})
Open in playground →

Paginated table, in English

table

More than 15 rows are paginated 10 at a time; the pager uses only numbers and arrows. Without locale, the language is recognized from the title and the data (English here: 1,234.5). In the browser a click on a header sorts, and a search box appears above 20 rows.

Paginated table, in EnglishPaginated table, in English
Show spec
plot({
  type: "table",
  title: "Guyana grew five times faster than any other economy in the region",
  subtitle: "Real GDP growth and inflation, percent, 2024; population in millions",
  source: "illustrative data",
  data: [
    {country: "Guyana", region: "Caribbean", growth: 33.9, inflation: 2.1, population: 0.83},
    {country: "Panama", region: "Central America", growth: 7.3, inflation: 1.1, population: 4.4},
    // … 16 more rows
  ],
  columns: [
    "country",
    "region",
    {
      field: "growth",
      label: "GDP growth",
      type: "delta",
      format: {
        type: "percent",
        scale: 1,
        decimals: 1
      }
    },
    {
      field: "inflation",
      label: "Inflation",
      type: "heat",
      colorScale: "Oranges",
      format: {
        type: "percent",
        scale: 1,
        decimals: 1
      }
    },
    {
      field: "population",
      label: "Population (M)",
      type: "bar",
      format: {
        decimals: 1
      }
    }
  ],
  sortBy: "growth",
  rank: true
})
Open in playground →

Project portfolio

table

columns sets order and type: progress against a target field (with good: "down" going over is bad), check for booleans and readable dates. group puts rows under a band.

Project portfolioProject portfolio
Show spec
plot({
  type: "table",
  title: "Dos de seis proyectos ya gastaron más de lo presupuestado",
  subtitle: "Cartera digital 2026: avance, gasto contra presupuesto (millones de pesos) y estado",
  source: "datos ilustrativos",
  data: [
    {proyecto: "Migración ERP", area: "Finanzas", entrega: "2026-03-31", avance: 0.82, estado: "En curso", presupuesto: 410, gasto: 380, prioritario: true},
    {proyecto: "Portal de clientes", area: "Comercial", entrega: "2026-02-15", avance: 1, estado: "Completado", presupuesto: 220, gasto: 205, prioritario: true},
    // … 4 more rows
  ],
  columns: [
    "proyecto",
    "area",
    {
      field: "entrega",
      label: "Entrega"
    },
    {
      field: "avance",
      type: "progress"
    },
    {
      field: "gasto",
      label: "Gasto / presupuesto",
      type: "progress",
      target: "presupuesto",
      good: "down"
    },
    "estado",
    {
      field: "prioritario",
      label: "Prioritario"
    }
  ],
  sortBy: "avance"
})
Open in playground →

Configuration 4

Dark theme + highlight

line

theme: "noche" uses the same hues, re-stepped and validated for a dark surface. highlight mutes the rest.

Dark theme + highlight
Show spec
plot({
  type: "line",
  theme: "noche",
  title: "Ñuble creció 60% en dos años, el triple que Biobío",
  subtitle: "Ventas mensuales por región, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", region: "Biobío", ventas: 123},
    {mes: "2022-01", region: "Araucanía", ventas: 81},
    // … 142 more rows
  ],
  x: "mes",
  y: "ventas",
  series: "region",
  highlight: "Ñuble"
})
Open in playground →

Minimal palettes

area

palette: "nordico" uses a minimal family: five muted colors, validated for color blindness, with matching ramps and a dark variant. palettes: ["nordico", "arcilla", "tinta"] bakes the alternatives into the same SVG: data-palette on the page picks the one that shows.

Minimal palettesMinimal palettes
Show spec
plot({
  type: "area",
  palette: "nordico",
  palettes: [
    "nordico",
    "arcilla",
    "tinta"
  ],
  title: "Ñuble pasó de 19% a 27% de las ventas del sur entre 2022 y 2025",
  subtitle: "Participación mensual de cada región en las ventas, %",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", region: "Biobío", ventas: 123},
    {mes: "2022-01", region: "Araucanía", ventas: 81},
    // … 142 more rows
  ],
  x: "mes",
  y: "ventas",
  series: "region",
  stack: "percent",
  curve: "smooth"
})
Open in playground →

Font and text scale

line

font: "Poppins" and textScale: 1.6 enlarge every text for a presentation and the layout is recomputed. configure({ font, textScale }) sets them for every chart.

Font and text scaleFont and text scale
Show spec
plot({
  type: "line",
  title: "Ñuble crece más rápido que el resto del sur",
  subtitle: "Ventas mensuales, millones de pesos",
  source: "datos ilustrativos",
  data: [
    {mes: "2022-01", region: "Biobío", ventas: 123},
    {mes: "2022-01", region: "Araucanía", ventas: 81},
    // … 142 more rows
  ],
  x: "mes",
  y: "ventas",
  series: "region",
  font: "Poppins",
  textScale: 1.6
})
Open in playground →

Themes are JSON

bar

Colors, type, line weight, radii and axes are one JSON object. palette takes a name ("okabe-ito", "tableau10", "udec") or a list of colors; validatePalette() checks it.

Themes are JSON
Show spec
plot({
  type: "bar",
  title: "Biobío y Araucanía suman la mitad de las ventas del sur",
  subtitle: "Ventas por región y canal, 2025",
  source: "datos ilustrativos",
  data: [
    {region: "Biobío", canal: "Tienda", ventas: 86},
    {region: "Biobío", canal: "Online", ventas: 58},
    // … 4 more rows
  ],
  x: "region",
  y: "ventas",
  series: "canal",
  stack: true,
  theme: {
    extends: "papel",
    categorical: "okabe-ito",
    surface: "#FFFFFF",
    type: {
      title: 22,
      titleWeight: 700
    },
    marks: {
      barRadius: 8,
      barMax: 44
    }
  }
})
Open in playground →