Polar Area Monochrome in JavaScript
Using ApexCharts with JavaScript
This Polar Area Monochrome 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: [42, 47, 52, 58, 65],
chart: {
width: 380,
type: 'polarArea',
},
labels: ['Free', 'Basic', 'Pro', 'Team', 'Enterprise'],
title: {
text: 'Satisfaction Score by Plan Tier',
align: 'center',
},
fill: {
opacity: 1,
},
stroke: {
width: 1,
colors: undefined,
},
yaxis: {
show: false,
},
legend: {
position: 'bottom',
},
plotOptions: {
polarArea: {
rings: {
strokeWidth: 0,
},
spokes: {
strokeWidth: 0,
},
},
},
theme: {
monochrome: {
enabled: true,
shadeTo: 'light',
shadeIntensity: 0.6,
},
},
}
var chart = new ApexCharts(document.querySelector('#chart'), options)
chart.render()