Multiple Band in JavaScript

Using ApexCharts with JavaScript

This Multiple Band example uses ApexCharts.js directly in JavaScript, with no wrapper component.

Install it with npm install apexcharts, then mount the chart with new ApexCharts(element, options).render().

JavaScript installation guide
var options = {
  series: [68, 82, 54, 91],
  chart: {
    height: 350,
    type: 'radialBar',
  },
  plotOptions: {
    radialBar: {
      dataLabels: {
        name: {
          fontSize: '22px',
        },
        value: {
          fontSize: '16px',
        },
        total: {
          show: true,
          label: 'Average',
          formatter: function (w) {
            // custom formatter: rounded average across all series, with a unit
            var total = w.globals.seriesTotals.reduce(function (a, b) {
              return a + b
            }, 0)
            return Math.round(total / w.globals.series.length) + '%'
          },
        },
      },
    },
  },
  labels: ['North', 'South', 'East', 'West'],
}

var chart = new ApexCharts(document.querySelector('#chart'), options)
chart.render()