| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This improves the readability of the bars significantly.
|
@kortschak you mentioned #556 cannot be merged because it does not pass the CI build, so here's a PR which does. |
Sorry, something went wrong.
There was a problem hiding this comment.
This needs a test.
Sorry, something went wrong.
|
|
||
| // ShowLabel determines whether the value of the bars should be | ||
| // shown above it or not. | ||
| ShowLabel bool |
There was a problem hiding this comment.
ShowValue?
Sorry, something went wrong.
There was a problem hiding this comment.
I've changed it to ShowValue.
Sorry, something went wrong.
|
When can master branches use this feature? |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
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.
|
I'll look into adding a test for this soon. |
Sorry, something went wrong.
|
Is there any plan on moving forward with this feature ? |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
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? |
Sorry, something went wrong.
|
yes, we like to have a simple testdata/foo_golden.{png,svg,...} reference file and a test (or an example) generating that file to compare with and make sure we don't introduce regressions when refactoring code. here is an example:
(with my apologies for the belated answer.) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.ShowLabel option to true.
This PR builds on #556
Closes #475