<!DOCTYPE html> <html lang="zh" > <head> <meta charset="UTF-8"> <title>Apexcharts - Basic Circle Chart</title> </head> <body> <div id="chart"></div> <script src="https://cdn.bootcdn.net/ajax/libs/apexcharts/3.35.0/apexcharts.min.js"></script> </body> </html>
#chart { max-width: 650px; margin: 35px auto; }
var options = { chart: { height: 350, type: 'radialBar', }, series: [70], labels: ['Progress'], } var chart = new ApexCharts(document.querySelector("#chart"), options); chart.render();