Set the minimum size of the bar and if the text does not fit, it is not displayed

Hello everyone, need your help
We are actively using your library and could you help me with the implementation

Here (plot-react (CSR) (forked) - CodeSandbox) is an example . How can I, if the data is not 0, set the minimum width of the bar to 6px. Also I would like if the text does not fit the bar not to show it. Help me please :cry:

There is no min width, but you could try and add insetRight: -6 in the bar options, or alternatively add 6px bars underneath every bar.

For text, you can make it conditional on the value, for example:

fill: d => d.population < 1000 ? null : "red",