Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical numbers displace when set direction to "rtl" #4660

Closed
successbyte opened this issue Aug 24, 2024 · 7 comments · Fixed by #4674
Closed

Vertical numbers displace when set direction to "rtl" #4660

successbyte opened this issue Aug 24, 2024 · 7 comments · Fixed by #4674
Assignees
Labels
bug Something isn't working

Comments

@successbyte
Copy link
Contributor

Description

When using Apexchart in "rtl" mode for languages like Persian the vertical numbers and also the series names at the bottom displace
Example: I changed my app language to Persian/Arabic, by changing it the direction of app also changes: direction = "rtl" and the chart styles miss up the vertical numbers overflows from its place and comes on the graph and the bottom series names and it's colors stick to each other.

Steps to Reproduce

  1. Go to the html file where the <div id="chart"></div> is located (file that the chart is used in)
  2. give the above div or to the body tag a dir="rtl" atribute, or style="direction: rtl" style
  3. and also give the chart large numbers to see the behavior

Expected Behavior

Screenshot 2024-08-24 164325

Actual Behavior

Screenshot 2024-08-22 115001

Screenshots

Screenshot 2024-08-21 171508

Reproduction Link

https://codepen.io/ehsanullah_haidary/pen/gONzjyK

@successbyte successbyte added the bug Something isn't working label Aug 24, 2024
@successbyte
Copy link
Contributor Author

I also love to contribute to the apexchart.js repo it would be great if you assign me this issue please

@raziq-quraishi
Copy link

Hello I also have the same issue in one of the apps that I am working on. and the app is in rtl direction

@junedchhipa
Copy link
Contributor

@ehsanullahhaidary I have assigned it to you. You may create a PR.

@successbyte
Copy link
Contributor Author

@junedchhipa thank you
and I will create a PR

@successbyte
Copy link
Contributor Author

Do you have any discord channel or any place for the contributors?
if yes please send me the link
thanks

@successbyte
Copy link
Contributor Author

successbyte commented Aug 26, 2024

@junedchhipa Hello
As I checked graphs in Persian and Arabic (direction = rtl) all the graphs were the same as ours (apexchart)
then I have to set the correct styles as bellow and do not change graph direction.
Persian (rtl) standard graphs:

persian graph

@successbyte
Copy link
Contributor Author

thanks @junedchhipa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants