[GitHub] [incubator-echarts] fsql commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
fsql commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646449071 > 就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据。如果需要进一步帮助,可以创建一个在线 demo。 https://gallery.echartsjs.com/editor.html?c=xBUPEVpczO=1 贴上demo了,82行往后的怎么写? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts-doc] xmatthias opened a new pull request #112: Replace defualt with default (fixing typo)
xmatthias opened a new pull request #112: URL: https://github.com/apache/incubator-echarts-doc/pull/112 This replaces a typo in the documentation, which sometimes lists "defualt" instead of default. It's nothing major. https://github.com/apache/incubator-echarts/pull/12828 does the same for code-comments. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on pull request #12828: Update comments to not use defualt
echarts-bot[bot] commented on pull request #12828: URL: https://github.com/apache/incubator-echarts/pull/12828#issuecomment-646440393 Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout [the coding standard](https://echarts.apache.org/en/coding-standard.html) and Wiki about [How to make a pull request](https://github.com/apache/incubator-echarts/wiki/How-to-make-a-pull-request). This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] xmatthias opened a new pull request #12828: Update comments to not use defualt
xmatthias opened a new pull request #12828: URL: https://github.com/apache/incubator-echarts/pull/12828 ## Brief Information This pull request is in the type of: - [ ] bug fixing - [ ] new feature - [x] others ### What does this PR do? Replace typos in comments defining something as "defualt". ### Fixed issues ## Details ### Before: What was the problem? Comments had sometimes defualt instead of default (inverting au). ### After: How is it fixed in this PR? Typos are fixed, replacing defualt with default. ### Other information Changes only to comments - code did not show these typos. I hope it's ok to exclude dist (i understand that's only updated by a release?). If not let me know. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] 01/02: doc: update contents
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-handbook.git commit d9fdfc9330781bcae6cf74f1846b37bdc1e41560 Author: Ovilia AuthorDate: Fri Jun 19 12:55:48 2020 +0800 doc: update contents --- contents/zh/application/cross-platform.md | 1 - .../zh/application/cross-platform/baidu-app.md | 19 ++ contents/zh/application/cross-platform/server.md | 12 + .../zh/application/cross-platform/wechat-app.md| 21 ++ contents/zh/basics/inspiration.md | 6 + contents/zh/basics/resource.md | 12 + contents/zh/best-practice/aria.md | 60 + contents/zh/best-practice/canvas-vs-svg.md | 51 + contents/zh/concepts/event.md | 253 + contents/zh/posts.js | 21 +- 10 files changed, 454 insertions(+), 2 deletions(-) diff --git a/contents/zh/application/cross-platform.md b/contents/zh/application/cross-platform.md deleted file mode 100644 index 3979538..000 --- a/contents/zh/application/cross-platform.md +++ /dev/null @@ -1 +0,0 @@ -# 跨平台方案 \ No newline at end of file diff --git a/contents/zh/application/cross-platform/baidu-app.md b/contents/zh/application/cross-platform/baidu-app.md new file mode 100644 index 000..55e13c1 --- /dev/null +++ b/contents/zh/application/cross-platform/baidu-app.md @@ -0,0 +1,19 @@ +# 在百度智能小程序中使用 ECharts + +[ECharts 图表-beta](http://smartprogram.baidu.com/docs/develop/framework/echarts/) 以小程序动态库的形式提供了在百度智能小程序中使用 ECharts 的方式。 + +[aidu-smart-app-echarts-demo](https://github.com/baidu-smart-app/baidu-smart-app-echarts-demo) 项目是使用该动态库的一个示例工程,可以作为参考,一般情况下不需要引入自己的项目。 + +如有使用上的问题,可以在 [baidu-smart-app-echarts-demo/issues](https://github.com/baidu-smart-app/baidu-smart-app-echarts-demo/issues) 中咨询。 + + +## 使用方式 + +参见百度智能小程序文档 [ECharts 图表-beta](http://smartprogram.baidu.com/docs/develop/framework/echarts/)。 + + +## 注意事项 + +百度智能小程序上的 ECharts 以动态库的形式开放,因此开发者的使用方式与[在微信小程序中使用 ECharts](./zh/application_cross-platform_wechat-app) 不太相同。尤其需要注意的是,前者需要在指定动态库名称的时候确定 ECharts 的版本号,而不能自行更换或使用自定义构建。这一点是由底层框架的技术实现决定的。具体来说,在指定百度智能小程序动态库名称的时候,需要通过 `provider` 指定动态库名称,具体参见[文档](http://smartprogram.baidu.com/docs/develop/framework/echarts/)的「在项目中引用动态库」章节。 + +请务必查看[文档](http://smartprogram.baidu.com/docs/develop/framework/echarts/)的「兼容性说明」以了解各功能的实现方式。 diff --git a/contents/zh/application/cross-platform/server.md b/contents/zh/application/cross-platform/server.md new file mode 100644 index 000..c0f7907 --- /dev/null +++ b/contents/zh/application/cross-platform/server.md @@ -0,0 +1,12 @@ +# ECharts 服务端渲染 + +ECharts 可以在服务端进行渲染。例如[官方示例](${mainSitePath}/examples/zh/index.html)里的一个个小截图,就是在服务端预生成出来的。 + +服务端渲染可以使用流行的 headless 环境,例如 [puppeteer](https://github.com/GoogleChrome/puppeteer)、[headless chrome](https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md)、[node-canvas](https://github.com/Automattic/node-canvas)、[jsdom](https://github.com/jsdom/jsdom)、[PhantomJS](http://phantomjs.org/) 等。 + +这是一些社区贡献的 ECharts 服务端渲染方案: + +- [https://github.com/hellosean1025/node-echarts](https://github.com/hellosean1025/node-echarts) +- [https://github.com/chfw/echarts-scrappeteer](https://github.com/chfw/echarts-scrappeteer) +- [https://github.com/chfw/pyecharts-snapshot/blob/master/pyecharts_snapshot/phantomjs/snapshot.js](https://github.com/chfw/pyecharts-snapshot/blob/master/pyecharts_snapshot/phantomjs/snapshot.js) +- [https://gist.github.com/pissang/4c32ee30e35c91336af72b129a1a4a73](https://gist.github.com/pissang/4c32ee30e35c91336af72b129a1a4a73) diff --git a/contents/zh/application/cross-platform/wechat-app.md b/contents/zh/application/cross-platform/wechat-app.md new file mode 100644 index 000..332d189 --- /dev/null +++ b/contents/zh/application/cross-platform/wechat-app.md @@ -0,0 +1,21 @@ +# 在微信小程序中使用 ECharts + +[echarts-for-weixin](https://github.com/ecomfe/echarts-for-weixin) 项目提供了一个小程序组件,用这种方式可以方便地使用 ECharts。 + + +## 使用方式 + +1. 下载该项目 +2. 如有必要,将 `ec-canvas` 目录下的 `echarts.js` 替换为最新版的 ECharts。如果希望减小包体积大小,可以使用[自定义构建](${mainSitePath}/build.html)生成并替换 `echarts.js` +3. `pages` 目录下是使用的示例文件,可以作为参考,或者删除不需要的页面。 + +更详细的说明请参见 [echarts-for-weixin](https://github.com/ecomfe/echarts-for-weixin) 项目。 + + +## 注意事项 + +最新版的 ECharts 微信小程序支持微信 Canvas 2d,当用户的基础库版本 >= 2.9.0 且没有设置 `force-use-old-canvas="true"` 的情况下,使用新的 Canvas 2d(默认)。 + +使用新的 Canvas 2d 可以提升渲染性能,解决非同层渲染问题,强烈建议开启。 + +更详细的说明请参见 [Canvas 2d 版本要求](https://github.com/ecomfe/echarts-for-weixin#canvas-2d-%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82)。 diff --git a/contents/zh/basics/inspiration.md b/contents/zh/basics/inspiration.md index f96933e..9823ebd 100644 --- a/contents/zh/basics/inspiration.md +++ b/contents/zh/basics/inspiration.md @@ -1 +1,7 @@ # 获取灵感 + +当你有“不知道图表应该设计成什么样”或者“不知道如何使用 ECharts 实现某种效果”的疑问的时候,以下列表可以提供一些思路。 + +- [ECharts
[incubator-echarts-handbook] branch master updated (b6a9b9b -> 463402c)
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-handbook.git. from b6a9b9b docs: add bar contents new d9fdfc9 doc: update contents new 463402c merge The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: contents/zh/application/cross-platform.md | 1 - .../zh/application/cross-platform/baidu-app.md | 19 ++ contents/zh/application/cross-platform/server.md | 12 + .../zh/application/cross-platform/wechat-app.md| 21 ++ contents/zh/basics/inspiration.md | 6 + contents/zh/basics/resource.md | 12 + contents/zh/best-practice/aria.md | 60 + contents/zh/best-practice/canvas-vs-svg.md | 51 + contents/zh/concepts/event.md | 253 + contents/zh/posts.js | 74 +++--- 10 files changed, 480 insertions(+), 29 deletions(-) delete mode 100644 contents/zh/application/cross-platform.md create mode 100644 contents/zh/application/cross-platform/baidu-app.md create mode 100644 contents/zh/application/cross-platform/server.md create mode 100644 contents/zh/application/cross-platform/wechat-app.md create mode 100644 contents/zh/best-practice/aria.md create mode 100644 contents/zh/best-practice/canvas-vs-svg.md create mode 100644 contents/zh/concepts/event.md - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] 02/02: merge
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-handbook.git commit 463402c011375e0977fbe1a6d5cc949b8da7fb6f Merge: d9fdfc9 b6a9b9b Author: Ovilia AuthorDate: Fri Jun 19 13:16:19 2020 +0800 merge .../chart-specificatio/bar/basic-bar.md| 45 .../chart-specificatio/bar/bi-directional-bar.md | 32 ++ .../chart-specificatio/bar/grouped-bar.md | 20 + .../chart-specificatio/bar/stacked-bar.md | 22 ++ .../best-practice/chart-specificatio/line/area.md | 24 +++ .../chart-specificatio/line/basic-line.md | 36 .../chart-specificatio/line/stacked-area.md| 46 + contents/zh/posts.js | 33 +++ pages/helper/contributors.ts | 23 ++- static/images/design/bar/bar01.jpg | Bin 0 -> 84318 bytes static/images/design/bar/bar02.jpg | Bin 0 -> 75564 bytes static/images/design/bar/bar03.jpg | Bin 0 -> 91679 bytes static/images/design/bar/bar04.jpg | Bin 0 -> 70479 bytes .../bi-directional-bar/bi-directional-bar01.jpg| Bin 0 -> 75564 bytes .../bi-directional-bar/bi-directional-bar02.jpg| Bin 0 -> 86140 bytes static/images/design/line/line01.jpg | Bin 0 -> 89525 bytes 16 files changed, 280 insertions(+), 1 deletion(-) diff --cc contents/zh/posts.js index cb53e4a,18b5808..93bc8d0 --- a/contents/zh/posts.js +++ b/contents/zh/posts.js @@@ -163,16 -150,44 +163,49 @@@ export default [ title: '最佳实践', dir: 'best-practice', children: [{ -title: '移动端优化', -dir: 'mobile' -},{ +title: '移动端优化', +dir: 'mobile' +}, { +title: 'Canvas vs. SVG', +dir: 'canvas-vs-svg' +}, { +title: '无障碍访问', +dir: 'aria' +}, { title: '可视化设计原则', dir: 'design' -}, { ++}, { + title: '可视化规范', + dir: 'chart-specificatio', + children: [{ + title: '折线图', -dir: 'line', -children: [{ -title: '基础折线图', -dir: 'basic-line' -}, { -title: '面积图', -dir: 'area' -}, { -title: '堆叠面积图', -dir: 'stacked-area' -}] -}, -{ -title: '柱状图', -dir: 'bar', -children: [{ -title: '基础柱状图', -dir: 'basic-bar' -}, { ++dir: 'line', ++children: [{ ++title: '基础折线图', ++dir: 'basic-line' ++}, { ++title: '面积图', ++dir: 'area' ++}, { ++title: '堆叠面积图', ++dir: 'stacked-area' ++}] ++}, { ++title: '柱状图', ++dir: 'bar', ++children: [{ ++title: '基础柱状图', ++dir: 'basic-bar' ++}, { + title: '堆叠柱状图', + dir: 'stacked-bar' -}, { ++}, { + title: '双向柱状图', + dir: 'bi-directiona-bar' -}, { ++}, { + title: '分组柱状图', + dir: 'grouped-bar' + }] -},] ++}] }] -}] +}]; - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
echarts-bot[bot] commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646438557 @fsql Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM or https://gallery.echartsjs.com/editor.html. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Ovilia edited a comment on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
Ovilia edited a comment on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646438410 就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据。如果需要进一步帮助,可以创建一个在线 demo。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Ovilia commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
Ovilia commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646438410 就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] branch master updated: docs: add bar contents
This is an automated email from the ASF dual-hosted git repository. wangdd pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-handbook.git The following commit(s) were added to refs/heads/master by this push: new b6a9b9b docs: add bar contents b6a9b9b is described below commit b6a9b9baea9a672581e6b26a869bc5199b4515b3 Author: Wdingding AuthorDate: Fri Jun 19 13:10:16 2020 +0800 docs: add bar contents --- .../chart-specificatio/bar/basic-bar.md| 45 + .../chart-specificatio/bar/bi-directional-bar.md | 32 +++ .../chart-specificatio/bar/grouped-bar.md | 20 + .../chart-specificatio/bar/stacked-bar.md | 22 ++ static/images/design/bar/bar01.jpg | Bin 0 -> 84318 bytes static/images/design/bar/bar02.jpg | Bin 0 -> 75564 bytes static/images/design/bar/bar03.jpg | Bin 0 -> 91679 bytes static/images/design/bar/bar04.jpg | Bin 0 -> 70479 bytes .../bi-directional-bar/bi-directional-bar01.jpg| Bin 0 -> 75564 bytes .../bi-directional-bar/bi-directional-bar02.jpg| Bin 0 -> 86140 bytes 10 files changed, 119 insertions(+) diff --git a/contents/zh/best-practice/chart-specificatio/bar/basic-bar.md b/contents/zh/best-practice/chart-specificatio/bar/basic-bar.md new file mode 100644 index 000..854613a --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/bar/basic-bar.md @@ -0,0 +1,45 @@ +# 基础柱状图 + +柱状图是最常见的图表类型,通过使用水平或垂直方向柱子的高度来显示不同类别的数值,其中柱状图的一个轴显示比较的类别,而另一个轴代表对应的数值。 + +https://gallery.echartsjs.com/view-lite.html?cid=xS18jqmX4f;> + + +纵向柱状图的柱是垂直方向的,横向柱状图的柱是水平方向的,又称条形图。条形图与横向柱状图表达数据的形式是一样的,不过,当图表的数据标签很长或者有超过10个项目进行比较时,横向柱状图会无法完全显示完标签,或者只能倾斜展示,影响美观。因此当数据标签过长时,选择用条形图可以获得更好的展示效果。 + + +https://gallery.echartsjs.com/view-lite.html?cid=xByXtUE7Vz;> + + +## 柱状图的使用建议 + +1、避免使用太多颜色,一般情况一个柱状图(条形图)表示一组相同的度量,所以建议使用相同的颜色或同一颜色的不同色调。如果需要强调某个数据时,可以使用对比色或者变化色调来突出显示有意义的数据点。 + +https://gallery.echartsjs.com/view-lite.html?cid=xByYRlN7Ef;> + + +2、柱状图柱子间的宽度和间隙要适当。当柱子太窄时,用户的视觉可能会集中在两个柱中间的负空间,而这里是不承载任何数据的。合理的宽度和间隙应该是单个柱子的宽度不小于柱间间隙的两倍。 + + +3、Y轴数据应该从 0 基线开始,以恰当地反映数值。如果展示的是被截断的数据,那很可能会误导观众做出错误的判断。例如左侧图表显示出的数据结果是 2017 年收入是 2014 年收入的五倍,而实际上如右侧图表完整显示的数据表明 2017 年收入相对于 2014 年其实只提升了 25%。 + + + + + +4、对多个数据系列排序时,如果不涉及到日期等特定数据,最好能符合一定的逻辑用直观的方式引导用户更好的查看数据。可以通过升序或降序排布,例如按照数量从多到少来对数据进行排序,也可以按照字母顺序等来排布。总之,按照逻辑排序可以一定程度上引导人们更好地阅读数据。 + +https://gallery.echartsjs.com/view-lite.html?cid=xHJhWhGm4M;> + + + +5、一般情况下不建议使用三维柱状图,与三维饼图一样,对于数据传达不太精准,甚至还不得不猜测哪个才是数据的顶端。 + + + diff --git a/contents/zh/best-practice/chart-specificatio/bar/bi-directional-bar.md b/contents/zh/best-practice/chart-specificatio/bar/bi-directional-bar.md new file mode 100644 index 000..9e2 --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/bar/bi-directional-bar.md @@ -0,0 +1,32 @@ +双向柱状图多用于展示包含相反含义的数据的对比。其中图表的一个轴显示正在比较的类别,而另一轴代表对应的刻度值。 + +双向柱状图一般用于正负两份相反数据的对比。例如一周内个人收入和支出的统计,其中收入为正数,支出为负数。使用双向柱状图可以很明确的对收入和支出做出对比,并能从单个系列中分析收入和支出的数值及波动。 + +https://gallery.echartsjs.com/view-lite.html?cid=xS18jqmX4f;> + + + +双向柱状图可分为垂直方向的双向柱状图(如上图)和水平方向的双向柱状图(又叫正负条形图,如下图),例如一个客户满意度的调查数据分析中,有正面评价和负面评价,这很适合用正负条形图,所有数据在中间对齐,正面的评价数据分布在右侧,负面的评价数据分布在左侧。 + +https://gallery.echartsjs.com/view-lite.html?cid=xHJ1un374z;> + + + +## 双向柱状图的使用建议 + +1、双向柱状图正向和负向的数据具有对比性,因此一般选用差值较大的具有对比性的颜色。 + +2、永远不要在0基线的右边画负值的水平条行图或在 0 基线的上边画负值的柱子,以免和常识违背造成误解。 + + + + + +3、双向柱状图多用于展示含相反含义的数据,因此要避免不具有正负含义的数据使用而造成的误解。 如下图人口统计图表中使用双向柱状图,一侧绘制男性的数据,另一侧绘制女性的数据,只是单纯的两类不同数据的对比,并不存在负数。那么,此时将两个数据序列绘制成一个分组柱状图是更合适的。 + + + diff --git a/contents/zh/best-practice/chart-specificatio/bar/grouped-bar.md b/contents/zh/best-practice/chart-specificatio/bar/grouped-bar.md new file mode 100644 index 000..e70d4af --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/bar/grouped-bar.md @@ -0,0 +1,20 @@ +# 堆叠柱状图 + +分组柱状图也被称为聚集柱状图。当两个或多个数据序列并排显示并在同一轴上的类别下分组时,将使用分组柱状图。相当于包含带有两个或更多图表的简单的条形图。 + +https://gallery.echartsjs.com/view-lite.html?cid=xr13FAH54f=1;> + + +分组柱状图通常是用于将包含相同变量或类别的几个分组进行比较。像柱状图一样,每个柱的长度用于显示类别的数值,每个数据系列被分配一个单独的颜色或相同色系的不同饱和度,以区分它们,每组数据之间相互间隔并进行对比。 + +https://gallery.echartsjs.com/view-lite.html?cid=xry8WsXdOW=3;> + + + +## 分组柱状图的使用建议 + +1、如果每个分组中的系列过多,数据的阅读难度就会越增加。因此,不建议每个分组中包含过多的系列。在系列较多时,可考虑使用堆叠柱状图。 + +2、建议每两个分组之间的间距大于组内不同系列之间的间距,以免造成视觉上错误的归类和区分。 \ No newline at end of file diff --git a/contents/zh/best-practice/chart-specificatio/bar/stacked-bar.md b/contents/zh/best-practice/chart-specificatio/bar/stacked-bar.md new file mode 100644 index 000..6e1b47d --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/bar/stacked-bar.md @@ -0,0 +1,22 @@ +# 堆叠柱状图 + +堆叠柱状图是柱状图的扩展。但区别在于,柱状图的数据值为并行排列,堆叠柱图则是一个个叠加起来的。它可以展示每一个分类的总量,以及该分类包含的每个小分类的大小及占比。因此,非常适合处理部分与整体的关系。 + +与饼图显示单个部分到整体的关系不同的是,堆叠柱状图可以显示多个部分到整体的关系。例如一个班级体育课选课的各项目人数统计,你可以用柱状图或饼图来展示。但是,当需要进一步区分男生和女生参与到不同项目中的人数分别是多少时,就需要把每个项目中包含的男生数和女生数都展示出来。如图选用堆叠柱状图,不仅能显示每个项目的总人数,还能展示出每个项目中的一部分与整体的关系。 +
[incubator-echarts-handbook] branch master updated: docs: add line contents
This is an automated email from the ASF dual-hosted git repository. wangdd pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-handbook.git The following commit(s) were added to refs/heads/master by this push: new c20adaf docs: add line contents new a1f4955 Merge branch 'master' of https://github.com/apache/incubator-echarts-handbook c20adaf is described below commit c20adaf78ee42dae39a2847aa33eab6920aad3e5 Author: Wdingding AuthorDate: Fri Jun 19 12:19:00 2020 +0800 docs: add line contents --- .../best-practice/chart-specificatio/line/area.md | 24 +++ .../chart-specificatio/line/basic-line.md | 36 .../chart-specificatio/line/stacked-area.md| 46 + contents/zh/posts.js | 42 +-- pages/helper/contributors.ts | 23 ++- static/images/design/line/line01.jpg | Bin 0 -> 89525 bytes 6 files changed, 166 insertions(+), 5 deletions(-) diff --git a/contents/zh/best-practice/chart-specificatio/line/area.md b/contents/zh/best-practice/chart-specificatio/line/area.md new file mode 100644 index 000..43c7774 --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/line/area.md @@ -0,0 +1,24 @@ +# 区域面积折线图 +面积图又叫区域图,与折线图很相近,都可以用来展示随着连续时间的推移数据的变化趋势。区别在于,面积图在折线与类别数据的水平轴(X轴)之间填充颜色或者纹理,形成一个面表示数据体积。相对于折线而言,被填充的区域可以更好的引起人们对总值趋势的注意,所以面积图主要用于传达趋势的大小,而不是确切的单个数据值。 + +https://gallery.echartsjs.com/view-lite.html?cid=area-simple;> + + +## 面积图的使用建议 + +1、面积图要用填充区域来展示数据,当图表上有多个图层时,要尽量确保数据不要重叠。如果无法避免重叠,可以通过将颜色和透明度设置为适当的值,使重叠的数据图可以变得可读。 + +https://gallery.echartsjs.com/view-lite.html?cid=xHJ-4tL84M;> + + +2、面积图适合用来展示二到三组数据,建议最多不要展示超过四组数据系列,否则就如下方错误示例,数据系列过多而导致无法数据辨识,因此要避免在需要比较多个类别和确切的数据值的情况下使用面积图。超过三个系列的非堆叠面积图表是很难阅读的。 + +https://gallery.echartsjs.com/view-lite.html?cid=xHyNDxOo4M;> + +3、当数据值相距很远时,区域是模糊不清的,此时不太适合使用面积图展示。如下方错误示例虽然仔细分析能确定只展示了两个类别,乍一看,很可能会误以为图表上显示三种不同的颜色。 + +https://gallery.echartsjs.com/view-lite.html?cid=xSkO64PIEG=1;> diff --git a/contents/zh/best-practice/chart-specificatio/line/basic-line.md b/contents/zh/best-practice/chart-specificatio/line/basic-line.md new file mode 100644 index 000..324f5a1 --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/line/basic-line.md @@ -0,0 +1,36 @@ +# 基础折线图 + +折线图主要用来展示数据相随着时间推移的趋势或变化。折线图非常适合用于展示一个连续的二维数据,如某网站访问人数或商品销量价格的波动。 + +https://gallery.echartsjs.com/view-lite.html?cid=xB1kG1rLEG=1;> + + +折线图除了展示某个事情发展的趋势,还可以用来比较多个不同的数据序列。如下图,可以通过对比同时间段的三种商品的销量,分析哪一种商品的销量最好。 + +https://gallery.echartsjs.com/view-lite.html?cid=xSkBiMSU4M=1;>> + + +折线图是两个数据点之间用线连接起来,为了追求美观或特殊的效果,还可以如上图将两点之间用曲线连接,这种图又叫曲线图或样条图样条。样条图与折线图用法相同,只是每个数据点之间的绘制是曲线的。 + +## 折线图的使用建议 + +1、使用实线绘制数据线,首先要保证能够的区分数据线和坐标轴线,并且要尽力要所有的数据清晰可识别。 + +2、建议不要绘制4条以上的折线,如下图错误的示例,线都折叠在一起并且又没有明显的对比,整张图表就会混乱并难以阅读。 + +https://gallery.echartsjs.com/view-lite.html?cid=xBJzdEItVz=1;> + + +3、不建议使用过多的装饰来区分图表,图例虽然可以帮助区分不同数据系列,但如下图使用过多种类的图例有时会让用户分心。 +https://gallery.echartsjs.com/view-lite.html?cid=xS1Tbdr8EG=1;> + + + +4、展示折线图的数据时,要避免刻意的歪曲趋势。如下图,左图过于扁平化掩盖了想传达的信息,右图过于夸大趋势。要根据展示数据波动的参考单位,做有意义的波动分析。正确的数据高度是线约占Y轴高度的 2/3。 + + diff --git a/contents/zh/best-practice/chart-specificatio/line/stacked-area.md b/contents/zh/best-practice/chart-specificatio/line/stacked-area.md new file mode 100644 index 000..2027d00 --- /dev/null +++ b/contents/zh/best-practice/chart-specificatio/line/stacked-area.md @@ -0,0 +1,46 @@ +# 堆叠面积图 +堆积面积图是一种特殊的面积图,可以用来比较在一个区间内的多个变量。堆叠面积图和面积图的区别在于,堆叠面积图每个数据系列的起点都是基于前一个数据系列绘制的,也就是每度量一行就要填满行与行之间的区域。 + +如果有多个数据系列,并想分析每个类别的部分到整体的关系,并展现部分量对于总量的贡献时,使用堆积面积图是非常合适的选择。例如下图显示某个销售员对总销售额的贡献。 +https://gallery.echartsjs.com/view-lite.html?cid=xHySthj74z;> + + + +有两种不同的堆积面积图类型: + ++ 传统的堆积面积图:直接使用原始值堆叠,显示整个过程如何变化。 ++ 百分比堆积面积图:百分比堆积显示不同部分之间的关系如何随时间而变化。其中累积的总数不重要,重要的是显示出类别分布在整体中的作用。 + +https://gallery.echartsjs.com/view-lite.html?cid=xSyBN2i7Vf;> + + +## 堆叠面积图的使用建议 + +1、图表有重叠的数据时,类别数量越多,重叠越多,因此可见度越低。如果使用面积图(如下示例)时会因为系列的重叠而无法阅读。 + +https://gallery.echartsjs.com/view-lite.html?cid=xHyNDxOo4M;> + + + +那同样的数据,换成使用堆叠面积图展示,则相对更容易阅读。 + +https://gallery.echartsjs.com/view-lite.html?cid=xSyBN2i7Vf;> + + + + + https://gallery.echartsjs.com/view-lite.html?cid=xHyNDxOo4M;> + + + + +2、虽然多数据系列时堆叠面积图比面积图有更好的展示效果,但依然不建议堆叠面积图中包含过多数据系列,最好不要多于7个,以免数据难以辨识。 + +3、堆积面积图要展示部分和整体之间的关系,所以不能用于包含负值的数据的展示。 + +4、建议堆叠面积图中把变化量较大的数据放在上方,变化量较小的数据放在下方会获得更加的展示效果。 diff --git a/contents/zh/posts.js b/contents/zh/posts.js index d3b2511..3013dcb 100644 --- a/contents/zh/posts.js +++ b/contents/zh/posts.js @@ -127,10 +127,44 @@ export default [{ title: '最佳实践', dir: 'best-practice', children: [{ -title: '移动端优化', -dir: 'mobile' -}, { +title: '移动端优化', +dir: 'mobile' +},{ title: '可视化设计原则', dir: 'design' +}, { +title: '可视化规范', +dir: 'chart-specificatio', +children: [{ +
[GitHub] [incubator-echarts] sunpcm commented on issue #12815: Datazoom: Cannot set property xxx of undefined
sunpcm commented on issue #12815: URL: https://github.com/apache/incubator-echarts/issues/12815#issuecomment-646413998 > I think it is just an error in console, the function does not affect. > And i find it‘s a error in zrender, and make a pr [zrender #606](https://github.com/ecomfe/zrender/pull/606) OK, I see, thanks. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] plainheart commented on issue #12827: 在series中使用label 的formatter属性无法换行
plainheart commented on issue #12827: URL: https://github.com/apache/incubator-echarts/issues/12827#issuecomment-646413422 是的,`label` 需要使用 `\n` 换行,`tooltip`中是使用``换行。 参考文档: - https://echarts.apache.org/zh/option.html#series-bar.label.formatter - https://echarts.apache.org/zh/option.html#tooltip.formatter This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] yanheSu commented on issue #12827: 在series中使用label 的formatter属性无法换行
yanheSu commented on issue #12827: URL: https://github.com/apache/incubator-echarts/issues/12827#issuecomment-646412590 ```javascript label: { show: true, position: 'top', fontSize: 14, align: 'center', formatter(params) { let { value, name } = params; return `${name} \n ${value}`; } } ``` 也许你可以 试试 使用 `\n` 替换 `` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] 540548050 opened a new issue #12827: 在series中使用label 的formatter属性无法换行
540548050 opened a new issue #12827: URL: https://github.com/apache/incubator-echarts/issues/12827 ### Version 4.8.0 ### Steps to reproduce 1.该情况下br无法换行,而是直接显示‘br’字符串 series: [ { name: '品种', type: 'bar', data: [5, 20, 36, 10, 10], label: { show: true, position: 'top', fontSize: 14, align: 'center', formatter(params) { let { value, name } = params; return `${name}${value}`; }, }, }, ], ### What is expected? 期望能换行 ### What is actually happening? 不能换行 ,直接显示字符串 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12827: 在series中使用label 的formatter属性无法换行
echarts-bot[bot] commented on issue #12827: URL: https://github.com/apache/incubator-echarts/issues/12827#issuecomment-646410991 Hi! We've received your issue and please be patient to get responded. The average response time is expected to be within one day for weekdays. In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to d...@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html). Have a nice day! This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] yanheSu commented on issue #12826: 使用 type=gauge 时,无法使用 xAxis
yanheSu commented on issue #12826: URL: https://github.com/apache/incubator-echarts/issues/12826#issuecomment-646410426 不是特别明白对于 仪表类型 的图表,为什么会需要有 x 轴的定义,是需要进行仪表图表的分组分区组合?还是需要图表在 grid 中 的定位?还是指图表中的 标签 位置?類 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-doc] branch live-example updated: example: restore after example changed
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch live-example in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git The following commit(s) were added to refs/heads/live-example by this push: new 13cdf5b example: restore after example changed 13cdf5b is described below commit 13cdf5b36f4bf579344dcafc5fb6028d382bd67b Author: pissang AuthorDate: Fri Jun 19 10:29:28 2020 +0800 example: restore after example changed --- src/components/DocContentItemCard.vue | 11 --- src/components/LiveExample.vue| 37 +-- src/store.js | 29 ++- zh/option/partial/mark-area.md| 12 zh/option/partial/mark-line.md| 12 zh/option/partial/mark-point.md | 13 +++- 6 files changed, 77 insertions(+), 37 deletions(-) diff --git a/src/components/DocContentItemCard.vue b/src/components/DocContentItemCard.vue index 33b275d..7ce4377 100644 --- a/src/components/DocContentItemCard.vue +++ b/src/components/DocContentItemCard.vue @@ -98,9 +98,6 @@ export default { } }, -created() { -}, - watch: { enableUIControl(newVal) { if (!newVal) { @@ -117,6 +114,14 @@ export default { this.shared.showOptionExample = true; } +}, + +'shared.currentExampleName'(newVal, oldVal) { +// Reset after example changed. +// NOTE: it may be the first time example panel is opened. So need to check the old value. +if (newVal && oldVal) { +this.enableUIControl = false; +} } }, diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue index f377fe4..576e648 100644 --- a/src/components/LiveExample.vue +++ b/src/components/LiveExample.vue @@ -92,36 +92,10 @@ function diffUpdateCode(oldCode, newCode, cmInstance) { if (len) { setTimeout(() => { -// const existsEl = cmInstance.getWrapperElement().querySelector('.option-changed'); -// if (existsEl) { -// // If the element is near to the view and has been rendered. -// scrollIntoView(existsEl, { -// time: 400, -// align: { -// top: 0, -// topOffset: -50 -// } -// }); -// } -// else { -if (window.scrollTo) { -const {top} = cmInstance.charCoords({line: changedLines[0], ch: 0}); -const el = cmInstance.getScrollerElement(); -// Because the -// el.style.top = oldTop + 'px'; -el.scrollTo({ -top, -left: 0, -behavior: 'smooth' -}); -} -else { -cmInstance.scrollIntoView({ -line: changedLines[0], -ch: 0 -}, cmInstance.getWrapperElement().clientHeight - 50); -} -// } +cmInstance.scrollIntoView({ +line: changedLines[0], +ch: 0 +}, cmInstance.getWrapperElement().clientHeight - 50); }, 20); } @@ -423,8 +397,7 @@ export default { .option-changed { background: rgba(255, 255, 255, 0.1); -border-left: 3px solid #32dde6; -margin-left: -3px; +// border-left: 3px solid #32dde6; } } } diff --git a/src/store.js b/src/store.js index 89dbc1d..6dd52ea 100644 --- a/src/store.js +++ b/src/store.js @@ -45,6 +45,32 @@ export function isOptionDoc() { const componentCanHost = ['markPoint', 'markLine', 'markArea', 'tooltip', 'axisPointer']; +function makeDefaultOption(key) { +if (key === 'markPoint') { +return { +data: [{ +type: 'max' +}] +}; +} +else if (key === 'markLine') { +return { +data: [{ +type: 'average' +}] +}; +} +else if (key === 'markArea') { +return { +data: [ [{ +type: 'min' +}, { +type: 'max' +}] ] +}; +} +} + export function changeOption(option, path, value) { function changeOptionRecursive(obj, pathParts, objKey, nodePath) { @@ -77,7 +103,8 @@ export function changeOption(option, path, value) { // TODO: If prop not exists and it should be an array. if (obj[key] == null) { const outlineNode = getOutlineNode(nodePath); -obj[key] = (outlineNode && outlineNode.isArray) ? [] : {}; +obj[key] = makeDefaultOption(key) || +
[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646397195 @plainheart window.matchMedia("(pointer: coarse)").matches的返回结果是false This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] 214132049 commented on issue #12642: tooltip.axisPointer.label 设置 lineHeight 无效果
214132049 commented on issue #12642: URL: https://github.com/apache/incubator-echarts/issues/12642#issuecomment-646397287 @susiwen8 I did it by mistake This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
plainheart commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646394989 @tikeyc `window.matchMedia("(pointer: coarse)").matches`的返回结果是否为`true`? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc edited a comment on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475 @plainheart 您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片(图片通过邮件发送的),感谢。 增加了 "ontouchstart" in window的验证结果,结果为false(图片通过邮件发送的) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc edited a comment on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475 您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片(图片通过邮件发送的),感谢。 增加了 "ontouchstart" in window的验证结果,结果为false(图片通过邮件发送的) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc removed a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc removed a comment on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646394047 增加了 "ontouchstart" in window的验证结果,结果为false This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646394047 增加了 "ontouchstart" in window的验证结果,结果为false This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc edited a comment on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646386600 @plainheart 您好。使用可以触屏的大屏显示器,在控制台打印了结果: window.DocumentTouch && document instanceof DocumentTouch 的结果是:undefined window 对象中是否有 ontouchstart 函数的结果是:false This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc edited a comment on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475 您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片(图片通过邮件发送的),感谢。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475 您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片。感谢。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
tikeyc commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646386600 @plainheart 您好。使用可以触屏的大屏显示器,在控制台打印了window.DocumentTouch && document instanceof DocumentTouch 的结果,以及window 对象中是否有 ontouchstart 函数。 得出的结果都是undefined This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-doc] branch live-example updated: example: highlight the changed lines and scroll to the changed line
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch live-example in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git The following commit(s) were added to refs/heads/live-example by this push: new 1b72e63 example: highlight the changed lines and scroll to the changed line 1b72e63 is described below commit 1b72e63a93bc1f594f1e992866b474c9c7c6456d Author: pissang AuthorDate: Fri Jun 19 09:25:21 2020 +0800 example: highlight the changed lines and scroll to the changed line --- package-lock.json | 5 ++ package.json | 3 +- src/components/LiveExample.vue | 112 +++-- 3 files changed, 115 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index b93edf2..1419215 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13079,6 +13079,11 @@ "camelcase": "^5.0.0", "decamelize": "^1.2.0" } +}, +"zrender": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/zrender/-/zrender-4.3.1.tgz;, + "integrity": "sha512-CeH2TpJeCdG0TAGYoPSAcFX2ogdug1K7LIn9UO/q9HWqQ54gWhrMAlDP9AwWYMUDhrPe4VeazQ4DW3msD96nUQ==" } } } diff --git a/package.json b/package.json index 8e579ed..ec0e2f2 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "vue-custom-scrollbar": "^1.2.0", "vue-i18n": "^8.18.2", "vue-text-highlight": "^2.0.10", -"whatwg-fetch": "^3.0.0" +"whatwg-fetch": "^3.0.0", +"zrender": "^4.3.1" } } diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue index 6aa73ea..f377fe4 100644 --- a/src/components/LiveExample.vue +++ b/src/components/LiveExample.vue @@ -41,6 +41,8 @@ import 'codemirror/theme/paraiso-dark.css'; import 'codemirror/mode/javascript/javascript.js' import beautify from 'js-beautify'; import throttle from 'lodash.throttle'; +import arrayDiff from 'zrender/src/core/arrayDiff'; +import scrollIntoView from 'scroll-into-view'; let echartsLoadPromise; @@ -57,7 +59,76 @@ function fetchECharts() { })); } -function updateOption(option) { +function diffUpdateCode(oldCode, newCode, cmInstance) { +const oldLines = oldCode.split(/\n/); +const newLines = newCode.split(/\n/); +const result = arrayDiff(oldLines, newLines); + +const changedLines = []; +const len = result.length; + +for (let i = len - 1; i >= 0; i--) { +const item = result[i]; +if (item.cmd === '-') { +cmInstance.replaceRange( +'', {line: item.idx, ch: 0}, {line: item.idx + 1, ch: 0} +); +} +} + +for (let i = 0; i < len; i++) { +const item = result[i]; +if (item.cmd === '+') { +cmInstance.replaceRange( +newLines[item.idx] + '\n', {line: item.idx, ch: 0} +); +changedLines.push(item.idx); +} +} + +changedLines.forEach(function (idx) { +cmInstance.addLineClass(idx, 'wrap', 'option-changed'); +}); + +if (len) { +setTimeout(() => { +// const existsEl = cmInstance.getWrapperElement().querySelector('.option-changed'); +// if (existsEl) { +// // If the element is near to the view and has been rendered. +// scrollIntoView(existsEl, { +// time: 400, +// align: { +// top: 0, +// topOffset: -50 +// } +// }); +// } +// else { +if (window.scrollTo) { +const {top} = cmInstance.charCoords({line: changedLines[0], ch: 0}); +const el = cmInstance.getScrollerElement(); +// Because the +// el.style.top = oldTop + 'px'; +el.scrollTo({ +top, +left: 0, +behavior: 'smooth' +}); +} +else { +cmInstance.scrollIntoView({ +line: changedLines[0], +ch: 0 +}, cmInstance.getWrapperElement().clientHeight - 50); +} +// } +}, 20); +} + +return changedLines; +} + +function updateOption(option, isRefreshForce) { if (this.shared.currentExampleName !== this.lastUpdateExampleName) { this.lastUpdateExampleName = this.shared.currentExampleName; // Refresh all if example base option is changed. @@ -113,7 +184,22 @@ function updateOption(option) { else { // TODO: Highlight the diff lines. // TODO: Only change the changed line. optimize -this.cmInstance.setValue(this.formattedOptionCodeStr); +const oldCode = this.cmInstance.getValue(); +const newCode = this.formattedOptionCodeStr; + +if
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12826: 使用 type=gauge 时,无法使用 xAxis
echarts-bot[bot] commented on issue #12826: URL: https://github.com/apache/incubator-echarts/issues/12826#issuecomment-646384489 Hi! We've received your issue and please be patient to get responded. The average response time is expected to be within one day for weekdays. In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to d...@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html). Have a nice day! This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Sinosaurus opened a new issue #12826: 使用 type=gauge 时,无法使用 xAxis
Sinosaurus opened a new issue #12826: URL: https://github.com/apache/incubator-echarts/issues/12826 ### Version 4.8.0 ### Reproduction link [https://codepen.io/sinosaurus/pen/mdVROmx](https://codepen.io/sinosaurus/pen/mdVROmx) ### Steps to reproduce ``` var option = { grid: { // left: 0, show: true }, // TODO: 此处添加了xAxis xAxis: { show: true, offset: 0 }, axisLine: { show: true, lineStyle: { color: 'red', width: 4, } }, tooltip: { formatter: '{a} {b} : {c}%' }, toolbox: { feature: { restore: {}, saveAsImage: {} } }, series: [{ name: '业务指标', type: 'gauge', detail: { formatter: '{value}%' }, data: [{ value: 50, name: '完成率' }] }] }; ``` ### What is expected? 可以控制图表距离x轴的位置 ### What is actually happening? > 报错信息 ``` cartesianAxisHelper.js:43 Uncaught TypeError: axis.getAxesOnZeroOf is not a function at layout$1 (cartesianAxisHelper.js:43) at ExtendedClass.render (CartesianAxisView.js:62) at echarts.js:1549 at Array.forEach () at each$1 (util.js:295) at renderComponents (echarts.js:1547) at render (echarts.js:1530) at ECharts.update (echarts.js:891) at ECharts.echartsProto.setOption (echarts.js:392) at index.html:63 ``` 简单看了下源码,`getAxesOnZeroOf` 在 原型中 `null` 并不是一个方法,或者说没有走到去挂载`getAxesOnZeroOf`那儿就报错了 --- 类似的问题,有好多,但是并没有有效解决我的需求。这应该是一个很容易复现的bug,在使用 `xAxis`时,并没有明确需要的参数,因而无法有效解决了 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-doc] branch live-example updated: example: add UI on tooltip, calendar, pictorialBar
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch live-example in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git The following commit(s) were added to refs/heads/live-example by this push: new 96c5a53 example: add UI on tooltip,calendar,pictorialBar 96c5a53 is described below commit 96c5a532ae973f62f7577ad59818c8ebc3a2b4e0 Author: pissang AuthorDate: Thu Jun 18 22:52:45 2020 +0800 example: add UI on tooltip,calendar,pictorialBar --- src/components/LiveExample.vue | 15 +++-- zh/option/component/calendar.md | 107 + zh/option/component/tooltip.md | 130 zh/option/partial/tooltip-common.md | 12 zh/option/series/pictorialBar.md| 72 5 files changed, 329 insertions(+), 7 deletions(-) diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue index 56b30c9..6aa73ea 100644 --- a/src/components/LiveExample.vue +++ b/src/components/LiveExample.vue @@ -241,9 +241,11 @@ export default { computed: { optionCodeStr() { const optStr = JSON.stringify(this.shared.currentExampleOption, function (key, value) { -// if (typeof value === 'function') { -// return "__functionstart__" + value.toString() + "__functionend__"; -// } +if (typeof value === 'function') { +return "__functionstart__" ++ value.toString().replace(/\n/g, '__newline__')// avoid \n being escaped by JSON.stringify ++ "__functionend__"; +} return value; }); return `const option = ${optStr}`; @@ -252,11 +254,10 @@ export default { formattedOptionCodeStr() { return beautify.js(this.optionCodeStr .replace(/"(\w+)"\s*:/g, '$1:') -// .replace(/"__functionstart__/g, "") -// .replace(/__functionend__"/g, "") +.replace(/"__functionstart__/g, "") +.replace(/__functionend__"/g, "") // newline from function -// .replace(/\\n/g, '\n') -, { +.replace(/__newline__/g, '\n'), { indent_size: 2 }); } diff --git a/zh/option/component/calendar.md b/zh/option/component/calendar.md index 4d31c54..7ed14af 100644 --- a/zh/option/component/calendar.md +++ b/zh/option/component/calendar.md @@ -44,6 +44,59 @@ --- + +function getVirtulData(year) { +year = year || '2017'; +var date = +new Date(year + '-01-01'); +var end = +new Date((+year + 1) + '-01-01'); +var dayTime = 3600 * 24 * 1000; +var data = []; +for (var time = date; time < end; time += dayTime) { +data.push([ +time, +Math.floor(Math.random() * 1) +]); +} +return data; +} + +const option = { +title: { +top: 30, +left: 'center', +text: '2016年某人每天的步数' +}, +tooltip: {}, +visualMap: { +min: 0, +max: 1, +type: 'piecewise', +orient: 'horizontal', +left: 'center', +top: 65, +textStyle: { +color: '#000' +} +}, +calendar: { +top: 120, +left: 30, +right: 30, +cellSize: ['auto', 13], +range: '2016', +itemStyle: { +borderWidth: 0.5 +}, +yearLabel: {show: false} +}, +series: { +type: 'heatmap', +coordinateSystem: 'calendar', +data: getVirtulData(2016) +} +}; + + {{use: partial-component-id(prefix="#")}} {{ use: partial-rect-layout-width-height( @@ -75,6 +128,8 @@ range: ['2017-01', '2017-02'] ## cellSize(number|Array) = 20 + + 日历每格框的大小,可设置单值 或数组 第一个元素是宽 第二个元素是高。 支持设置自适应:`auto`, 默认为高宽均为20 @@ -99,17 +154,27 @@ cellSize: ['auto', 40] ``` ## width(number|string) = auto + + + 日历坐标的整体宽度 注意: 默认cellSize 为20,若设置了`width`的值, 则`cellSize`中的宽度强制转为`auto`; ## height(number|string) = auto + + + 日历坐标的整体高度, 注意: 默认cellSize 为20,若设置了`height`的值, 则`cellSize`中的高度强制转为`auto`; ## orient(string) = 'horizontal' + + + + 日历坐标的布局朝向。 可选: @@ -120,6 +185,9 @@ cellSize: ['auto', 40] 设置日历坐标分隔线的样式。 ### show(boolean) = ${defaultShow|default(true)} + + + 是否显示分隔线。默认显示。 ### lineStyle(Object) @@ -173,9 +241,15 @@ calendar: [{ 设置日历坐标中 星期轴的样式 ### show(boolean) = true + + + 是否在普通状态下显示标签。 ### firstDay(number) = 0 + + + 一周从周几开始,默认从周日开始 例如: @@ -191,9 +265,15 @@ calendar: [{ ``` ### margin(number) = 0 + + + 星期标签与轴线之间的距离 ### position(string) = 'start' + + + 星期的位置 在星期轴的开头还是结尾。 可选: @@ -201,6 +281,9 @@ calendar: [{ + 'end' ### nameMap(string|Array) = 'en' + + + 星期显示的效果,默认为'en' 可设置中英文以及自定义 下标0为对应星期天的文字显示 @@ -228,9 +311,15 @@ calendar: [{ 设置日历坐标中 月份轴的样式
[GitHub] [incubator-echarts] 540548050 closed issue #12824: 饼状图使用dispatchAction无法正常显示tooltip组件
540548050 closed issue #12824: URL: https://github.com/apache/incubator-echarts/issues/12824 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] 540548050 opened a new issue #12825: 饼状图使用dispatchAction无法正常显示tooltip组件
540548050 opened a new issue #12825: URL: https://github.com/apache/incubator-echarts/issues/12825 ### Version 4.8.0 ### Steps to reproduce 1.使用饼状图,series中的radius设置为 ['40%', '70%'] 2.使用myChart.dispatchAction触发高亮,无法正常显示tooltip组件 3.但是radius设置为 ['30%', '70%'] 正常显示tooltip组件,是否为触发位置的判定问题,设置为 ['30%', '70%'] 样式不好看,希望早点解决 ### What is expected? 期望能正常显示tooltip组件 ### What is actually happening? radius内圈半径大一点就无法正常显示tooltip组件 --- 环形图 较小 150*150,是否为图形太小的原因,https://echarts.apache.org/examples/zh/editor.html?c=doc-example/pie-highlight 正常显示, This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12825: 饼状图使用dispatchAction无法正常显示tooltip组件
echarts-bot[bot] commented on issue #12825: URL: https://github.com/apache/incubator-echarts/issues/12825#issuecomment-646068548 Hi! We've received your issue and please be patient to get responded. The average response time is expected to be within one day for weekdays. In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to d...@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html). Have a nice day! This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12824: 饼状图使用dispatchAction无法正常显示tooltip组件
echarts-bot[bot] commented on issue #12824: URL: https://github.com/apache/incubator-echarts/issues/12824#issuecomment-646059079 This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. Sorry for this, but it helps save our maintainers' time so that more developers get helped. Feel free to create another issue using the issue template. If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again. 这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。 为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。 如果您愿意,可以请使用 issue 模板重新创建 issue。 如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] 540548050 opened a new issue #12824: 饼状图使用dispatchAction无法正常显示tooltip组件
540548050 opened a new issue #12824: URL: https://github.com/apache/incubator-echarts/issues/12824 Version 4.8.0 Steps to reproduce 使用饼状图时,series中的radius设置为 ['40%', '70%'],使用myChart.dispatchAction触发高亮,无法正常显示tooltip组件,但是radius设置为 ['30%', '70%'] 正常显示tooltip组件,是否为触发位置的判定问题,设置为 ['30%', '70%'] 样式不好看,希望早点解决 What is expected? · What is actually happening? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-doc] branch live-example updated: example: add UI on more components
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch live-example in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git The following commit(s) were added to refs/heads/live-example by this push: new cfb63e8 example: add UI on more components cfb63e8 is described below commit cfb63e8ff54285ec0e097068e5c9d87fb4ccf9b7 Author: pissang AuthorDate: Thu Jun 18 21:59:42 2020 +0800 example: add UI on more components --- src/components/LiveExample.vue | 13 +- src/store.js | 37 +++ zh/option/component/axisPointer.md | 111 +++ zh/option/component/data-zoom-slider.md | 3 +- zh/option/component/parallel-axis.md | 185 ++- zh/option/component/parallel.md | 456 ++- zh/option/component/timeline.md | 429 - zh/option/component/toolbox.md | 152 + zh/option/component/visual-map-continuous.md | 29 +- zh/option/component/visual-map-piecewise.md | 33 ++ zh/option/component/visual-map.md| 5 - zh/option/partial/axisPointer-common.md | 20 ++ zh/option/partial/symbol.md | 2 +- 13 files changed, 1447 insertions(+), 28 deletions(-) diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue index f19b942..56b30c9 100644 --- a/src/components/LiveExample.vue +++ b/src/components/LiveExample.vue @@ -241,9 +241,9 @@ export default { computed: { optionCodeStr() { const optStr = JSON.stringify(this.shared.currentExampleOption, function (key, value) { -if (typeof value === 'function') { -return "__functionstart__" + value.toString() + "__functionend__"; -} +// if (typeof value === 'function') { +// return "__functionstart__" + value.toString() + "__functionend__"; +// } return value; }); return `const option = ${optStr}`; @@ -252,10 +252,11 @@ export default { formattedOptionCodeStr() { return beautify.js(this.optionCodeStr .replace(/"(\w+)"\s*:/g, '$1:') -.replace(/"__functionstart__/g, "") -.replace(/__functionend__"/g, "") +// .replace(/"__functionstart__/g, "") +// .replace(/__functionend__"/g, "") // newline from function -.replace(/\\n/g, '\n'), { +// .replace(/\\n/g, '\n') +, { indent_size: 2 }); } diff --git a/src/store.js b/src/store.js index dd5b5fe..89dbc1d 100644 --- a/src/store.js +++ b/src/store.js @@ -43,6 +43,8 @@ export function isOptionDoc() { || store.docType === 'option-gl'; } +const componentCanHost = ['markPoint', 'markLine', 'markArea', 'tooltip', 'axisPointer']; + export function changeOption(option, path, value) { function changeOptionRecursive(obj, pathParts, objKey, nodePath) { @@ -103,6 +105,41 @@ export function changeOption(option, path, value) { return obj; } +// For the components can be hosted on other components, like axisPointer, markers. +function findAndSetHostComponentRecursively(root, componentKey) { +if (root[componentKey]) { +return changeOptionRecursive(root, path.split('.'), '', ''); +} + +if (Array.isArray(root)) { +const newArr = []; +for (let i = 0; i < root.length; i++) { +newArr.push(findAndSetHostComponentRecursively(root[i], componentKey)); +} +return newArr; +} +else if (typeof root === 'object') { +const newObj = {}; +for (let key in root) { +if (root.hasOwnProperty(key)) { +newObj[key] = findAndSetHostComponentRecursively(root[key], componentKey); +} +} +return newObj; +} + +return root; +} + +const componentKey = path.split('.')[0]; +if (componentKey === 'timeline' && option.baseOption) { +return Object.assign({}, option, { +baseOption: changeOptionRecursive(option.baseOption, path.split('.'), '', '') +}); +} +else if (componentCanHost.indexOf(componentKey) >= 0) { +return findAndSetHostComponentRecursively(option, componentKey); +} return changeOptionRecursive(option, path.split('.'), '', ''); } \ No newline at end of file diff --git a/zh/option/component/axisPointer.md b/zh/option/component/axisPointer.md index 12ef743..3d7f6de 100644 --- a/zh/option/component/axisPointer.md +++ b/zh/option/component/axisPointer.md @@ -5,6 +5,115 @@ 这是坐标轴指示器(axisPointer)的全局公用设置。 + +var base = +new Date(2016, 9, 3); +var oneDay = 24 * 3600 *
[GitHub] [incubator-echarts] plainheart edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
plainheart edited a comment on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645973348 > 但更新到echarts4.8.0版本.无法拖动的问题依然存在。只有去修改源码将touchEventsSupported的值强制设置成true后问题便得到了解决。 如果按照你说的将`touchEventsSupported`设置为`true`即可解决该问题,那么很有可能是在判断环境是否支持触摸事件的逻辑上存在bug,导致echarts认为当前环境不支持`touchEvents`,有待验证。 https://github.com/ecomfe/zrender/blob/master/src/core/env.js#L149 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
plainheart commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645986599 @tikeyc 麻烦您使用所拥有的触屏或大屏显示器帮助验证以下问题: - `window.DocumentTouch && document instanceof DocumentTouch` 的结果是否为 `true` - `window` 对象中是否有 `ontouchstart` 函数 通过[StackOverflow](https://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript)上的讨论,似乎很难有一种能适用于各种情况的方案。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] branch master updated: doc: update content
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-handbook.git The following commit(s) were added to refs/heads/master by this push: new fae6ccc doc: update content fae6ccc is described below commit fae6ccc466317c63ec954b1b6f4f7abb93272c95 Author: Ovilia AuthorDate: Thu Jun 18 20:21:13 2020 +0800 doc: update content --- .../zh/application/chart-types/bar/basic-bar.md| 2 +- .../zh/application/chart-types/line/step-line.md | 18 +- .../zh/application/chart-types/pie/basic-pie.md| 104 contents/zh/application/chart-types/pie/ring.md| 91 +++ contents/zh/application/chart-types/pie/rose.md| 31 +++ .../chart-types/scatter/basic-scatter.md | 119 ++ contents/zh/application/custom-build.md| 264 + contents/zh/basics/help.md | 42 +++- contents/zh/concepts/visual-map.md | 129 ++ contents/zh/posts.js | 23 ++ 10 files changed, 812 insertions(+), 11 deletions(-) diff --git a/contents/zh/application/chart-types/bar/basic-bar.md b/contents/zh/application/chart-types/bar/basic-bar.md index c980e5b..665177c 100644 --- a/contents/zh/application/chart-types/bar/basic-bar.md +++ b/contents/zh/application/chart-types/bar/basic-bar.md @@ -1,6 +1,6 @@ # 基本柱状图 -柱状图(或称条形图)是一种通过柱形的高度(横向的情况下则是宽度)来表现数据大小的一种常用图表类型。 +柱状图(或称条形图)是一种通过柱形的长度来表现数据大小的一种常用图表类型。 设置柱状图的方式,是将 `series` 的 `name` 设为 `'bar'`。 diff --git a/contents/zh/application/chart-types/line/step-line.md b/contents/zh/application/chart-types/line/step-line.md index 4758ce1..d271602 100644 --- a/contents/zh/application/chart-types/line/step-line.md +++ b/contents/zh/application/chart-types/line/step-line.md @@ -15,22 +15,22 @@ option = { type: 'value' }, series: [{ -name:'Step Start', -type:'line', +name: 'Step Start', +type: 'line', step: 'start', -data:[120, 132, 101, 134, 90, 230, 210] +data: [120, 132, 101, 134, 90, 230, 210] }, { -name:'Step Middle', -type:'line', +name: 'Step Middle', +type: 'line', step: 'middle', -data:[220, 282, 201, 234, 290, 430, 410] +data: [220, 282, 201, 234, 290, 430, 410] }, { -name:'Step End', -type:'line', +name: 'Step End', +type: 'line', step: 'end', -data:[450, 432, 401, 454, 590, 530, 510] +data: [450, 432, 401, 454, 590, 530, 510] }] }; ``` diff --git a/contents/zh/application/chart-types/pie/basic-pie.md b/contents/zh/application/chart-types/pie/basic-pie.md new file mode 100644 index 000..eef94a7 --- /dev/null +++ b/contents/zh/application/chart-types/pie/basic-pie.md @@ -0,0 +1,104 @@ +# 基础饼图 + +饼图主要用于表现不同类目的数据在总和中的占比。每个的弧度表示数据数量的比例。 + +## 最简单的饼图 + +饼图的配置和折线图、柱状图略有不同,不再需要配置坐标轴,而是把数据名称和值都写在系列中。以下是一个最简单的饼图的例子。 + + +```js +option = { +series: [{ +type: 'pie', +data: [{ +value: 335, +name: '直接访问' +}, { +value: 234, +name: '联盟广告' +}, { +value: 1548, +name: '搜索引擎' +}] +}] +}; +``` + +需要注意的是,这里是 `value` 不需要是百分比数据,ECharts 会根据所有数据的 `value` ,按比例分配它们在饼图中对应的弧度。 + + +## 饼图样式设置 + +### 饼图的半径 + +饼图的半径可以通过 [`series.radius`](${optionPath}series-pie.radius) 设置,可以是诸如 `'60%'` 这样相对的百分比字符串,或是 `200` 这样的绝对像素数值。当它是百分比字符串时,它是相对于容器宽高中较小的一条边的。也就是说,如果宽度大于高度,则百分比是相对于高度的,反之则反;当它是数值型时,它表示绝对的像素大小。 + + +```js +option = { +series: [{ +type: 'pie', +data: [{ +value: 335, +name: '直接访问' +}, { +value: 234, +name: '联盟广告' +}, { +value: 1548, +name: '搜索引擎' +}], +radius: '50%' +}] +}; +``` + +## 如果数据和为0,不显示饼图 + +在默认情况下,如果数据值和为 0,会显示平均分割的扇形。比如,如果有 4 个数据项,并且每个数据项都是 0,则每个扇形都是 90°。如果我们希望在这种情况下不显示任何扇形,可以将 [`series.stillShowZeroSum`](${optionPath}series-pie.stillShowZeroSum) 设为 `false`。 + + +```js +option = { +series: [{ +type: 'pie', +stillShowZeroSum: false, +data: [{ +value: 0, +name: '直接访问' +}, { +value: 0, +name: '联盟广告' +}, { +value: 0, +name: '搜索引擎' +}] +}] +}; +``` + +如果希望扇形对应的标签也不现实,可以将 [`series.label.show`](${optionPath}series-pie.label.show) 设为 `false`。 + + +```js +option = { +series: [{ +type: 'pie', +stillShowZeroSum: false, +label: { +show: false +} +data: [{ +value: 0, +name: '直接访问' +}, { +value: 0, +name: '联盟广告' +}, { +value: 0, +name: '搜索引擎' +}] +}] +}; +``` diff --git
[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
plainheart commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645973348 > 但更新到echarts4.8.0版本.无法拖动的问题依然存在。只有去修改源码将touchEventsSupported的值强制设置成true后问题便得到了解决。 如果按照你说的将`touchEventsSupported`设置为`true`即可解决该问题,那么很有可能是在判断环境是否支持触摸事件的逻辑上存在bug,导致echarts认为当前环境不支持`touchEvents`,有待验证。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-doc] branch master updated: fix(gauge): added missing buttons in gauge example.
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/incubator-echarts-doc.git The following commit(s) were added to refs/heads/master by this push: new e07b5b2 fix(gauge): added missing buttons in gauge example. new 7238337 Merge pull request #111 from plainheart/fix/add-missing-buttons-in-gauge-example e07b5b2 is described below commit e07b5b27cb170ffdaa3da92ce300ab85d5535b00 Author: plainheart AuthorDate: Thu Jun 18 16:39:06 2020 +0800 fix(gauge): added missing buttons in gauge example. --- en/option/series/gauge.md | 2 +- zh/option/series/gauge.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/option/series/gauge.md b/en/option/series/gauge.md index 566f756..0c70a6d 100644 --- a/en/option/series/gauge.md +++ b/en/option/series/gauge.md @@ -6,7 +6,7 @@ **Gauge chart** **Example: ** -~[600x500](${galleryViewPath}gauge-car) +~[600x500](${galleryViewPath}gauge-car=1=1) ## type(string) = 'gauge' diff --git a/zh/option/series/gauge.md b/zh/option/series/gauge.md index 009a916..b0422e9 100644 --- a/zh/option/series/gauge.md +++ b/zh/option/series/gauge.md @@ -6,7 +6,7 @@ **仪表盘** **示例:** -~[600x500](${galleryViewPath}gauge-car) +~[600x500](${galleryViewPath}gauge-car=1=1) ## type(string) = 'gauge' - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts-doc] plainheart merged pull request #111: fix(gauge): added missing buttons in gauge example.
plainheart merged pull request #111: URL: https://github.com/apache/incubator-echarts-doc/pull/111 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] branch master updated (8fabd28 -> 2aa3255)
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-handbook.git. from 8fabd28 Merge pull request #1 from apache/wenli add 179be6e feat: support level 4 nav new 2aa3255 Merge pull request #2 from apache/wenli The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: components/partials/Sidebar.vue| 37 -- contents/zh/{cookbook => application}/aria.md | 0 .../chart-types/bar/bar-race.md} | 0 .../chart-types/bar/basic-bar.md} | 0 .../{ => application}/chart-types/bar/polar-bar.md | 0 .../chart-types/bar/stacked-bar.md | 0 .../chart-types/bar/visual-map.md | 0 .../{ => application}/chart-types/bar/waterfall.md | 0 .../zh/application/chart-types/line/area-line.md | 27 + .../zh/application/chart-types/line/basic-line.md | 128 + .../zh/application/chart-types/line/smooth-line.md | 18 +++ .../application/chart-types/line/stacked-line.md | 45 .../zh/application/chart-types/line/step-line.md | 38 ++ contents/zh/{cookbook => application}/connect.md | 0 .../zh/{cookbook => application}/cross-platform.md | 0 contents/zh/{cookbook => application}/down-play.md | 0 contents/zh/{cookbook => application}/downplay.md | 0 contents/zh/{cookbook => application}/mobile.md| 0 contents/zh/chart-types/line.md| 26 - contents/zh/chart-types/xxx.md | 0 contents/zh/posts.js | 79 +++-- 21 files changed, 330 insertions(+), 68 deletions(-) rename contents/zh/{cookbook => application}/aria.md (100%) rename contents/zh/{chart-types/bar/bar-racing.md => application/chart-types/bar/bar-race.md} (100%) rename contents/zh/{chart-types/bar/simple-bar.md => application/chart-types/bar/basic-bar.md} (100%) rename contents/zh/{ => application}/chart-types/bar/polar-bar.md (100%) rename contents/zh/{ => application}/chart-types/bar/stacked-bar.md (100%) rename contents/zh/{ => application}/chart-types/bar/visual-map.md (100%) rename contents/zh/{ => application}/chart-types/bar/waterfall.md (100%) create mode 100644 contents/zh/application/chart-types/line/area-line.md create mode 100644 contents/zh/application/chart-types/line/basic-line.md create mode 100644 contents/zh/application/chart-types/line/smooth-line.md create mode 100644 contents/zh/application/chart-types/line/stacked-line.md create mode 100644 contents/zh/application/chart-types/line/step-line.md rename contents/zh/{cookbook => application}/connect.md (100%) rename contents/zh/{cookbook => application}/cross-platform.md (100%) rename contents/zh/{cookbook => application}/down-play.md (100%) rename contents/zh/{cookbook => application}/downplay.md (100%) rename contents/zh/{cookbook => application}/mobile.md (100%) delete mode 100644 contents/zh/chart-types/line.md delete mode 100644 contents/zh/chart-types/xxx.md - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] 01/01: Merge pull request #2 from apache/wenli
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-handbook.git commit 2aa3255c1c1b8a9a96ae7b3401309977a3e4ebf4 Merge: 8fabd28 179be6e Author: Ovilia AuthorDate: Thu Jun 18 17:38:40 2020 +0800 Merge pull request #2 from apache/wenli feat: support level 4 nav components/partials/Sidebar.vue| 37 -- contents/zh/{cookbook => application}/aria.md | 0 .../chart-types/bar/bar-race.md} | 0 .../chart-types/bar/basic-bar.md} | 0 .../{ => application}/chart-types/bar/polar-bar.md | 0 .../chart-types/bar/stacked-bar.md | 0 .../chart-types/bar/visual-map.md | 0 .../{ => application}/chart-types/bar/waterfall.md | 0 .../zh/application/chart-types/line/area-line.md | 27 + .../zh/application/chart-types/line/basic-line.md | 128 + .../zh/application/chart-types/line/smooth-line.md | 18 +++ .../application/chart-types/line/stacked-line.md | 45 .../zh/application/chart-types/line/step-line.md | 38 ++ contents/zh/{cookbook => application}/connect.md | 0 .../zh/{cookbook => application}/cross-platform.md | 0 contents/zh/{cookbook => application}/down-play.md | 0 contents/zh/{cookbook => application}/downplay.md | 0 contents/zh/{cookbook => application}/mobile.md| 0 contents/zh/chart-types/line.md| 26 - contents/zh/chart-types/xxx.md | 0 contents/zh/posts.js | 79 +++-- 21 files changed, 330 insertions(+), 68 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点
echarts-bot[bot] commented on issue #12823: URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645902251 Hi! We've received your issue and please be patient to get responded. The average response time is expected to be within one day for weekdays. In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to d...@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html). Have a nice day! This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-handbook] 01/01: feat: support level 4 nav
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch wenli in repository https://gitbox.apache.org/repos/asf/incubator-echarts-handbook.git commit 179be6ed316e4ea8c1e3e6d7de6b1f0c0e00b7df Author: Ovilia AuthorDate: Thu Jun 18 17:18:41 2020 +0800 feat: support level 4 nav --- components/partials/Sidebar.vue| 37 -- contents/zh/{cookbook => application}/aria.md | 0 .../chart-types/bar/bar-race.md} | 0 .../chart-types/bar/basic-bar.md} | 0 .../{ => application}/chart-types/bar/polar-bar.md | 0 .../chart-types/bar/stacked-bar.md | 0 .../chart-types/bar/visual-map.md | 0 .../{ => application}/chart-types/bar/waterfall.md | 0 .../zh/application/chart-types/line/area-line.md | 27 + .../zh/application/chart-types/line/basic-line.md | 128 + .../zh/application/chart-types/line/smooth-line.md | 18 +++ .../application/chart-types/line/stacked-line.md | 45 .../zh/application/chart-types/line/step-line.md | 38 ++ contents/zh/{cookbook => application}/connect.md | 0 .../zh/{cookbook => application}/cross-platform.md | 0 contents/zh/{cookbook => application}/down-play.md | 0 contents/zh/{cookbook => application}/downplay.md | 0 contents/zh/{cookbook => application}/mobile.md| 0 contents/zh/chart-types/line.md| 26 - contents/zh/chart-types/xxx.md | 0 contents/zh/posts.js | 79 +++-- 21 files changed, 330 insertions(+), 68 deletions(-) diff --git a/components/partials/Sidebar.vue b/components/partials/Sidebar.vue index fd1bed2..9e94e0a 100644 --- a/components/partials/Sidebar.vue +++ b/components/partials/Sidebar.vue @@ -8,14 +8,21 @@ class="bd-toc-link">{{ level0Post.title }} -{{ level1Post.title }} -{{ level2Post.title }} + + +{{ level3Post.title }} + + @@ -49,16 +56,13 @@ export default Vue.extend({ .bd-sidenav { margin-top: 5px; + margin-left: 10px; display: none; } - .bd-sidenav.level2 { -margin: 0 0 0 15px; - } - .bd-toc-link { font-weight: bold; - color: #444; + color: #222; } .nav { @@ -67,15 +71,30 @@ export default Vue.extend({ .nav-link { padding: 5px; -color: #666; +color: #444; } .level1 .nav-link { padding: 5px 0; } +.level2, .level3 { + margin-top: 0; +} + .level2 .nav-link { - color: #444; + color: #666; +} + +.level3 { + border-left: 1px solid #eee; + padding-left: 10px; + margin-left: 0; +} + +.level3 .nav-link { + margin: 2px 0; + color: #888; } .nav-link:hover { diff --git a/contents/zh/cookbook/aria.md b/contents/zh/application/aria.md similarity index 100% rename from contents/zh/cookbook/aria.md rename to contents/zh/application/aria.md diff --git a/contents/zh/chart-types/bar/bar-racing.md b/contents/zh/application/chart-types/bar/bar-race.md similarity index 100% rename from contents/zh/chart-types/bar/bar-racing.md rename to contents/zh/application/chart-types/bar/bar-race.md diff --git a/contents/zh/chart-types/bar/simple-bar.md b/contents/zh/application/chart-types/bar/basic-bar.md similarity index 100% rename from contents/zh/chart-types/bar/simple-bar.md rename to contents/zh/application/chart-types/bar/basic-bar.md diff --git a/contents/zh/chart-types/bar/polar-bar.md b/contents/zh/application/chart-types/bar/polar-bar.md similarity index 100% rename from contents/zh/chart-types/bar/polar-bar.md rename to contents/zh/application/chart-types/bar/polar-bar.md diff --git a/contents/zh/chart-types/bar/stacked-bar.md b/contents/zh/application/chart-types/bar/stacked-bar.md similarity index 100% rename from contents/zh/chart-types/bar/stacked-bar.md rename to contents/zh/application/chart-types/bar/stacked-bar.md diff --git a/contents/zh/chart-types/bar/visual-map.md b/contents/zh/application/chart-types/bar/visual-map.md similarity index 100% rename from contents/zh/chart-types/bar/visual-map.md rename to contents/zh/application/chart-types/bar/visual-map.md diff --git a/contents/zh/chart-types/bar/waterfall.md b/contents/zh/application/chart-types/bar/waterfall.md similarity index 100% rename from contents/zh/chart-types/bar/waterfall.md rename to contents/zh/application/chart-types/bar/waterfall.md diff --git a/contents/zh/application/chart-types/line/area-line.md b/contents/zh/application/chart-types/line/area-line.md new file mode
[incubator-echarts-handbook] branch wenli created (now 179be6e)
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a change to branch wenli in repository https://gitbox.apache.org/repos/asf/incubator-echarts-handbook.git. at 179be6e feat: support level 4 nav This branch includes the following new commits: new 179be6e feat: support level 4 nav The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] jiangtaixing edited a comment on issue #9448: 涟漪图-effectScatter-加上后cpu占用率从5%跳到38%左右,请问如何解决?
jiangtaixing edited a comment on issue #9448: URL: https://github.com/apache/incubator-echarts/issues/9448#issuecomment-645877283 将scatter改为effectScatter后,CPU由40%飙升至100%,请问有什么好的解决方案吗 观察过profile,使用effectScatter,由于需要渲染动画效果Function Call step无限循环,目前只能不用effectScatter。期待有更好的方案 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] jiangtaixing commented on issue #9448: 涟漪图-effectScatter-加上后cpu占用率从5%跳到38%左右,请问如何解决?
jiangtaixing commented on issue #9448: URL: https://github.com/apache/incubator-echarts/issues/9448#issuecomment-645877283 将scatter改为effectScatter后,CPU由40%飙升至100%,请问有什么好的解决方案吗 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] fsql commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
fsql commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645873865 > 建议把之前的 option 保留下来,params 里会有 seriesIndex 之类的可以判断出改哪里的数据。 按照dataIndex修改数据用哪个函数?文档里没找到 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts-doc] plainheart opened a new pull request #111: fix(gauge): added missing buttons in gauge example.
plainheart opened a new pull request #111: URL: https://github.com/apache/incubator-echarts-doc/pull/111 Added missing buttons in gauge examples. - https://echarts.apache.org/zh/option.html#series-gauge - https://echarts.apache.org/en/option.html#series-gauge Before ![image](https://user-images.githubusercontent.com/26999792/84998399-5cdbe080-b182-11ea-87d6-a8565720f9b5.png) After ![image](https://user-images.githubusercontent.com/26999792/84998462-72510a80-b182-11ea-8dca-0e9208d0c971.png) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] jst10 edited a comment on issue #12803: E2E tests with Protractor fails/hangs when echarts are included on page
jst10 edited a comment on issue #12803: URL: https://github.com/apache/incubator-echarts/issues/12803#issuecomment-645800205 In test is just simple navigation to the web-page and than the protractor action for getting text from the element in page (like this is in above example I provided). So breaking line in [test](https://github.com/jst10/echarts-e2e-example/blob/master/e2e/src/app.e2e-spec.ts) is [14](https://github.com/jst10/echarts-e2e-example/blob/master/e2e/src/app.e2e-spec.ts#L14), at this point protractor hangs. In case that I do not use echarts on my web [page](https://github.com/jst10/echarts-e2e-example/blob/master/src/app/app.component.ts) removing lines[ 34 and 35](https://github.com/jst10/echarts-e2e-example/blob/master/src/app/app.component.ts#L34), E2E test executes as it should. (with unresponsive protractor I have already meet in the past, back then the reason was not caught exceptions on the web-page, but this time there are no exceptions or anything strange in console output) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Ovilia commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
Ovilia commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645863927 建议把之前的 option 保留下来,params 里会有 seriesIndex 之类的可以判断出改哪里的数据。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] fsql edited a comment on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
fsql edited a comment on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645831401 > 统一由 `setOption` 处理了,如果有数据改变,就把改变的数据放在参数里。 ``` myChart.on("click", reloadTree); function reloadTree(params) { var addData = getTreeData(params.data.uid); if(param.data.children) { param.data.children.push(addData); }else{ param.data.children = [addData]; } myChart.setOption(); } function getTreeData(userId) { $.ajax(.); return data; } ``` params中没有返回其他节点数据,应该怎么写才能定位params在setOption()参数里的位置? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] fsql commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
fsql commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645831401 > 统一由 `setOption` 处理了,如果有数据改变,就把改变的数据放在参数里。 ` myChart.on("click", reloadTree); function reloadTree(params) { var addData = getTreeData(params.data.uid); if(param.data.children) { param.data.children.push(addData); }else{ param.data.children = [addData]; } myChart.setOption(); } function getTreeData(userId) { $.ajax(.); return data; } ` params中没有返回其他节点数据,应该怎么写才能定位params在setOption()参数里的位置? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] wangyv commented on a change in pull request #12821: feat(sankey): provide layout with unequal input and output paths
wangyv commented on a change in pull request #12821: URL: https://github.com/apache/incubator-echarts/pull/12821#discussion_r442018795 ## File path: src/chart/sankey/sankeyLayout.js ## @@ -28,6 +28,8 @@ export default function (ecModel, api, payload) { var nodeWidth = seriesModel.get('nodeWidth'); var nodeGap = seriesModel.get('nodeGap'); +var mode = seriesModel.get('mode') || 'normal'; Review comment: done @Ovilia This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] wangyv commented on a change in pull request #12821: feat(sankey): provide layout with unequal input and output paths
wangyv commented on a change in pull request #12821: URL: https://github.com/apache/incubator-echarts/pull/12821#discussion_r442018740 ## File path: src/chart/sankey/SankeyView.js ## @@ -61,38 +61,60 @@ function fadeInItem(item, opacityPath) { el.highlight && el.highlight(); } +function sum(array, cb, orient) { + var sum = 0; Review comment: done @Ovilia This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] stale[bot] commented on issue #8538: Uncaught TypeError: Cannot read property '0' of undefined
stale[bot] commented on issue #8538: URL: https://github.com/apache/incubator-echarts/issues/8538#issuecomment-645827993 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] pissang commented on a change in pull request #12484: feat: bar race
pissang commented on a change in pull request #12484: URL: https://github.com/apache/incubator-echarts/pull/12484#discussion_r442009191 ## File path: src/chart/helper/labelHelper.ts ## @@ -20,22 +20,27 @@ import {retrieveRawValue} from '../../data/helper/dataProvider'; import List from '../../data/List'; +import {ParsedValue} from '../../util/types'; /** * @return label string. Not null/undefined */ -export function getDefaultLabel(data: List, dataIndex: number): string { +export function getDefaultLabel( +data: List, +dataIndex: number, +interpolatedValues?: ParsedValue | ParsedValue[] +): string { const labelDims = data.mapDimensionsAll('defaultedLabel'); const len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1) if (len === 1) { -return retrieveRawValue(data, dataIndex, labelDims[0]); +return retrieveRawValue(data, dataIndex, labelDims[0], interpolatedValues); } Review comment: Perhaps it's more reasonable to be: ```js return interpolatedValues == null ? retrieveRawValue(data, dataIndex, labelDims[0]) : interpolatedValues ``` ## File path: src/scale/Ordinal.ts ## @@ -99,6 +103,23 @@ class OrdinalScale extends Scale { return; } +setCategorySortInfo(info: OrdinalSortInfo[]): void { +this._categorySortInfo = info; +} + Review comment: I can't find the general logic of sorting the categories when `realtimeSort` is not set. Did I miss it? ## File path: src/coord/cartesian/Grid.ts ## @@ -447,6 +462,36 @@ class Grid implements CoordinateSystemMaster { ); }); } + +// function sortCategory( +// data: List, Review comment: Remove the commented code if they are not used anymore ## File path: src/model/mixin/dataFormat.ts ## @@ -96,13 +99,14 @@ class DataFormatMixin { status?: DisplayState, dataType?: string, dimIndex?: number, -labelProp?: string +labelProp?: string, +interpolateValues?: ParsedValue | ParsedValue[] ): string { status = status || 'normal'; const data = this.getData(dataType); const itemModel = data.getItemModel(dataIndex); -const params = this.getDataParams(dataIndex, dataType); +const params = this.getDataParams(dataIndex, dataType, null, interpolateValues); if (dimIndex != null && (params.value instanceof Array)) { Review comment: I think it's better to modify the `params.value` after getDataParams instead of adding an extra parameter. Other properties may also have a chance to be modified in the future. ## File path: src/chart/bar/BarView.ts ## @@ -316,7 +423,84 @@ class BarView extends ChartView { } } -remove(ecModel?: GlobalModel): void { +_dataSort( +data: List, +map: ((idx: number) => number) +): OrdinalSortInfo[] { +type SortValueInfo = { +mappedValue: number, +ordinalNumber: OrdinalNumber, +beforeSortIndex: number +}; +const info: SortValueInfo[] = []; +data.each(idx => { +info.push({ +mappedValue: map(idx), +ordinalNumber: idx, +beforeSortIndex: null +}); +}); + +info.sort((a, b) => { +return b.mappedValue - a.mappedValue; +}); + +// Update beforeSortIndex +for (let i = 0; i < info.length; ++i) { +info[info[i].ordinalNumber].beforeSortIndex = i; +} +return info.map(item => { +return { Review comment: Use `zrUtil.map` instead of ES5 map ## File path: src/coord/cartesian/AxisModel.ts ## @@ -35,6 +36,10 @@ interface CartesianAxisOption extends AxisBaseOption { position?: CartesianAxisPosition; // Offset is for multiple axis on the same position. offset?: number; +sort?: boolean; +realtimeSort?: boolean; +sortSeriesIndex?: number; Review comment: Still not very show if it's better to put `sort` `realtimeSort` configuration on the series. Perhaps we can let developers do the decision. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Ovilia commented on a change in pull request #12821: feat(sankey): provide layout with unequal input and output paths
Ovilia commented on a change in pull request #12821: URL: https://github.com/apache/incubator-echarts/pull/12821#discussion_r442010563 ## File path: src/chart/sankey/sankeyLayout.js ## @@ -28,6 +28,8 @@ export default function (ecModel, api, payload) { var nodeWidth = seriesModel.get('nodeWidth'); var nodeGap = seriesModel.get('nodeGap'); +var mode = seriesModel.get('mode') || 'normal'; Review comment: You should probably set default mode in `SankeySeries.js` rather than using `|| 'normal'`. ## File path: src/chart/sankey/SankeyView.js ## @@ -61,38 +61,60 @@ function fadeInItem(item, opacityPath) { el.highlight && el.highlight(); } +function sum(array, cb, orient) { + var sum = 0; Review comment: Please use 4 spaces for indent. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Ovilia commented on issue #12820: Example cannot be downloaded
Ovilia commented on issue #12820: URL: https://github.com/apache/incubator-echarts/issues/12820#issuecomment-645818820 不支持哦 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] Ovilia commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
Ovilia commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645818236 统一由 `setOption` 处理了,如果有数据改变,就把改变的数据放在参数里。 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?
echarts-bot[bot] commented on issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645814089 Hi! We've received your issue and please be patient to get responded. The average response time is expected to be within one day for weekdays. In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to d...@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html). Have a nice day! This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] fsql opened a new issue #12822: 2.x中的refresh函数在4.x中改成什么了?
fsql opened a new issue #12822: URL: https://github.com/apache/incubator-echarts/issues/12822 ### Version 4.0.0 ### Steps to reproduce 在树形图中,想点击节点时通过on("click", clickFun)绑定点击事件,再由ajax加载子节点数据,但是返回的数据只有节点的数据,之前的refresh函数只改节点数据就可以,现在4.x版本中这个函数改为什么了? ### What is expected? · ### What is actually happening? · This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts-doc] branch live-example updated: example: add more UI config, support custom symbol upload
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch live-example in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git The following commit(s) were added to refs/heads/live-example by this push: new 1335a40 example: add more UI config, support custom symbol upload 1335a40 is described below commit 1335a408dd7ec785e26b2b196d083324380c2b4d Author: pissang AuthorDate: Thu Jun 18 14:42:07 2020 +0800 example: add more UI config, support custom symbol upload --- en/option/component/radar.md|4 - src/components/OptionControl.vue|5 +- src/controls/ControlIcon.vue| 108 +++ src/dep/flatten.js | 1175 +++ src/i18n.js |6 + tool/md2json.js |5 +- zh/option/component/angle-axis.md | 71 ++ zh/option/component/axis-common.md |2 +- zh/option/component/data-zoom-inside.md | 48 +- zh/option/component/data-zoom-slider.md | 51 +- zh/option/component/data-zoom.md| 21 +- zh/option/component/legend.md |4 + zh/option/component/radar.md| 54 +- zh/option/partial/symbol.md |4 +- zh/option/series/pie.md | 23 +- zh/option/series/radar.md | 18 +- 16 files changed, 1545 insertions(+), 54 deletions(-) diff --git a/en/option/component/radar.md b/en/option/component/radar.md index 540a3c3..9960c9a 100644 --- a/en/option/component/radar.md +++ b/en/option/component/radar.md @@ -53,10 +53,6 @@ formatter: function (value, indicator) { Distance between the indicator's name and axis. -## axisType(string) = 'value' -{{ use: partial-version(version = "4.5.0") }} -{{ use: partial-axis-type-content() }} - ## splitNumber(number) = 5 Segments of indicator axis. diff --git a/src/components/OptionControl.vue b/src/components/OptionControl.vue index 27ffd81..c6a85d8 100644 --- a/src/components/OptionControl.vue +++ b/src/components/OptionControl.vue @@ -19,6 +19,8 @@ import ControlPercent from '../controls/ControlPercent.vue'; import {store, changeOption} from '../store'; import ControlPercentVector from '../controls/ControlPercentVector.vue'; import ControlText from '../controls/ControlText.vue'; +import ControlIcon from '../controls/ControlIcon.vue'; + const uiComponentMap = { boolean: ControlBoolean, @@ -30,7 +32,8 @@ const uiComponentMap = { angle: ControlNumber, percent: ControlPercent, percentvector: ControlPercentVector, -text: ControlText +text: ControlText, +icon: ControlIcon }; const uiComponentDefault = { diff --git a/src/controls/ControlIcon.vue b/src/controls/ControlIcon.vue new file mode 100644 index 000..473a574 --- /dev/null +++ b/src/controls/ControlIcon.vue @@ -0,0 +1,108 @@ + + + +{{item}} + +{{$t('example.upload')}} + + + + + +import {flatten} from '../dep/flatten'; + +export function parseXML(svgStr) { +const parser = new DOMParser(); +const svg = parser.parseFromString(svgStr, 'text/xml'); +let svgNode = svg; +// Document node. If using $.get, doc node may be input. +if (svgNode.nodeType === 9) { +svgNode = svgNode.firstChild; +} +// nodeName of is also 'svg'. +while (svgNode.nodeName.toLowerCase() !== 'svg' || svgNode.nodeType !== 1) { +svgNode = svgNode.nextSibling; +} + +return svgNode; +} + +export default { + +props: ['value'], + +computed: { +optionsArr() { +return ['circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'] +}, +}, + +data() { +return { +innerValue: this.value +} +}, + +watch: { +value(val) { +this.innerValue = val; +} +}, + +methods: { +onValueChange() { +this.$emit('change', this.innerValue); +}, +chooseFile() { +const input = document.createElement('input'); +input.type = 'file'; +input.accept= '.jpg, .jpeg, .png, .svg' +input.addEventListener('change', (e) => { +const file = e.target.files[0]; +if (!file) { +return; +} +if (file.name.endsWith('.svg')) { +// read path +// Use image +const fileReader = new FileReader(); +fileReader.addEventListener('load', () => { +const svgStr = fileReader.result; +const svg = parseXML(svgStr); +try { +flatten(svg); +} +catch (e) { +console.error('Unexpected error happens when handling the SVG.'); +
[GitHub] [incubator-echarts] plainheart commented on pull request #12821: feat(sankey): provide layout with unequal input and output paths
plainheart commented on pull request #12821: URL: https://github.com/apache/incubator-echarts/pull/12821#issuecomment-645808212 @wangyv Thank you! We will review this feature later. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] wangyv commented on pull request #12821: feat(sankey): provide layout with unequal input and output paths
wangyv commented on pull request #12821: URL: https://github.com/apache/incubator-echarts/pull/12821#issuecomment-645802796 > If possible, could you please provide some screenshots for this PR to make this new feature more specific? done @plainheart ![screenshots](https://sf3-ttcdn-tos.pstatp.com/img/motor-img/a61293ac974f8e82863722436434bc21~noop.jpg) ![screenshots2](https://sf1-ttcdn-tos.pstatp.com/img/motor-img/26938ce912b41931af63ea201c9edbfa~noop.jpg) ![screenshots3](https://sf3-ttcdn-tos.pstatp.com/img/motor-img/629d5ab3dc1a062062c90238e26cf896~noop.jpg) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] jst10 edited a comment on issue #12803: E2E tests with Protractor fails/hangs when echarts are included on page
jst10 edited a comment on issue #12803: URL: https://github.com/apache/incubator-echarts/issues/12803#issuecomment-645800205 In test is just simple navigation to the web-page and than protractor action for getting text from the element in page (like this is in above example I provided). So breaking lines in [test](https://github.com/jst10/echarts-e2e-example/blob/master/e2e/src/app.e2e-spec.ts) is [14](https://github.com/jst10/echarts-e2e-example/blob/master/e2e/src/app.e2e-spec.ts#L14), at this point protractor hangs. In case that I do not use echarts on my web [page](https://github.com/jst10/echarts-e2e-example/blob/master/src/app/app.component.ts) removing lines[ 34 and 35](https://github.com/jst10/echarts-e2e-example/blob/master/src/app/app.component.ts#L34), E2E test executes as it should. (with unresponsive protractor I have already meet in the past, back then the reason was not caught exceptions on the web-page, but this time there are no exceptions or anything strange in console output) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [incubator-echarts] jst10 commented on issue #12803: E2E tests with Protractor fails/hangs when echarts are included on page
jst10 commented on issue #12803: URL: https://github.com/apache/incubator-echarts/issues/12803#issuecomment-645800205 In test is just simple navigation to the web-page and than protractor action for getting text from the element in page (like this is in above example I provided). So breaking lines in [test](https://github.com/jst10/echarts-e2e-example/blob/master/e2e/src/app.e2e-spec.ts) is [14](https://github.com/jst10/echarts-e2e-example/blob/master/e2e/src/app.e2e-spec.ts#L14), at this point protractor hangs. In case that I do not use echarts on my web [page](https://github.com/jst10/echarts-e2e-example/blob/master/src/app/app.component.ts) removing lines[ 34 and 35](https://github.com/jst10/echarts-e2e-example/blob/master/src/app/app.component.ts#L34), E2E test executes as it should. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts] branch feat-bar-race updated (fb138d4 -> 103c9f7)
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a change to branch feat-bar-race in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git. from fb138d4 test(bar-race): update bar race test add fbdb003 ts: fix es class usage for inheritance. add 750d604 ts: dataset change to ts. add de86b1a ts: export option add 103c9f7 Merge branch 'next' into feat-bar-race No new revisions were added by this update. Summary of changes: option.ts | 107 ++ src/chart/bar/PictorialBarSeries.ts | 2 + src/chart/graph/GraphSeries.ts| 2 +- src/chart/parallel/ParallelSeries.ts | 2 + src/component/dataZoom/InsideZoomModel.ts | 2 +- src/component/dataZoom/SliderZoomModel.ts | 2 +- src/component/dataset.ts | 49 ++-- src/component/timeline/SliderTimelineModel.ts | 2 +- src/coord/cartesian/GridModel.ts | 2 +- src/util/clazz.ts | 28 +-- src/util/types.ts | 2 +- 11 files changed, 164 insertions(+), 36 deletions(-) create mode 100644 option.ts - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[incubator-echarts] branch feat-bar-race updated (4d41640 -> fb138d4)
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a change to branch feat-bar-race in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git. from 4d41640 feat(bar-race): label formatter add fb138d4 test(bar-race): update bar race test No new revisions were added by this update. Summary of changes: test/bar-race.html | 323 - 1 file changed, 320 insertions(+), 3 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org