Closed okanji closed 5 years ago
Hey @okanji thanks for checking out @data-ui
. This currently is not possible, the bar width is auto-computed based on
#
of barswidth
passed to the chartmargin
passed to the chartSo you can back compute the size you want, and pass in the appropriate width/margin for the number of data points you have, but otherwise you cannot specify this. Most of the time users want bars to fit in the chart/be auto-computed.
Thanks for your quick and detailed response!
Am trying to find a way have fixed bar widths for a bar chart. Currently this is my xScale, can I pass anything else to it that would fix the bar width?
xScale={{ type: 'band', paddingInner: 0.15 }}