var options = {
  series: [3100, 1600, 800, 400, 300],
  chart: {
    type: 'unit',
    height: 470,
    animations: {
      enabled: true,
      speed: 900,
    },
  },
  labels: ['5 star', '4 star', '3 star', '2 star', '1 star'],
  colors: ['#00A96E', '#7CB342', '#FFAB00', '#F2994A', '#FF4560'],
  plotOptions: {
    unit: {
      layout: 'custom',
      // One of the shapes in apexcharts/unit-shapes.
      positions: 'star',
      transition: 'flow',
      unitValue: 8,
      clusterLabels: {
        // Outer labels: each band is named in the margin with a leader line to its
        // own dots, so the crowd reads without a legend.
        external: {
          show: true,
        },
      },
    },
  },
  legend: {
    show: false,
  },
}

var chart = new ApexCharts(document.querySelector('#chart'), options)
chart.render()
Review Ratings - JavaScript Unit Charts | ApexCharts.js | ApexCharts.js