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

Annotations positioning doesn't work on logarithmic axis. #3421

Closed
Labels
bug Something isn't working

Comments

@Finn-but
Copy link

When using a logarithmic y-axis annotations get positioned at the bottom regardless of their 'y' value.

Before setting to logarithmic:
image

After:
image

It can be replicated in the annotations demo by simply adding the following:

yaxis: {
    logarithmic: true,
    forceNiceScale: true
  }

https://codepen.io/apexcharts/pen/GXOJXQ

@Finn-but Finn-but added the bug Something isn't working label Oct 12, 2022
@denxorz
Copy link

denxorz commented Nov 18, 2022

Another example: https://codesandbox.io/s/vue-basic-example-forked-4w9puu?file=/src/components/Chart.component.vue
Setting logarithmic back to false will move the yaxis-annotation back up again from zero. Also downgrading the package from 3.36.3 to 3.19.3 works.

@hbenkhay
Copy link

I am having the same issue, the y-annotation line is always at y=0 for a logarithmic scale. I downgraded to older versions, but it didn't work

@joshribakoff-sm
Copy link

Same issue, cloned one of your code sandbox and replicated it - it sometimes works, but as you edit the values to get larger it replicates the bug - https://codepen.io/joshribakoff/pen/dyqJvNx

@Muuzzyy
Copy link

Muuzzyy commented Nov 30, 2023

Got the same issue, does anyone have a solution to provide ?
Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment