Review ratings

Star pictograms per rating, one star = 10 reviews.

Chart type
Unit unit
Tier
Free Core
Collection
Unit & pictogram
Render
Live, site theme
View .md Agent setup
LIVE/unit/review-ratings12 of 33 in Unit

Configuration

Raw Standalone
const options = {
  chart: {
    height: 400,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "unit",
    toolbar: {
      show: false
    }
  },
  series: [480, 310, 120, 60, 40],
  labels: ["5 ★", "4 ★", "3 ★", "2 ★", "1 ★"],
  colors: ["#16a34a", "#65a30d", "#d97706", "#ea580c", "#dc2626"],
  plotOptions: {
    unit: {
      layout: "columns",
      shape: "pictogram",
      pictogram: {
        mark: "star"
      },
      unitValue: 10,
      clusterLabels: {
        show: true,
        position: "bottom"
      }
    }
  },
  title: {
    text: "1 010 product reviews (1 star = 10)"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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