-
Notifications
You must be signed in to change notification settings - Fork 352
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
Data labels not working on non zerobased bar charts #3495
Comments
@filipfloden thanks for the report. |
@netil In my specific scenario it would be preferable with [50, 100] --> 100. Thank you for the response. |
@netil IMHO ideally the label format function should be called once with [start, end] to allow for custom format logic. I think this reasoning applies to tooltip format function as well. Maybe this is a non-trivial change though |
Handle ranged data from bar/AreaRange type to render data labels text Ref naver#3495
The fix will not call data: {
labels: {
format(value, id, index) {
// for ranged data, the `value` is array
}
}
} |
## [3.10.3](3.10.2...3.10.3) (2023-11-08) ### Bug Fixes * **axis:** Fix x axis autorotate option applies ([e45eaf7](e45eaf7)), closes [#3433](#3433) [#3499](#3499) * **labels:** Fix data.labels rendering for ranged data ([a8ebdef](a8ebdef)), closes [#3495](#3495) * **option:** Fix rotated top padding ([048c4e2](048c4e2)), closes [#3433](#3433) * **tooltip:** Fix tooltip.format.value arg for bar range data ([c0f445e](c0f445e)), closes [#3507](#3507)
* **axis:** Fix x axis autorotate option applies ([e45eaf7](naver@e45eaf7)), closes [naver#3433](naver#3433) [naver#3499](naver#3499) * **labels:** Fix data.labels rendering for ranged data ([a8ebdef](naver@a8ebdef)), closes [naver#3495](naver#3495) * **option:** Fix rotated top padding ([048c4e2](naver@048c4e2)), closes [naver#3433](naver#3433) * **tooltip:** Fix tooltip.format.value arg for bar range data ([c0f445e](naver@c0f445e)), closes [naver#3507](naver#3507)
Description
When using a bar chart, data labels are not working/supported on bars that are non zerobased, i.e., has a start and end value.
Steps to check or reproduce
Turn on labels on a bar chart that has non zerobased values. Example code below.
The text was updated successfully, but these errors were encountered: