Area with missing data

Areas with null gaps.

Chart type
Area area
Tier
Free Core
Collection
Area
Render
Live, site theme
View .md Agent setup
LIVE/area/area-with-missing-data7 of 8 in Area

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "area",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Station 1",
      data: [28, 26, 27, 24, 26, 30, null, null, null, 26, 29, 25, 27, 26, 25, 27, 27, 25, 28, 27]
    },
    {
      name: "Station 2",
      data: [16, 14, 13, 11, 12, 10, 7, 10, 12, 10, 9, 10, 8, null, null, 5, 5, 4, 3, 1]
    }
  ],
  xaxis: {
    categories: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20"]
  },
  dataLabels: {
    enabled: false
  },
  stroke: {
    width: 2
  },
  title: {
    text: "Rainfall (mm), gaps where no reading"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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