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

Incorrect display format for horizontal bar charts when using formatter functions #4472

Open
fabio-sp opened this issue May 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fabio-sp
Copy link

Description

When displaying an horizontal bar chart, x axis format is not correctly shown on the tooltip. The values displayed on the axis itself are correctly formatted using the x-axis formatter function, but the values shown in the tooltip are formatted using the y-axis formatter (if provided).

I'm willing to triage this issue but since I'm not familiar with the codebase some guidance could be helpful.

Steps to Reproduce

  1. Create a chart with chart type 'bar' and plotOptions.bar.horizontal 'true';
  2. Apply a fomatter function on both axes;
  3. Render the chart;

Expected Behavior

Actual Behavior

Screenshots

image

Reproduction Link

https://codepen.io/FabioSpa/pen/QWRjvMY

@Cactii1
Copy link

Cactii1 commented Jun 19, 2024

This bug must be related to what I am experiencing. I can't get a logarithmic scale to display properly because the bars end up being the wrong length. It really makes log scale unusable for this type of chart.

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

2 participants