Uh oh!
There was an error while loading. Please reload this page.
Show value of each bar on top of it - #585
Conversation
This improves the readability of the bars significantly.
agzuniverse
commented
Mar 11, 2020
@kortschak you mentioned #556 cannot be merged because it does not pass the CI build, so here's a PR which does. |
| // ShowLabel determines whether the value of the bars should be | ||
| // shown above it or not. | ||
| ShowLabel bool |
xiaofeng-zerone
commented
Mar 26, 2020
When can master branches use this feature? |
kortschak
commented
Mar 26, 2020
It would need to be merged first, and then it will be included in the next minor release. In order to be merged it needs to pass review, which will require that the change requests are satisfied. |
The value label is displayed on top of bar charts only when the user has set this to true.
Showing the entire float64 value is not practical and overflows badly in most situations.
agzuniverse
commented
Mar 26, 2020
I'll look into adding a test for this soon. |
lynxplay
commented
May 6, 2021
Is there any plan on moving forward with this feature ? |
agzuniverse
commented
May 8, 2021
I think the only reason this PR wasn't merged is because I didn't write tests for this change. I thought of doing it but unfortunately couldn't find the time. @lynxplay if you could add a test the maintainers will probably merge this change in to master. |
lynxplay
commented
May 8, 2021
Yeah I tried looking into this but the generated plots don't respect the written values on top of the bars when cropping so one value is always cropped off. Tests on this are mainly just a single generated graph and an image comparison no? |
sbinet
commented
Jun 24, 2021
yes, we like to have a simple here is an example:
(with my apologies for the belated answer.) |
This change modifies the bar charts to show their values as a label on top of each bar if the user sets the new
b.ShowLabeloption to true.This PR builds on #556
Closes#475