question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Point annotations in stacked horizontal bar chart not working as expected

See original GitHub issue

Bug report

Codepen

https://codepen.io/Scopperloit/pen/MWyzzYM

Explanation

  • What is the behavior you expect? I want to be able to set point annotations in horizontally stacked bar charts, where the vertical y-axis represent categories, and the horizontal x-axis represents the bar values. It appears that the x-axis and y-axis are swapped for horizontal bar chart. Ideally, the point annotation’s coordinates should be on the format P = { x: numerical value, y: category string }

  • What is happening instead? The point’s x-coordinates are aligning along the horizontal x-axis by categories, even though the categories are on the vertical y-axis. The point’s y-coordinates appears to be determined by the numerical value, even though these values are on the horizontal x-axis. It appears the point coordinates does not take into account that the x-axis and y-axis are swapped for horizontal charts.

  • What error message are you getting? None.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Dblsn01commented, Jun 11, 2022

This bug is still present in the latest version, has anyone found a workaround? Thanks

0reactions
dkgkejdrbcommented, Nov 2, 2022

same here… is there any solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to Stacked Bar Charts | Tutorial by Chartio
Stacked bar charts extend the standard bar chart by dividing each bar into multiple subcategories. Learn how to best use this chart type...
Read more >
annotation in highchart doesn't work as expected
The text was located at the bottom left corner, not located at the right horizontal position yet the vertical position is right. The...
Read more >
Stacked Bar Charts - Salesforce Help
Use a stacked bar chart when you have multiple groupings and are interested in the proportions between values in each grouping, as well...
Read more >
Bar Charts
Standard Bar Charts; Trellis Plots; 100% Stacked Bar Chart; Long Value Labels. Multiple Variable Bar Chart; Interactive Bar Chart; Full Manual; More ...
Read more >
How to Produce Labeled Stacked Bar Charts Using SGPLOT ...
position the way you want, groupings don't work the way you expect them to, or you just can't get that bar chart to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found