Custom label

Custom domain with a formatted centre label.

Chart type
Gauge gauge
Tier
Free Core
Collection
Gauge
Render
Live, site theme
View .md Agent setup
LIVE/gauge/gauge-with-custom-label3 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: [1840],
  labels: ["Monthly spend"],
  plotOptions: {
    radialBar: {
      min: 0,
      max: 2500,
      startAngle: -120,
      endAngle: 120,
      dataLabels: {
        name: {
          show: true,
          offsetY: 24
        },
        value: {
          offsetY: -8,
          formatter: (v) => '€' + Number(v).toLocaleString('en')
        }
      }
    }
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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