You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2023/07/24 02:59:40 UTC

[echarts-handbook] branch master updated: add missing style change for `axisLine` & `axisTick` of `yAxis` in v5 upgrade guide and feature introduction. (apache/echarts#18922)

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git


The following commit(s) were added to refs/heads/master by this push:
     new 11874a1  add missing style change for `axisLine` & `axisTick` of `yAxis` in v5 upgrade guide and feature introduction. (apache/echarts#18922)
11874a1 is described below

commit 11874a10fd0b746639af4815706aac1dd6bea62e
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Mon Jul 24 10:59:17 2023 +0800

    add missing style change for `axisLine` & `axisTick` of `yAxis` in v5 upgrade guide and feature introduction. (apache/echarts#18922)
---
 contents/en/basics/release-note/v5-feature.md           |   4 ++++
 contents/en/basics/release-note/v5-upgrade-guide.md     |  15 +++++++++++++++
 contents/zh/basics/release-note/v5-feature.md           |   4 ++++
 contents/zh/basics/release-note/v5-upgrade-guide.md     |  15 +++++++++++++++
 static/images/feature-v5/yAxis-default-line-change.webp | Bin 0 -> 9004 bytes
 5 files changed, 38 insertions(+)

diff --git a/contents/en/basics/release-note/v5-feature.md b/contents/en/basics/release-note/v5-feature.md
index 2e313ee..5c83721 100644
--- a/contents/en/basics/release-note/v5-feature.md
+++ b/contents/en/basics/release-note/v5-feature.md
@@ -42,6 +42,10 @@ Let's look at the new version of the light and dark theme styles using the most
 <img data-src="images/feature-v5/new-theme-light.png" width="500px" />
 <img data-src="images/feature-v5/new-theme-dark.png" width="500px" />
 
+For the line chart, there is an intuitive style change that the axis line and axis tick of the y axis are hidden by default. Look at the following image, the left one is the default style of the line chart in `v4` and the right one is the new style in `v5`. In fact, we already can figure out the values just by the split lines, so we hope to hide unnecessary elements to deliver the chart message in a clearer way.
+
+<img data-src="images/feature-v5/yAxis-default-line-change.webp" width="500px" />
+
 For the data area zoom, timeline and other interactive components, we also designed a new style and provide a better interactive experience:
 
 <img data-src="images/feature-v5/dataZoom.png" width="500px" />
diff --git a/contents/en/basics/release-note/v5-upgrade-guide.md b/contents/en/basics/release-note/v5-upgrade-guide.md
index 9e017bc..0f7131a 100644
--- a/contents/en/basics/release-note/v5-upgrade-guide.md
+++ b/contents/en/basics/release-note/v5-upgrade-guide.md
@@ -142,6 +142,21 @@ IE8 is no longer supported by `v5`. We no longer maintain and upgrade the previo
 
 ### Configuration Item Adjustment
 
+#### Axis-Line and Axis-Tick Are Hidden by Default
+
+The axis line and axis ticks of the Y axis has been hidden by default since `v5`. If you prefer the previous style, you will need to explicitly configure as follows,
+
+```js
+yAxis: {
+  axisLine: {
+    show: true
+  },
+  axisTick: {
+    show: true
+  }
+}
+```
+
 #### Visual Style Settings Priority Changes
 
 The priority of the visuals between [visualMap component](${optionPath}visualMap) and [itemStyle](${optionPath}series-scatter.itemStyle) | [lineStyle](${optionPath}series-scatter.lineStyle) | [areaStyle](${optionPath}series-scatter.areaStyle) are reversed since `v5`.
diff --git a/contents/zh/basics/release-note/v5-feature.md b/contents/zh/basics/release-note/v5-feature.md
index 766c9af..8338895 100644
--- a/contents/zh/basics/release-note/v5-feature.md
+++ b/contents/zh/basics/release-note/v5-feature.md
@@ -42,6 +42,10 @@ Apache ECharts 5 新增支持动态排序柱状图(bar-racing)以及动态
 <img data-src="images/feature-v5/new-theme-light.png" width="500px" />
 <img data-src="images/feature-v5/new-theme-dark.png" width="500px" />
 
+对于折线图,我们做了比较直观的一个改变就是去掉了直角坐标系最左侧数据轴Y轴的默认显示。左侧是原本默认的折线图的样式,其实通过中间的几条数据分割线,我们就已经可以定位折线图的每个数据值。因此我们希望通过减少不必要的图形元素,来达到更清晰地传递信息的目的。
+
+<img data-src="images/feature-v5/yAxis-default-line-change.webp" width="500px" />
+
 对于数据区域缩放,时间轴等交互组件,我们也设计了全新的样式并且提供了更好的交互体验:
 
 <img data-src="images/feature-v5/dataZoom.png" width="500px" />
diff --git a/contents/zh/basics/release-note/v5-upgrade-guide.md b/contents/zh/basics/release-note/v5-upgrade-guide.md
index f068e45..3a16e3c 100644
--- a/contents/zh/basics/release-note/v5-upgrade-guide.md
+++ b/contents/zh/basics/release-note/v5-upgrade-guide.md
@@ -144,6 +144,21 @@ require('echarts/lib/component/aria');
 
 ### 配置项调整
 
+#### Y 轴默认不显示轴线和刻度线
+
+`v5` 去掉了直角坐标系最左侧数据轴 Y 轴的默认显示。如果仍希望展示轴线和刻度线,需要显式配置:
+
+```js
+yAxis: {
+  axisLine: {
+    show: true
+  },
+  axisTick: {
+    show: true
+  }
+}
+```
+
 #### 视觉样式设置的优先级改变
 
 `v5` 对调了 [visualMap 组件](${optionPath}visualMap) 和 [itemStyle](${optionPath}series-scatter.itemStyle) | [lineStyle](${optionPath}series-scatter.lineStyle) | [areaStyle](${optionPath}series-scatter.areaStyle) 的视觉样式优先级。
diff --git a/static/images/feature-v5/yAxis-default-line-change.webp b/static/images/feature-v5/yAxis-default-line-change.webp
new file mode 100644
index 0000000..76823eb
Binary files /dev/null and b/static/images/feature-v5/yAxis-default-line-change.webp differ


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org