Bands

Threshold bands with gaps.

Chart type
Gauge gauge
Tier
Free Core
Collection
Gauge
Render
Live, site theme
View .md Agent setup
LIVE/gauge/gauge-with-bands2 of 7 in Gauge

Configuration

Raw Standalone
const options = {
  chart: {
    height: 320,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "gauge",
    toolbar: {
      show: false
    }
  },
  series: [68],
  labels: ["Disk"],
  plotOptions: {
    radialBar: {
      startAngle: -120,
      endAngle: 120,
      bands: [
        {
          from: 0,
          to: 60,
          color: "#16a34a",
          label: "OK"
        },
        {
          from: 60,
          to: 85,
          color: "#f59e0b",
          label: "Warn"
        },
        {
          from: 85,
          to: 100,
          color: "#dc2626",
          label: "Critical"
        }
      ],
      bandsStyle: {
        gap: 4
      },
      dataLabels: {
        name: {
          show: true
        }
      }
    }
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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