Pie highlight

Hover or click a slice: it lifts out and the others dim.

Chart type
Pie pie
Tier
Free Core
Collection
Highlight filter
Render
Live, site theme
View .md Agent setup
LIVE/highlight-filter/pie-highlight7 of 23 in Highlight & filter

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "pie",
    toolbar: {
      show: false
    }
  },
  series: [34, 26, 18, 12, 10],
  labels: ["North", "South", "East", "West", "Central"],
  states: {
    hover: {
      filter: {
        type: "lighten",
      }
    },
    active: {
      filter: {
        type: "none"
      }
    }
  },
  plotOptions: {
    pie: {
      expandOnClick: true
    }
  },
  legend: {
    onItemHover: {
      highlightDataSeries: true
    }
  },
  title: {
    text: "Share by region"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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