Column highlight

Hovering a column dims the others; click keeps the selection.

Chart type
Bar bar
Tier
Free Core
Collection
Highlight filter
Render
Live, site theme
View .md Agent setup
LIVE/highlight-filter/column-highlight2 of 23 in Highlight & filter

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "bar",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Orders",
      data: [54, 78, 55, 71, 43, 65, 64, 52, 74, 69, 55, 80]
    }
  ],
  xaxis: {
    categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  },
  plotOptions: {
    bar: {
      borderRadius: 3
    }
  },
  states: {
    hover: {
      filter: {
        type: "darken",
      }
    },
    active: {
      allowMultipleDataPointsSelection: false,
      filter: {
        type: "darken",
      }
    }
  },
  title: {
    text: "Orders per month (hover / click)"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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