Energy mix

100 cells, one per percent of generation.

Why it matters exactly 100 cells via largest-remainder rounding; filled bottom-up; legend toggles re-flow

Chart type
Waffle waffle
Tier
Free Core
Collection
Waffle
Render
Live, site theme
View .md Agent setup
LIVE/waffle/energy-mix1 of 2 in Waffle

Configuration

Raw Standalone
const options = {
  chart: {
    height: 400,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "waffle",
    toolbar: {
      show: false
    }
  },
  series: [31.4, 22.7, 18.2, 12.9, 9.6, 5.2],
  labels: ["Wind", "Solar", "Gas", "Hydro", "Nuclear", "Coal"],
  colors: ["#0ea5e9", "#f59e0b", "#94a3b8", "#2563eb", "#7c3aed", "#475569"],
  plotOptions: {
    unit: {
      grid: {
        total: 100
      }
    }
  },
  title: {
    text: "Electricity generation 2026 (%)"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()