-
Currently using cell.width to allow for multiple sized bars in a stack eg (light blue lines are set usin barSize, colourful ones using width on cell) Current issue is that I no longer get auto scaling on the width of the bars, so if the graph gets squished the bars that don't set a fixed width scale, but the ones that have a width stay the same size eg Is there a way to calculate widths in a Cell component so i can make them scale? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
extra notes
|
Beta Was this translation helpful? Give feedback.
-
used a useLayoutEffect() to calculate the bar widths based on the chart width eg
|
Beta Was this translation helpful? Give feedback.
used a useLayoutEffect() to calculate the bar widths based on the chart width
eg