diff --git a/en/option/series/bar.md b/en/option/series/bar.md index 5a63923f..f99ee14a 100644 --- a/en/option/series/bar.md +++ b/en/option/series/bar.md @@ -132,10 +132,14 @@ Configurations of select state. Available when [selectedMode](~series-bar.select ## stack(string) = null -Name of stack. On the same category axis, the series with the same `stack` name would be put on top of each other. +Name of stack. On the same category axis, the series with the same `stack` name would be put on top of each other. Recommend to use with `stackDim`. Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported. +## stackDim(string) = null +Dimension of stack. Usually chooses the axis that represents the value of data. Only used with `stack`. +Optional values: `'x'` and `'y'`. + ## sampling(string) The dowmsampling 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/en/option/series/line.md b/en/option/series/line.md index ef80ec97..94c9a7d0 100644 --- a/en/option/series/line.md +++ b/en/option/series/line.md @@ -58,7 +58,7 @@ Only work when main axis is `'category'` axis (`axis.type` is `'category'`). Opt ## stack(string) = null -If stack the value. On the same category axis, the series with the same `stack` name would be put on top of each other. +If stack the value. On the same category axis, the series with the same `stack` name would be put on top of each other. Recommend to use with `stackDim`. Notice: `stack` only supports stacking on `value` and `log` axis for now. `time` and `category` axis are not supported. @@ -68,6 +68,10 @@ The effect of the below example could be seen through stack switching of [toolbo {{ use: partial-cursor() }} +## stackDim(string) = null +Dimension of stack. Usually chooses the axis that represents the value of data. Only used with `stack`. +Optional values: `'x'` and `'y'`. + ## connectNulls(boolean) = false diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md index a100b502..545b4470 100644 --- a/zh/option/series/bar.md +++ b/zh/option/series/bar.md @@ -210,10 +210,14 @@ option = { ## stack(string) = null -数据堆叠,同个类目轴上系列配置相同的`stack`值可以堆叠放置。 +数据堆叠,同个类目轴上系列配置相同的`stack`值可以堆叠放置。推荐与`stackDim`一起使用。 注:目前`stack`只支持堆叠于 `value` 和 `log` 类型的类目轴上,不支持 `time` 和 `category` 类型的类目轴。 +## stackDim(string) = null +数据堆叠的方向,一般选择表示数据值的轴。只用于与`stack`一起使用。 +可选值:`'x'`和`'y'` + ## sampling(string) 柱状图在数据量远大于像素点时候的降采样策略,开启后可以有效的优化图表的绘制效率,默认关闭,也就是全部绘制不过滤数据点。 diff --git a/zh/option/series/line.md b/zh/option/series/line.md index 9d095130..94f81d69 100644 --- a/zh/option/series/line.md +++ b/zh/option/series/line.md @@ -87,7 +87,7 @@ const option = { ## stack(string) = null -数据堆叠,同个类目轴上系列配置相同的`stack`值后,后一个系列的值会在前一个系列的值上相加。 +数据堆叠,同个类目轴上系列配置相同的`stack`值后,后一个系列的值会在前一个系列的值上相加。推荐与`stackDim`一起使用。 注:目前`stack`只支持堆叠于 `value` 和 `log` 类型的类目轴上,不支持 `time` 和 `category` 类型的类目轴。 @@ -97,6 +97,10 @@ const option = { {{ use: partial-cursor() }} +## stackDim(string) = null +数据堆叠的方向,一般选择表示数据值的轴。只用于与`stack`一起使用。 +可选值:`'x'`和`'y'` + ## connectNulls(boolean) = false