Apexcharts.js: endingShape / Stroke bar chart

Created on 21 Mar 2019  路  14Comments  路  Source: apexcharts/apexcharts.js

Round end on bar chart

Hi my code for bar chart is.
let option = {
chart: {
type: 'bar',
width: 200,
height: 150,
sparkline: {
enabled: true
}
},
plotOptions: {
bar: {
columnWidth: '40%',
endingShape: 'rounded',
dataLabels: {
position: 'top',
}
}
},
series: series,
labels: labels,
dataLabels: {
enabled: true,
offsetY: -15,
style: {
fontSize: '8px',
fontWeight: 'bold',
fontFamily: 'sans-serif',
colors: ['#000']
},
dropShadow: {
enabled: false,
top: 1,
left: 0,
blur: 1,
opacity: 0.45
}
},
stroke: {
show: true,
width: 1,
colors: ['transparent']
},
xaxis: {
crosshairs: {
width: 1
},
},
tooltip: {
fixed: {
enabled: false
},
x: {
show: false
},
y: {
title: {
formatter: function (seriesName) {
return ''
}
}
},
marker: {
show: false
}
}
}

Explanation

feature-request

Most helpful comment

any update on borderRadius?

All 14 comments

The endingShape property has been deprecated, and soon a new property borderRadius will be implemented.

@junedchhipa thx,

so with version 3.6.3 I can't get bar rounded?.

Now I'm trying the 3.0.0 version and it works!

It was removed recently in 3.6.0.
You may use 3.0.0 until borderRadius is released

Closing as related to #414

any update on borderRadius?

+1

Btw, I went to recharts. I can define my own shape. Wanted to share in case anyone else was looking for alternatives.

@rileylnapier how?

Any updates on the release of 'borderRadius'?

@junedchhipa Just wondering, was the idea of a border-radius property scrapped? I have been looking for a way to make the corners only slightly rounded.

This rounded shape is a little bit "abnormal" - it麓s possible to be really rounded instead a "sausage" bars ?

Thanks @junedchhipa :

image

I麓m using 30% for barHeight - less than that the legend inside the bars will be unreadable.

Ok, no problem !!!
Thanks for your support, the ApexCharts is amazing, this is a minimal detail guys!
Cheers,

Is this working also with pie charts?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sumon-miazi picture Sumon-miazi  路  3Comments

jeroenpol picture jeroenpol  路  3Comments

cstlaurent picture cstlaurent  路  3Comments

felixalguzman picture felixalguzman  路  3Comments

tcarlsen picture tcarlsen  路  3Comments