Rounded donut

Round caps on donut segments.

Chart type
Donut donut
Tier
Free Core
Collection
Pie & donut
Render
Live, site theme
View .md Agent setup
LIVE/pie/rounded-donut3 of 10 in Pie

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "donut",
    toolbar: {
      show: false
    }
  },
  series: [52, 28, 20],
  labels: ["Done", "In progress", "To do"],
  stroke: {
    lineCap: "round",
    width: 0
  },
  plotOptions: {
    pie: {
      donut: {
        size: "72%"
      }
    }
  },
  colors: ["#16a34a", "#f59e0b", "#cbd5e1"],
  title: {
    text: "Sprint tasks"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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