Gradient ring

Gradient fill along the ring.

Chart type
Radial Bar radialBar
Tier
Free Core
Collection
Radial bar
Render
Live, site theme
View .md Agent setup
LIVE/radialbar/circle-gradient4 of 7 in Radial bar

Configuration

Raw Standalone
const options = {
  chart: {
    height: 340,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "radialBar",
    toolbar: {
      show: false
    }
  },
  series: [74],
  labels: ["Battery"],
  fill: {
    type: "gradient",
    gradient: {
      shade: "dark",
      type: "horizontal",
      gradientToColors: ["#16a34a"],
      stops: [0, 100]
    }
  },
  colors: ["#f59e0b"],
  stroke: {
    lineCap: "round"
  },
  plotOptions: {
    radialBar: {
      hollow: {
        size: "64%"
      }
    }
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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