Skip to content
Snippets Groups Projects
Unverified Commit 0ab9364f authored by Alexander Lesnenko's avatar Alexander Lesnenko Committed by GitHub
Browse files

adjust row bar chart appearance (#16657)

parent 5156d881
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,8 @@ export default function rowRenderer(
// assume all bars are same height?
const barHeight = chart.select("g.row")[0][0].getBoundingClientRect().height;
if (barHeight > ROW_MAX_HEIGHT) {
chart.fixedBarHeight(ROW_MAX_HEIGHT);
const reasolableMaxGap = containerHeight / 3;
chart.gap(Math.min(barHeight / 2, reasolableMaxGap));
}
chart.render();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment