vega-lite icon indicating copy to clipboard operation
vega-lite copied to clipboard

Add a config for specifying min bar size

Open kanitw opened this issue 1 year ago • 0 comments

In https://github.com/vega/vega-lite/pull/8349, I fix #8350 by making minimum bar band = 0.25. (See this line) Ideally we should make this configurable. The question is where to add this config.

Note that this config is only applicable to bar/rect mark. So extending RectConfig with a new property could make sense.

Maybe config.bar/rect.minBandSize given we already have continuousBandSize and discreteBandSize?

cc: @domoritz

kanitw avatar Aug 09 '22 01:08 kanitw