react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

Annotations are not getting full width and the XAxis values get cut when the columnWidth is less

Open noobDev31 opened this issue 3 years ago • 1 comments

I have two issues on my codesandbox -

https://codesandbox.io/s/react-apexcharts-bar-chart-forked-76pvlt?file=/src/index.js

a) The XAxis as you can see I am not getting the last value(May 2022) and for various screen sizes it happens - The value is getting cut somehow and I am getting the value when I change the column width to 22% it works only then(Attached screenshot)

I tried with chart: { width: "100% } as well still doesn't work.

b)The annotations(parallel to the XAxis) line is not having a full width for the average as you can see in the screenshots. Screenshot_324

Screenshot_325 Screenshot_322

@junedchhipa / @brianlagunas can you please have a look at it

noobDev31 avatar Oct 11 '22 19:10 noobDev31

I'm currently experiencing the same issue. The only workaround that i've found is changing the annotations offsetX and width pre

annotations: {
   yaxis: [
     {
       y: 33.9,
       offsetX: -20,
       width: '115%',
       borderColor: '#000',
     },
     {
       y: 33.1,
       offsetX: -20,
       width: '115%',
       borderColor: '#000',
     }]
}

post

There is any alternative to this?

anguimru avatar Oct 31 '23 11:10 anguimru