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

Missing final X-axis tick label with Datetime #4832

Open
tharmaman opened this issue Nov 27, 2024 · 0 comments
Open

Missing final X-axis tick label with Datetime #4832

tharmaman opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tharmaman
Copy link

tharmaman commented Nov 27, 2024

Description

When using a datetime xaxis with an xaxis label formatter, the final tick gets rendered but NOT the final tick label.

This issue appears on "Column", "Line" and "Mixed Column Line" charts.

While debugging the x axis formatter, I noticed the final tick value does get passed, it just never gets rendered. I left a console log in the x axis formatter function attached to the codepen link below, the 2024 value gets logged but is never rendered.

Screenshots

apexcharts_mising-x-label-line apexcharts_mising-x-label-column

Steps to Reproduce

  1. Use anxaxis of type: 'datetime
  2. Add an xaxis label formatter function through xaxis.labels.formatter

Expected Behavior

All xaxis ticks should have an xaxis tick label.

Actual Behavior

The final xaxis tick is missing an xaxis tick label.

Reproduction Link

https://codepen.io/LoopBoi/pen/raBNZpx

@tharmaman tharmaman added the bug Something isn't working label Nov 27, 2024
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
Development

No branches or pull requests

1 participant