var options = {
  series: [576000, 168000, 42000, 34000],
  chart: {
    type: 'unit',
    height: 470,
    animations: {
      enabled: true,
      speed: 900,
    },
  },
  labels: ['Owner occupied', 'Private rent', 'Social rent', 'Vacant'],
  colors: ['#E07B39', '#2E86AB', '#00A96E', '#7B8794'],
  plotOptions: {
    unit: {
      layout: 'custom',
      // One of the shapes in apexcharts/unit-shapes.
      positions: 'house',
      transition: 'flow',
      unitValue: 1000,
      clusterLabels: {
        show: false,
      },
    },
  },
  legend: {
    position: 'bottom',
  },
}

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