You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently need to have the option to place the bar labels either on top (or end when horizontal) of the bars.
It seems to be something that has been asked for a few time #923#146, and a PR has also been opened for it #1112.
So I was wondering if this is a feature you be open to receive a new PR for, or would you rather not have it implemented into Nivo, and leave it to the devs to implement their own?
It could come in the form of two new params:
labelPosition: "center" | "top" (end maybe?)
topLabelOffset: number (could also be merged with the recently added totalsOffset)
The top position would not be compatible with the stacked mode.
Cheers
The text was updated successfully, but these errors were encountered:
I'm fine with adding this feature, but I'm working on other things atm.
I think it should be something like 'start' | 'center' | 'end', in order to avoid any confusion when changing the layout.
We could also leave complete freedom and support top-left, top, top-right, ... but then we would probably need 2 props to support x and y offsets, might become a bit too complex though.
On the other hand, that it's something which can be relatively easily implemented via a custom layer.
Hello 👋
We currently need to have the option to place the bar labels either on top (or end when horizontal) of the bars.
It seems to be something that has been asked for a few time #923 #146, and a PR has also been opened for it #1112.
So I was wondering if this is a feature you be open to receive a new PR for, or would you rather not have it implemented into Nivo, and leave it to the devs to implement their own?
It could come in the form of two new params:
labelPosition: "center" | "top"
(end maybe?)topLabelOffset: number
(could also be merged with the recently addedtotalsOffset
)The top position would not be compatible with the stacked mode.
Cheers
The text was updated successfully, but these errors were encountered: