You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2020/02/25 06:12:57 UTC
[incubator-echarts-doc] 02/03: add doc for
apache/incubator-echarts#11951
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
commit 727f7f2e63bef5ab2ad6dabb757b625cebe310b0
Author: Ovilia <zw...@gmail.com>
AuthorDate: Tue Feb 25 14:01:50 2020 +0800
add doc for apache/incubator-echarts#11951
---
config/env.dev.js | 4 ++--
en/option/series/bar.md | 24 ++++++++++++++++++++++--
zh/option/series/bar.md | 22 +++++++++++++++++++++-
3 files changed, 45 insertions(+), 5 deletions(-)
diff --git a/config/env.dev.js b/config/env.dev.js
index 74bc11d..8595648 100644
--- a/config/env.dev.js
+++ b/config/env.dev.js
@@ -1,8 +1,8 @@
const path = require('path');
module.exports = {
- galleryViewPath: 'https://www.echartsjs.com/examples/zh/view.html?c=',
- galleryEditorPath: 'https://www.echartsjs.com/examples/zh/editor.html?c=',
+ galleryViewPath: 'http://localhost/incubator-echarts-website/examples/en/view.html?c=',
+ galleryEditorPath: 'http://localhost/incubator-echarts-website/examples/en/editor.html?c=',
websitePath: './',
imagePath: 'asset/img/',
diff --git a/en/option/series/bar.md b/en/option/series/bar.md
index 9751368..4798b5c 100644
--- a/en/option/series/bar.md
+++ b/en/option/series/bar.md
@@ -45,6 +45,26 @@ If to add round caps at the end of the bar sectors. Valid only for bar series on
barBorderRadius=true
)}}
+## showBackground(boolean) = false
+
+Whether to show background behind each bar. Use [backgroundStyle](~series-bar.backgroundStyle) to set background style.
+
+~[800x400](${galleryViewPath}bar-background&reset=1&edit=1)
+
+## backgroundStyle(Object)
+
+Background style of each bar if [showBackground](~series-bar.showBackground) is set to be `true`.
+
+~[800x400](${galleryViewPath}bar-background&reset=1&edit=1)
+
+{{use:partial-bar-item-style(
+ prefix="##",
+ useColorPalatte=false,
+ hasCallback=true,
+ barBorderRadius=true,
+ defaultColor="'rgba(180, 180, 180, 0.2)'"
+)}}
+
## emphasis(Object)
### label(Object)
@@ -158,9 +178,9 @@ The style setting of the text label in a single bar.
{{ target:partial-bar-item-style }}
-#${prefix} color(Color) = 'auto'
+#${prefix} color(Color) = ${defaultColor|default('auto')}
-Bar color.{{ if: ${useColorPalatte} }} defaults to acquire colors from global palette [option.color](~color) {{/if}}.
+Bar color. {{ if: ${useColorPalatte} }} By default, colors from global palette [option.color](~color) is used. {{/if}}
#${prefix} barBorderColor(Color) = '#000'
diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md
index 5261f95..c9c1b47 100644
--- a/zh/option/series/bar.md
+++ b/zh/option/series/bar.md
@@ -47,6 +47,26 @@
barBorderRadius=true
)}}
+## showBackground(boolean) = false
+
+是否显示柱条的背景色。通过 [backgroundStyle](~series-bar.backgroundStyle) 配置背景样式。
+
+~[800x400](${galleryViewPath}bar-background&reset=1&edit=1)
+
+## backgroundStyle(Object)
+
+每一个柱条的背景样式。需要将 [showBackground](~series-bar.showBackground) 设置为 `true` 时才有效。
+
+~[800x400](${galleryViewPath}bar-background&reset=1&edit=1)
+
+{{use:partial-bar-item-style(
+ prefix="##",
+ useColorPalatte=false,
+ hasCallback=true,
+ barBorderRadius=true,
+ defaultColor="'rgba(180, 180, 180, 0.2)'"
+)}}
+
## emphasis(Object)
高亮的图形样式和标签样式。
@@ -172,7 +192,7 @@
{{ target:partial-bar-item-style }}
-#${prefix} color(Color) = 自适应
+#${prefix} color(Color) = ${defaultColor|default('自适应')}
柱条的颜色。{{ if: ${useColorPalatte} }} 默认从全局调色盘 [option.color](~color) 获取颜色 {{/if}}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org