From 4900534d9e23ea6e72f45f01a27ec34823806f1a Mon Sep 17 00:00:00 2001 From: ahuja2666 Date: Mon, 23 Nov 2026 17:45:36 +0530 Subject: [PATCH] docs(bar): document stackGap option --- en/option/series/bar.md | 4 ++++ zh/option/series/bar.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/en/option/series/bar.md b/en/option/series/bar.md index 915b9e88..4f8d0df7 100644 --- a/en/option/series/bar.md +++ b/en/option/series/bar.md @@ -139,6 +139,10 @@ Configurations of select state. Available when [selectedMode](~series-bar.select componentNameInLink = 'bar' ) }} +## stackGap(number) = 0 + +The gap, in pixels, between adjacent same-sign segments in a stacked Cartesian bar. Set the same value on every series in the stack for a uniform gap. The outside edges of the whole stack stay in place, and axis values are unchanged. Thin segments remain at least 1 pixel along the value axis (or `barMinHeight` if larger), so the requested gap can be reduced when needed to preserve that minimum size. + ## sampling(string) The downsampling strategy used when the data size is much larger than pixel size. It will improve the performance when turned on. Defaults to be turned off, indicating that all the data points will be drawn. diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md index 95e9b842..d7698504 100644 --- a/zh/option/series/bar.md +++ b/zh/option/series/bar.md @@ -220,6 +220,10 @@ option = { componentNameInLink = 'bar' ) }} +## stackGap(number) = 0 + +堆叠直角坐标系柱状图中,同号相邻柱段之间的间隔,单位为像素。若要获得一致的间隔,请在堆叠中的每个系列上设置相同的值。整个堆叠柱的外侧边缘保持不变,坐标轴上的数据值也不会改变。细柱段沿数值轴方向至少保留 1 像素(若 `barMinHeight` 更大,则至少保留该尺寸);为满足此最小尺寸,实际间隔可能小于设定值。 + ## sampling(string) 柱状图在数据量远大于像素点时候的降采样策略,开启后可以有效的优化图表的绘制效率,默认关闭,也就是全部绘制不过滤数据点。