<!DOCTYPE html> <html lang="zh" > <head> <meta charset="UTF-8"> <title>Apexcharts - Basic Circle Chart with additional customizations</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: 280, type: "radialBar" }, series: [67], plotOptions: { radialBar: { hollow: { margin: 15, size: "70%" }, dataLabels: { showOn: "always", name: { offsetY: -10, show: true, color: "#888", fontSize: "13px" }, value: { color: "#111", fontSize: "30px", show: true } } } }, stroke: { lineCap: "round", }, labels: ["Progress"] }; var chart = new ApexCharts(document.querySelector("#chart"), options); chart.render();