form.chart10.addEventListener("chartUpdated", e=>{
e.target.chartEl.updateOptions({
plotOptions: {
bar: {
dataLabels: {
position: 'top', // top, center, bottom
},
}
},
stroke:{
width:0,
},
dataLabels: {
enabled: true,
offsetY: -20,
style: {
fontSize: '15px',
}
},
fill: {
type: 'gradient',
gradient: {
shade: 'top',
type: "vertical",
stops: [0, 100],
opacityFrom: 0.9,
opacityTo: 0.3,
}
}
});
});
form.chart20.addEventListener("chartUpdated", e=>{
e.target.chartEl.updateOptions({
fill: {
type: 'pattern',
opacity: 1,
pattern: {
enabled: true,
style: ['verticalLines', 'squares', 'horizontalLines', 'circles','slantedLines'],
},
},
})
})
Checkout the sample code for gradient donut chart in React.js
https://www.apexcharts.com/javascript-chart-demos/pie-charts/gradient-donut/
form.chart21.addEventListener("chartUpdated", e=>{
e.target.chartEl.updateOptions({
fill: {
type: 'gradient',
}
})
})
[jj-id="dataGrid1"]{ td { border: none!important; border-right: 1px solid #cccccc!important; } jj-pagination{ display: none!important; } margin-bottom: 1rem; }