Closed ravichowdhury88 closed 4 years ago
Hi,
You can align the bars by giving each label the same fixed width. There are two examples on how to do that here:
edit: my guess is that you need to use a monospaced font on the numbers.
Hi,
You can align the bars by giving each label the same fixed width. There are two examples on how to do that here:
* https://glin.github.io/reactable/articles/building-twitter-followers.html#add-bar-charts * https://glin.github.io/reactable/articles/cookbook/cookbook.html#units-on-first-row-only
edit: my guess is that you need to use a monospaced font on the numbers.
Adding monospace as font-family worked for me, thank you.
I am trying to use the cellrenderer to create a bar chart with values but the bar chart is misaligned. I have tried various way but could not find a solution to it.
CSS Code
R Code
Output