Basic Gauge in JavaScript
Using ApexCharts with JavaScript
This Basic Gauge 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().
var options = {
series: [72],
chart: {
height: 350,
type: 'gauge',
},
labels: ['Progress'],
}
var chart = new ApexCharts(document.querySelector('#chart'), options)
chart.render()