[GitHub] [echarts] 39488750 commented on issue #15587: 堆叠柱状图 数据量过大时 堆叠部分下沉为并列展示
39488750 commented on issue #15587: URL: https://github.com/apache/echarts/issues/15587#issuecomment-904374841 已解决 原因是加了 series内 large: 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 39488750 closed issue #15587: 堆叠柱状图 数据量过大时 堆叠部分下沉为并列展示
39488750 closed issue #15587: URL: https://github.com/apache/echarts/issues/15587 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] pissang commented on a change in pull request #15583: Fix: time axis overlapped labels
pissang commented on a change in pull request #15583: URL: https://github.com/apache/echarts/pull/15583#discussion_r694552205 ## File path: src/component/axis/AxisBuilder.ts ## @@ -347,6 +348,16 @@ const builders: Record<'axisLine' | 'axisTickLabel' | 'axisName', AxisElementsBu fixMinMaxLabelShow(axisModel, labelEls, ticksEls); buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection); + +const labelList = prepareLayoutList(labelEls.map(label => ({ +label, +priority: label.style.text?.includes('primary') ? 1 : 0, Review comment: `getTicks` method of `Time.ts` has a `level` property. It can be used as priority. And `labelEls` is created from the list of `getTicks`. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] pissang edited a comment on pull request #15583: Fix: time axis overlapped labels
pissang edited a comment on pull request #15583: URL: https://github.com/apache/echarts/pull/15583#issuecomment-904368882 @svedova Thanks! This change looks good to me and the result looks great! Perhaps we can limit this hiding overlap strategy to the time axis currently. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] pissang commented on pull request #15583: Fix: time axis overlapped labels
pissang commented on pull request #15583: URL: https://github.com/apache/echarts/pull/15583#issuecomment-904368882 @svedova Thanks! The change looks good to me. Perhaps we can limit this hiding overlap strategy to the time axis currently. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] yushouqing commented on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
yushouqing commented on issue #15103: URL: https://github.com/apache/echarts/issues/15103#issuecomment-904347599 i have the same issue. browser zoom changed will cause mouse position fault. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] Ovilia opened a new pull request #15589: fix(polar): wrong sector clockwise when previous data is 0 #15517
Ovilia opened a new pull request #15589: URL: https://github.com/apache/echarts/pull/15589 ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? Fix sector clockwise when previous data is 0. ### Fixed issues - #15517 ## Details ### Before: What was the problem? If old data is 0, the sector will be anti-clockwise. ### After: How is it fixed in this PR? If old data is 0, the sector will be clockwise. ## Misc - [ ] The API has been changed (apache/echarts-doc#xxx). - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs - test/bar-polar-basic.html ## Others ### Merging options - [ ] Please squash the commits into a single one when merge. ### Other information -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on pull request #15589: fix(polar): wrong sector clockwise when previous data is 0 #15517
echarts-bot[bot] commented on pull request #15589: URL: https://github.com/apache/echarts/pull/15589#issuecomment-904340833 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/echarts/wiki/How-to-make-a-pull-request). The pull request is marked to be `PR: author is committer` because you are a committer of this project. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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
[echarts] branch fix-polar updated: test(polar): update test case
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch fix-polar in repository https://gitbox.apache.org/repos/asf/echarts.git The following commit(s) were added to refs/heads/fix-polar by this push: new 29a1a27 test(polar): update test case 29a1a27 is described below commit 29a1a27c9e3c3d7eb14dce948e41a458f3f8184b Author: Ovilia AuthorDate: Tue Aug 24 13:46:45 2021 +0800 test(polar): update test case --- test/bar-polar-basic.html | 10 +++- test/line-animation.html | 62 --- 2 files changed, 9 insertions(+), 63 deletions(-) diff --git a/test/bar-polar-basic.html b/test/bar-polar-basic.html index 3dab721..aefe933 100644 --- a/test/bar-polar-basic.html +++ b/test/bar-polar-basic.html @@ -59,7 +59,7 @@ under the License. tooltip: {}, series: [{ type: 'bar', -data: [1, 2, 4, 3, 6, 5, 7], +data: [1, 2, 0, 3, 6, 5, 7], coordinateSystem: 'polar', itemStyle: { normal: { @@ -70,6 +70,14 @@ under the License. }] }); +setTimeout(function () { +chart.setOption({ +series: [{ +data: [1, 2, 4, 3, 6, 5, 7] +}] +}); +}); + chart.on('click', function (params) { console.log(params); }); diff --git a/test/line-animation.html b/test/line-animation.html index fd9cdec..011fd69 100644 --- a/test/line-animation.html +++ b/test/line-animation.html @@ -49,8 +49,6 @@ under the License. } - - CHANGE @@ -402,66 +400,6 @@ under the License. - - -require([ -'echarts' -], function (echarts) { -var chart = echarts.init(document.getElementById('main3'), null, { -renderer: 'svg' -}); -option = { -title: [ -{ -text: '0', -x: 'center', -top: '48%', -}, -], -polar: { -radius: ['65%', '80%'], -center: ['50%', '50%'], -}, -angleAxis: { -max: 100, -clockwise: true, -axisLine: { -show: true, -}, -}, -radiusAxis: { -type: 'category', -show: true, -}, -series: [ -{ -name: '', -type: 'bar', -roundCap: true, - -showBackground: true, -backgroundStyle: { -color: 'rgba(180, 180, 180, 0.2)', -}, -data: [0], -coordinateSystem: 'polar', -}, -], -animation: 0 -}; - -chart.setOption(option); - -setTimeout(function() { -option.series[0].data[0] = 30; -option.title[0].text = option.series[0].data[0]; -chart.setOption(option, true); -}, 0); - -}); - - - \ No newline at end of file - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[echarts] 01/01: fix(polar): wrong sector clockwise when previous data is 0 #15517
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch fix-polar in repository https://gitbox.apache.org/repos/asf/echarts.git commit 090efb2bd120dc0157478cdd8444f3f879152247 Author: Ovilia AuthorDate: Tue Aug 24 13:40:07 2021 +0800 fix(polar): wrong sector clockwise when previous data is 0 #15517 --- src/chart/bar/BarView.ts | 2 +- test/line-animation.html | 62 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/src/chart/bar/BarView.ts b/src/chart/bar/BarView.ts index e4be916..e790bbc 100644 --- a/src/chart/bar/BarView.ts +++ b/src/chart/bar/BarView.ts @@ -750,7 +750,7 @@ const elementCreator: { // direction. Notice that if clockwise is true (by default), the sector // will always draw clockwisely, no matter whether endAngle is greater // or less than startAngle. -const clockwise = layout.startAngle < layout.endAngle; +const clockwise = layout.startAngle <= layout.endAngle; const ShapeClass = (!isRadial && roundCap) ? Sausage : Sector; diff --git a/test/line-animation.html b/test/line-animation.html index 011fd69..fd9cdec 100644 --- a/test/line-animation.html +++ b/test/line-animation.html @@ -49,6 +49,8 @@ under the License. } + + CHANGE @@ -400,6 +402,66 @@ under the License. + + +require([ +'echarts' +], function (echarts) { +var chart = echarts.init(document.getElementById('main3'), null, { +renderer: 'svg' +}); +option = { +title: [ +{ +text: '0', +x: 'center', +top: '48%', +}, +], +polar: { +radius: ['65%', '80%'], +center: ['50%', '50%'], +}, +angleAxis: { +max: 100, +clockwise: true, +axisLine: { +show: true, +}, +}, +radiusAxis: { +type: 'category', +show: true, +}, +series: [ +{ +name: '', +type: 'bar', +roundCap: true, + +showBackground: true, +backgroundStyle: { +color: 'rgba(180, 180, 180, 0.2)', +}, +data: [0], +coordinateSystem: 'polar', +}, +], +animation: 0 +}; + +chart.setOption(option); + +setTimeout(function() { +option.series[0].data[0] = 30; +option.title[0].text = option.series[0].data[0]; +chart.setOption(option, true); +}, 0); + +}); + + + \ No newline at end of file - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[echarts] branch fix-polar created (now 090efb2)
This is an automated email from the ASF dual-hosted git repository. ovilia pushed a change to branch fix-polar in repository https://gitbox.apache.org/repos/asf/echarts.git. at 090efb2 fix(polar): wrong sector clockwise when previous data is 0 #15517 This branch includes the following new commits: new 090efb2 fix(polar): wrong sector clockwise when previous data is 0 #15517 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] [echarts] susiwen8 closed issue #15584: Custom tooltip with formatter option looks weird
susiwen8 closed issue #15584: URL: https://github.com/apache/echarts/issues/15584 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on issue #15587: 堆叠柱状图 数据量过大时 堆叠部分下沉为并列展示
echarts-bot[bot] commented on issue #15587: URL: https://github.com/apache/echarts/issues/15587#issuecomment-904335273 @39488750 Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz. *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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
[echarts] 01/01: Merge pull request #15588 from apache/fix/tooltip-offset
This is an automated email from the ASF dual-hosted git repository. sushuang pushed a commit to branch release in repository https://gitbox.apache.org/repos/asf/echarts.git commit d97f5bb93a7984cf46fcef1640f70dd78b845374 Merge: b362288 28f7c33 Author: sushuang AuthorDate: Tue Aug 24 13:22:21 2021 +0800 Merge pull request #15588 from apache/fix/tooltip-offset fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element. src/component/tooltip/TooltipHTMLContent.ts | 15 --- src/component/tooltip/TooltipRichContent.ts | 8 src/component/tooltip/TooltipView.ts| 16 3 files changed, 8 insertions(+), 31 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[echarts] branch release updated (b362288 -> d97f5bb)
This is an automated email from the ASF dual-hosted git repository. sushuang pushed a change to branch release in repository https://gitbox.apache.org/repos/asf/echarts.git. from b362288 Merge pull request #15582 from apache/release-dev add 28f7c33 fix(tooltip): 1) tweak the calculation of tooltip offset to make it look not so near to the target element. #14393 2) remove unnecessary `getOuterSize` method beacuse `getSize` is now using `offsetWidth/offsetHeight` that contains the `borderWidth`. new d97f5bb Merge pull request #15588 from apache/fix/tooltip-offset 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: src/component/tooltip/TooltipHTMLContent.ts | 15 --- src/component/tooltip/TooltipRichContent.ts | 8 src/component/tooltip/TooltipView.ts| 16 3 files changed, 8 insertions(+), 31 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on pull request #15588: fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element.
echarts-bot[bot] commented on pull request #15588: URL: https://github.com/apache/echarts/pull/15588#issuecomment-904331790 Congratulations! Your PR has been merged. Thanks for your contribution! 👍 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 100pah merged pull request #15588: fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element.
100pah merged pull request #15588: URL: https://github.com/apache/echarts/pull/15588 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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
[echarts] branch release updated (00fde3c -> b362288)
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a change to branch release in repository https://gitbox.apache.org/repos/asf/echarts.git. from 00fde3c Merge pull request #15084 from apache/release-dev add 29a1859 wip: refacting morphing in custom series add 1f7ade1 fix(custom): fix morph not work after refactor add 9019ed8 refact: fix single morphing add d6cb3b4 refact(custom): optimize morph transition add 1637ad8 :erge branch 'master' into enhance-morph add ae8d321 refact(custom): default to clone path add 4c43b64 fix(morph): handle path number don't match between morph groups add 0c8c9eb fix: rename splitPath to dividePath add fce0f18 fix(morph): fix null access add 41d149a feat(morph): add common shape dividers add e0be0f7 refact: use default path divider in zrender add 51387f5 fix(endLabel): endLabel should be displayed if show is true in other states #14441 add 8776a03 refactor(endLabel): use state loop in show checking add bb791dc refactor(endLabel): use seriesModel to get endLabel.show add 3dbb082 Merge pull request #15072 from apache/fix-endLabel add 4316b56 Merge branch 'master' into enhance-morph add 9d6f2ff fix(merge): fix some issues in merging add ccd4ed6 refact: move transition helpers to animation module add 2b844e7 refact: share common codes between animation modules add 3112145 feat: add universal transition feature add 7b86131 feat(ut): transition styles add 0710cd2 test(ut): add test case for transition treemap, sunburst add 01cca2d feat(ut): add disableMorphing. fade in new added elements add 262a96c fix(ut): fix stopAnimation is aborted in group traverse add cb7df68 test(ut): add map to bar transition case add 0b452f6 feat(ut): rename universalAnimation cfg to universalTransition add 27cf9cd feat(ut): support drilldown/up transition add e7ad096 refact(type): optimize event type add 5b7edb8 feat: introduce update lifecycle. make label layout registerable. add 472ba89 feat: universal transition between same series add 8601129 feat(ut): fix old element remove when transition to new add 18c8374 feat(ut): add transition between different symbol of scatters add 1800eb2 feat(ut): bake transform before old element is removed. add 2ed5644 test(ut): add more test case for universal transition add d49b9f6 feat(ut): optimize transition between line and others add f64f05b feat(ut): fix transitions when using dataset encode add 5a0fd32 feat(ut): better guess of animation key when groupBy is used. add 11365e8 feat(ut): support multiple series transition add fd0da45 feat(ut): fix wrong state after morph transition add ce25f1f Merge pull request #15125 from apache/release add 7c311c0 fix: pictorialBar display zero value error add 21836a3 Merge pull request #15132 from ssthouse/fix/pictorialBar-zero-value add 56323d2 fix(treemap): label.show=false will throw error add 5655026 fix(treemap): consider all state before get textEl add 2615b69 fix(tremap): just check text element existence add d7be617 fix(pie): change the default borderJoin to `round`, fix #15021. add ae053f2 Merge pull request #15145 from apache/fix/pie-default-border-join add d7c27ca fix(type): fix wrong type for PieSeries data and MapSeries data, resolves #15143. add 1054ea5 Merge pull request #15144 from apache/fix/data-item-types add 23c9355 Merge branch 'apache:master' into fix-treemap add 04bbaf7 chore: remove unused import add ad31471 Merge pull request #15141 from susiwen8/fix-treemap add 65b6455 fix(lines): fix lines can't be cleared by `chart.clear()`. - fix #4206 - fix #8225 - fix #8226 - fix #10828 - fix #13428 - fix #13725 add eb0c794 test(lines): add test case for clearing lines. add 757350c fix(lint): remove unused import `DISPLAY_STATES` in `LineView.ts` to resolves the maxlen lint error, brought by #15072. add cd3b7e6 Merge pull request #15088 from apache/fix-lines-clear add ad3c057 Merge remote-tracking branch 'origin/master' into enhance-morph add 3e6297c feat(ut): remove the old transition code in custom series add feb0656 feat(ut): keep the original transition working add 87e58b9 feat(ut): fix some null access bug. add c9f4853 feat(ut): support mulitple from/to in setOption transition add 8dd75b2 feat(ut): handle setOption transition in ut module. add 8ece4d4 fix unexpected inner import from exports add 63a0b16 feat(ut): fade in other elements that has no animation add 659ae01 fix(ut): fix some null access issue add 9217b0b feat(ut): disable universal transition on large data. add 4689903 refact(ut): move old series save to ut module. add 2e9f617 feat(ut): add divideSh
[echarts] 01/01: Merge pull request #15582 from apache/release-dev
This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch release in repository https://gitbox.apache.org/repos/asf/echarts.git commit b36228822458176899aafe71d6ab197d1b29bccb Merge: 00fde3c 78d20e1 Author: Yi Shen AuthorDate: Tue Aug 24 12:56:34 2021 +0800 Merge pull request #15582 from apache/release-dev Create release for 5.2.0 .github/stale.yml |2 +- .gitignore |2 + CONTRIBUTING.md| 16 +- README.md |8 +- build/pre-publish.js |4 +- .../types/event.ts => build/template/features.d.ts | 24 +- test/types/event.ts => build/template/features.js | 24 +- package-lock.json | 218 +- package.json |8 +- src/animation/basicTrasition.ts| 337 +++ src/animation/morphTransitionHelper.ts | 265 ++ src/animation/universalTransition.ts | 681 + src/chart/bar/BarSeries.ts | 17 +- src/chart/bar/BarView.ts | 164 +- src/chart/bar/BaseBarSeries.ts | 10 +- src/chart/bar/PictorialBarView.ts | 35 +- src/chart/boxplot/BoxplotView.ts | 10 +- src/chart/candlestick/CandlestickSeries.ts |4 +- src/chart/candlestick/CandlestickView.ts | 11 +- src/chart/candlestick/candlestickLayout.ts | 61 +- src/chart/custom/CustomSeries.ts | 432 +++ src/chart/custom/CustomView.ts | 1648 src/chart/custom/install.ts| 2770 +--- src/chart/custom/prepare.ts| 353 +++ src/chart/effectScatter/EffectScatterSeries.ts | 19 +- src/chart/funnel/FunnelSeries.ts | 11 +- src/chart/funnel/FunnelView.ts | 15 +- src/chart/funnel/funnelLayout.ts |6 +- src/chart/gauge/GaugeSeries.ts | 17 +- src/chart/gauge/GaugeView.ts | 33 +- src/chart/graph/GraphSeries.ts | 14 +- src/chart/graph/GraphView.ts |4 +- src/chart/graph/circularLayoutHelper.ts|4 +- src/chart/heatmap/HeatmapSeries.ts |8 +- src/chart/helper/EffectLine.ts | 14 +- src/chart/helper/EffectPolyline.ts |4 +- src/chart/helper/EffectSymbol.ts | 45 +- src/chart/helper/LargeLineDraw.ts |4 +- src/chart/helper/LargeSymbolDraw.ts| 12 +- src/chart/helper/Line.ts | 28 +- src/chart/helper/LineDraw.ts | 10 +- src/chart/helper/Polyline.ts | 12 +- src/chart/helper/Symbol.ts | 38 +- src/chart/helper/SymbolDraw.ts | 32 +- src/chart/helper/createGraphFromNodeEdge.ts| 23 +- ...{createListFromArray.ts => createSeriesData.ts} | 147 +- ...eateListSimply.ts => createSeriesDataSimply.ts} | 20 +- src/chart/helper/labelHelper.ts| 12 +- src/chart/helper/pieHelper.ts |5 +- src/chart/helper/whiskerBoxCommon.ts | 17 +- src/chart/line/LineSeries.ts | 15 +- src/chart/line/LineView.ts | 63 +- src/chart/line/helper.ts |6 +- src/chart/line/lineAnimationDiff.ts|6 +- src/chart/lines/LinesSeries.ts |5 +- src/chart/lines/LinesView.ts | 13 +- src/chart/lines/linesVisual.ts |6 +- src/chart/map/MapSeries.ts | 14 +- src/chart/map/mapDataStatistic.ts |4 +- src/chart/map/mapSymbolLayout.ts |1 - src/chart/parallel/ParallelSeries.ts |8 +- src/chart/parallel/ParallelView.ts | 13 +- src/chart/pie/PieSeries.ts | 32 +- src/chart/pie/PieView.ts | 33 +- src/chart/pie/install.ts |2 + src/chart/pie/labelLayout.ts | 22 +- src/chart/pie/pieLayout.ts | 49 +- src/chart/radar/RadarSeries.ts | 14 +- src/chart/radar/RadarView.ts | 26 +- src/chart/sankey/SankeySeries.ts | 10 +- src/chart/sankey/SankeyView.ts |6 +- src/chart/scatter/ScatterSeries.ts | 14 +- src/chart/scatter/ScatterView.ts |4 +- src/chart/sunburst/SunburstPiece.ts
[GitHub] [echarts] echarts-bot[bot] commented on pull request #15582: Create release for 5.2.0
echarts-bot[bot] commented on pull request #15582: URL: https://github.com/apache/echarts/pull/15582#issuecomment-904322177 Congratulations! Your PR has been merged. Thanks for your contribution! 👍 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] pissang merged pull request #15582: Create release for 5.2.0
pissang merged pull request #15582: URL: https://github.com/apache/echarts/pull/15582 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] plainheart commented on pull request #15588: fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element.
plainheart commented on pull request #15588: URL: https://github.com/apache/echarts/pull/15588#issuecomment-904321145 Yes. Because it seems too near to the element currently. But the second change is optional. I just think it is no longer necessary. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] pissang commented on pull request #15588: fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element.
pissang commented on pull request #15588: URL: https://github.com/apache/echarts/pull/15588#issuecomment-904319355 Is it planned to be included in this version? -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] liuyuan22 commented on issue #15584: Custom tooltip with formatter option looks weird
liuyuan22 commented on issue #15584: URL: https://github.com/apache/echarts/issues/15584#issuecomment-904295322 > Since ECharts supports the pure HTML string in the formatter, if it contains HTML tags or any other special characters and you hope to display them originally, please manually escape it first. Refer to these comments in #14434 and #14429 for the detailed discussion. > > To make it simpler, you could use the provided built-in util `echarts.format.encodeHTML`. Thanks! Now I get it~ -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on pull request #15588: fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element.
echarts-bot[bot] commented on pull request #15588: URL: https://github.com/apache/echarts/pull/15588#issuecomment-904286632 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/echarts/wiki/How-to-make-a-pull-request). The pull request is marked to be `PR: author is committer` because you are a committer of this project. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] plainheart opened a new pull request #15588: fix(tooltip): tweak the calculation of tooltip offset to make it look not so near to the target element.
plainheart opened a new pull request #15588: URL: https://github.com/apache/echarts/pull/15588 ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? 1) tweak the calculation of tooltip offset to make it look not so near to the target element. Appreciated it if there is a better solution. 2) remove unnecessary `getOuterSize` method beacuse `getSize` is now using `offsetWidth/offsetHeight` that contains the `borderWidth`. (Please ensure it has no side effect) ### Fixed issues - #14393 ## Details ### Before: What was the problem? ### After: How is it fixed in this PR? ## Misc - [ ] The API has been changed (apache/echarts-doc#xxx). - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs Please refer to `scatter.html` or `new-tooltip.html` ## Others ### Merging options - [ ] Please squash the commits into a single one when merge. ### Other information -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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
[echarts] 01/01: fix(tooltip): 1) tweak the calculation of tooltip offset to make it look not so near to the target element. #14393 2) remove unnecessary `getOuterSize` method beacuse `getSize` is now
This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch fix/tooltip-offset in repository https://gitbox.apache.org/repos/asf/echarts.git commit 28f7c332e7bfc3034586d62880a050201a06b8da Author: plainheart AuthorDate: Tue Aug 24 10:58:02 2021 +0800 fix(tooltip): 1) tweak the calculation of tooltip offset to make it look not so near to the target element. #14393 2) remove unnecessary `getOuterSize` method beacuse `getSize` is now using `offsetWidth/offsetHeight` that contains the `borderWidth`. --- src/component/tooltip/TooltipHTMLContent.ts | 15 --- src/component/tooltip/TooltipRichContent.ts | 8 src/component/tooltip/TooltipView.ts| 16 3 files changed, 8 insertions(+), 31 deletions(-) diff --git a/src/component/tooltip/TooltipHTMLContent.ts b/src/component/tooltip/TooltipHTMLContent.ts index d6e85c1..3e060cb 100644 --- a/src/component/tooltip/TooltipHTMLContent.ts +++ b/src/component/tooltip/TooltipHTMLContent.ts @@ -519,21 +519,6 @@ class TooltipHTMLContent { this.el.parentNode.removeChild(this.el); } -getOuterSize() { -let width = this.el.clientWidth; -let height = this.el.clientHeight; - -// Consider browser compatibility. -// IE8 does not support getComputedStyle. -const stl = getComputedStyle(this.el); -if (stl) { -width += parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10); -height += parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10); -} - -return {width: width, height: height}; -} - } export default TooltipHTMLContent; diff --git a/src/component/tooltip/TooltipRichContent.ts b/src/component/tooltip/TooltipRichContent.ts index 59cb944..57ed68e 100644 --- a/src/component/tooltip/TooltipRichContent.ts +++ b/src/component/tooltip/TooltipRichContent.ts @@ -205,14 +205,6 @@ class TooltipRichContent { return this._show; } -getOuterSize() { -const size = this.getSize(); -return { -width: size[0], -height: size[1] -}; -} - dispose() { this._zr.remove(this.el); } diff --git a/src/component/tooltip/TooltipView.ts b/src/component/tooltip/TooltipView.ts index c2688f6..8589254 100644 --- a/src/component/tooltip/TooltipView.ts +++ b/src/component/tooltip/TooltipView.ts @@ -905,7 +905,7 @@ class TooltipView extends ComponentView { // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element else if (zrUtil.isString(positionExpr) && el) { const pos = calcTooltipPosition( -positionExpr, rect, contentSize, tooltipModel.get('borderWidth'), +positionExpr, rect, contentSize, tooltipModel.get('borderWidth') ); x = pos[0]; y = pos[1]; @@ -1067,9 +1067,9 @@ function refixTooltipPosition( viewWidth: number, viewHeight: number, gapH: number, gapV: number ) { -const size = content.getOuterSize(); -const width = size.width; -const height = size.height; +const size = content.getSize(); +const width = size[0]; +const height = size[1]; if (gapH != null) { // Add extra 2 pixels for this case: @@ -1100,9 +1100,9 @@ function confineTooltipPosition( viewWidth: number, viewHeight: number ): [number, number] { -const size = content.getOuterSize(); -const width = size.width; -const height = size.height; +const size = content.getSize(); +const width = size[0]; +const height = size[1]; x = Math.min(x + width, viewWidth) - width; y = Math.min(y + height, viewHeight) - height; @@ -1120,7 +1120,7 @@ function calcTooltipPosition( ): [number, number] { const domWidth = contentSize[0]; const domHeight = contentSize[1]; -const offset = Math.max(Math.ceil(Math.sqrt(2 * borderWidth * borderWidth)), 5); +const offset = Math.ceil(Math.SQRT2 * borderWidth) + 8; let x = 0; let y = 0; const rectWidth = rect.width; - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[echarts] branch fix/tooltip-offset created (now 28f7c33)
This is an automated email from the ASF dual-hosted git repository. wangzx pushed a change to branch fix/tooltip-offset in repository https://gitbox.apache.org/repos/asf/echarts.git. at 28f7c33 fix(tooltip): 1) tweak the calculation of tooltip offset to make it look not so near to the target element. #14393 2) remove unnecessary `getOuterSize` method beacuse `getSize` is now using `offsetWidth/offsetHeight` that contains the `borderWidth`. This branch includes the following new commits: new 28f7c33 fix(tooltip): 1) tweak the calculation of tooltip offset to make it look not so near to the target element. #14393 2) remove unnecessary `getOuterSize` method beacuse `getSize` is now using `offsetWidth/offsetHeight` that contains the `borderWidth`. 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] [echarts] echarts-bot[bot] commented on issue #15587: 堆叠柱状图 数据量过大时 堆叠部分下沉为并列展示
echarts-bot[bot] commented on issue #15587: URL: https://github.com/apache/echarts/issues/15587#issuecomment-904280354 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 39488750 opened a new issue #15587: 堆叠柱状图 数据量过大时 堆叠部分下沉为并列展示
39488750 opened a new issue #15587: URL: https://github.com/apache/echarts/issues/15587 ### Version 5.1.2 ### Steps to reproduce 三组数据的堆叠柱 当数据大于一定阈值 中间组堆叠柱下沉和底层组堆叠柱并列展示 ### What is expected? 堆叠柱状图应该不下沉为并列展示 ### What is actually happening? 本地:总720柱,超过300柱 堆叠效果失效 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] dignfei commented on issue #14583: 折线图使用visualMap时颜色错乱,颜色错位
dignfei commented on issue #14583: URL: https://github.com/apache/echarts/issues/14583#issuecomment-904278747 麻烦大神关注一下,这个问题影响非常大 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] closed issue #15586: 堆叠柱状图 数据过大时 柱下沉不堆叠
echarts-bot[bot] closed issue #15586: URL: https://github.com/apache/echarts/issues/15586 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 39488750 opened a new issue #15586: 堆叠柱状图 数据过大时 柱下沉不堆叠
39488750 opened a new issue #15586: URL: https://github.com/apache/echarts/issues/15586 数据超过300左右柱 堆叠柱状图就不堆叠了 setOptions({ toolbox: { top: 5, right: 42, itemSize: 12, feature: { dataZoom: { show: false }, saveAsImage: { show: false } }, iconStyle: { borderColor: '#7C92A6' } }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, grid: { left: 50, right: 50, bottom: 45 }, dataZoom: [ { type: 'slider', showDetail: false, borderColor: '#fff', fillerColor: 'rgba(57, 133, 191, 0.1)', showDataShadow: false } ], xAxis: { offset: 11, data: data.categoryData, silent: false, splitLine: { show: false }, splitArea: { show: false }, axisLine: { show: false, lineStyle: { color: '#99' } }, axisTick: { show: false } }, yAxis: [ { min: 0, max: max, name: '讨论量 (文章数)', splitLine: { show: false }, nameTextStyle: { color: '#99' }, axisLine: { lineStyle: { color: '#99' } } }, { type: 'value', name: '负面占比 (%)', min: 0, max: 100, interval: 25, axisLabel: { formatter: '{value}' }, splitLine: { show: true, lineStyle: { type: 'dashed', color: '#E9E9E9' } }, nameTextStyle: { color: '#99' }, axisLine: { lineStyle: { color: '#99' } } } ], // @ts-ignore series: [ // @ts-ignore { name: '负面占比 (%)', type: 'line', symbol: 'none', stack: 'total', yAxisIndex: 1, data: data.valueData.map(() => { return 30; }), lineStyle: { color: '#F28955', type: 'dotted', width: 1.5 } }, { name: '负面', type: 'bar', data: data.valueData, stack: 'total', large: true, barWidth: 3, emphasis: { focus: 'series' }, itemStyle: { color: '#F28955', borderRadius: [2, 2, 0, 0] }, markPoint: { data: [ { symbol: 'circle', symbolSize: 14, name: '某个坐标', coord: [0, (data.valueData[0] as number) * 3.5], value: 22, itemStyle: { color: '#F28955' }, label: { fontSize: 8, color: '#fff' } }, { symbol: 'circle', symbolSize: 14, name: '某个坐标', coord: [1, (data.valueData[1] as number) * 3.5], value: 22, itemStyle: { color: '#F28955' }, label: { fontSize: 8, color: '#fff' } } ] } }, { name: '中性', type: 'bar', data: data.valueData,
[GitHub] [echarts] echarts-bot[bot] commented on issue #15586: 堆叠柱状图 数据过大时 柱下沉不堆叠
echarts-bot[bot] commented on issue #15586: URL: https://github.com/apache/echarts/issues/15586#issuecomment-904274346 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] plainheart edited a comment on issue #15584: Custom tooltip with formatter option looks weird
plainheart edited a comment on issue #15584: URL: https://github.com/apache/echarts/issues/15584#issuecomment-904231231 Since ECharts supports the pure HTML string in the formatter, if it contains HTML tags or any other special characters and you hope to display them originally, please manually escape it first. Refer to these comments in #14434 and #14429 for the detailed discussion. To make it simpler, you could use the provided built-in util `echarts.format.encodeHTML`. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] plainheart commented on issue #15584: Custom tooltip with formatter option looks weird
plainheart commented on issue #15584: URL: https://github.com/apache/echarts/issues/15584#issuecomment-904231231 Since ECharts supports the pure HTML string in the formatter, if it contains HTML tags or any other special characters and you hope to display them originally, please manually escape it first. Refer to these comments in #14434 and #14429 for the detailed disscusion. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] Rushan4eg commented on issue #15585: Add feature show/hide Series
Rushan4eg commented on issue #15585: URL: https://github.com/apache/echarts/issues/15585#issuecomment-904168016 Hey! In our case, we are providing dataset and encode to multiple series and we need to be able to show/hide specific series, but keep all hidden series configurations, parameters, encode etc. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] NiantongDong commented on issue #15558: Display negative value in Logarithmic axis
NiantongDong commented on issue #15558: URL: https://github.com/apache/echarts/issues/15558#issuecomment-904022244 What I want to do is to use the log1p y-axis to represent the certain stock return rate. The rate may be negative and keep going down. If I use type 'log' in echarts, it will not show any value less than 0. If I use type 'value', the graph is incorrect. The idea is that the rate is calculated by Math.log1p(x) and the y-axis value should also be calculated Math.exp(y) so that it can show the correct plot for each value. Here is an example graph I generated using Juptyer and matplotlib. ![download](https://user-images.githubusercontent.com/34298280/130501060-8533352a-31cc-4f3e-81e3-b736d9e3e9f9.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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] shishiranshuman closed issue #15549: Line charts visualization issues after upgrading to v5.x
shishiranshuman closed issue #15549: URL: https://github.com/apache/echarts/issues/15549 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 100pah commented on issue #15558: Display negative value in Logarithmic axis
100pah commented on issue #15558: URL: https://github.com/apache/echarts/issues/15558#issuecomment-904007638 What the graph like do you expect when the value is negative on logarithmic axis? -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 100pah commented on issue #15564: 一份主题文件如何定制不同图表line、bar、pie的主题(比如 legend)
100pah commented on issue #15564: URL: https://github.com/apache/echarts/issues/15564#issuecomment-904006280 可以做多份 theme , pie 、line 等不同图用不同的 theme -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on issue #15579: Null values with category-based Y-axis don't render correctly
echarts-bot[bot] commented on issue #15579: URL: https://github.com/apache/echarts/issues/15579#issuecomment-903976166 This issue is labeled with `priority: high`, which means it's a frequently asked problem and we will fix it ASAP. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] 100pah commented on issue #15585: Add feature show/hide Series
100pah commented on issue #15585: URL: https://github.com/apache/echarts/issues/15585#issuecomment-903973191 If the original requirement is: > We need to hide or disable those charts with no data. If there is no data, the series will not be displayed automatically. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] gehringf edited a comment on issue #12319: RoundCap for stacked BarChart
gehringf edited a comment on issue #12319: URL: https://github.com/apache/echarts/issues/12319#issuecomment-903871104 It's also not perfect if the top most series only makes up a couple of pixels in height. A mask for the whole stack/bar would be helpful. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] gehringf commented on issue #12319: RoundCap for stacked BarChart
gehringf commented on issue #12319: URL: https://github.com/apache/echarts/issues/12319#issuecomment-903871104 It's also not perfect if the top most series onlymakesup a couple of pixels in height. A mask for the whole stack/bar would be helpful. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] susiwen8 commented on issue #15584: Custom tooltip with formatter option looks weird
susiwen8 commented on issue #15584: URL: https://github.com/apache/echarts/issues/15584#issuecomment-903865365 https://user-images.githubusercontent.com/20318608/130472315-2e4f47ef-64bf-4c70-8c74-8d054a6a2f03.png";> Workaround ```js tooltip: { show: true, trigger: 'axis', formatter: () => '6
[GitHub] [echarts] Rushan4eg opened a new issue #15585: Add feature show/hide Series
Rushan4eg opened a new issue #15585: URL: https://github.com/apache/echarts/issues/15585 ### What problem does this feature solve? There are mutiple charts on the page, however, some of them have no data. We need to hide or disable those charts with no data. ### What does the proposed API look like? Would be extremely useful to have in options.series to hide or show specific series `WITH series.visible = true/false`. For example, we have 5 series, but we don't want to show one of them. ``` option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, series: [{ data: [150, 230, 224, 218, 135, 147, 260], visible: false, type: 'line' }] }; ``` Also, would be useful to have option to hide series if there is no data in the series. `series.displayWhenNoData= true/false` Waiting and ready to help! -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on issue #15585: Add feature show/hide Series
echarts-bot[bot] commented on issue #15585: URL: https://github.com/apache/echarts/issues/15585#issuecomment-903705262 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 it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so. *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. 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 question. If you are interested in the project, you may also subscribe to our [mailing 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] svedova commented on pull request #15583: Fix: time axis overlapped labels
svedova commented on pull request #15583: URL: https://github.com/apache/echarts/pull/15583#issuecomment-903652734 @pissang can you please review this MR and tell me if it's in the right direction? -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on issue #15584: Custom tooltip with formatter option looks weird
echarts-bot[bot] commented on issue #15584: URL: https://github.com/apache/echarts/issues/15584#issuecomment-903649030 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 it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so. *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. 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 question. If you are interested in the project, you may also subscribe to our [mailing 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] liuyuan22 opened a new issue #15584: Custom tooltip with formatter option looks weird
liuyuan22 opened a new issue #15584: URL: https://github.com/apache/echarts/issues/15584 ### Version 4.8.0 ### Reproduction link [https://www.makeapie.com/editor.html?c=xq137jH_Ko](https://www.makeapie.com/editor.html?c=xq137jH_Ko) ### Steps to reproduce 1. open https://www.makeapie.com/editor.html?c=xq137jH_Ko 2. move your cursor into the chart, then you will see the tooltip ### What is expected? The tooltip content should be ```6 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] svedova commented on a change in pull request #15583: Fix: time axis overlapped labels
svedova commented on a change in pull request #15583: URL: https://github.com/apache/echarts/pull/15583#discussion_r693857203 ## File path: src/component/axis/AxisBuilder.ts ## @@ -347,6 +348,16 @@ const builders: Record<'axisLine' | 'axisTickLabel' | 'axisName', AxisElementsBu fixMinMaxLabelShow(axisModel, labelEls, ticksEls); buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection); + +const labelList = prepareLayoutList(labelEls.map(label => ({ +label, +priority: label.style.text?.includes('primary') ? 1 : 0, Review comment: @pissang I was not able to understand how to generate the priorities here so I did something very dirty to see if this works or not. Seems to be working but what is the proper way to assign the priority to the label? I think this should be done somewhere in https://github.com/apache/echarts/blob/master/src/scale/Time.ts as this method is used by many charts, if not all. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] svedova opened a new pull request #15583: Fix: time axis overlapped labels
svedova opened a new pull request #15583: URL: https://github.com/apache/echarts/pull/15583 ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? This PR fixes the overlapping labels in the Time Axis. ### Fixed issues - https://github.com/apache/echarts/issues/14266 ## Details | Before | After | | --- | - | | https://user-images.githubusercontent.com/3321893/130433229-1d947bfe-57b3-40cb-8160-807d2a3db1e7.png";> | https://user-images.githubusercontent.com/3321893/130433254-1e44f5f0-98a1-4583-8733-e4b3abcd075c.png";> | ## Misc - [ ] The API has been changed (apache/echarts-doc#xxx). - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs NA. ## Others ### Merging options - [x] Please squash the commits into a single one when merge. ### Other information -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on pull request #15583: Fix: time axis overlapped labels
echarts-bot[bot] commented on pull request #15583: URL: https://github.com/apache/echarts/pull/15583#issuecomment-903646431 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/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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] susiwen8 closed pull request #15261: fix(markpoint): value didn't show when coord specified
susiwen8 closed pull request #15261: URL: https://github.com/apache/echarts/pull/15261 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] susiwen8 closed pull request #15211: chore(stack): remove stack only same sign
susiwen8 closed pull request #15211: URL: https://github.com/apache/echarts/pull/15211 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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
[echarts-handbook] branch gh-pages updated (0ddfa49 -> 4267cf7)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch gh-pages in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git. discard 0ddfa49 Deploying to gh-pages from @ apache/echarts-handbook@af33fefec3705e9205e1eb341c05a0d9ffe570f4 🚀 new 4267cf7 Deploying to gh-pages from @ apache/echarts-handbook@b28a39e78cb7be4728f3aaa054ef2e186a81f904 🚀 This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (0ddfa49) \ N -- N -- N refs/heads/gh-pages (4267cf7) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. 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: docs/200.html | 8 +++--- docs/_nuxt/50be1ff.js | 1 + docs/_nuxt/6e18985.js | 1 - docs/_nuxt/content/db-987afd1d.json| 1 + docs/_nuxt/content/db-fd5d137d.json| 1 - docs/_nuxt/css/{cff74c8.css => 30b7288.css}| 2 +- docs/_nuxt/css/{331c0cf.css => dbe5ff0.css}| 2 +- docs/_nuxt/js/143ef9b36df56e384d86.js | 1 + ...1d2c8d149365e0eb.js => 2ebd77f26d13b3a33bbd.js} | 2 +- docs/_nuxt/js/5bbdc9610878564981f6.js | 1 + docs/_nuxt/js/c92fdaafd1d284223ca0.js | 1 - docs/_nuxt/js/eb7795a682aca6e977bd.js | 1 - .../chart-types/bar/bar-race/index.html| 33 ++ .../chart-types/bar/basic-bar/index.html | 6 ++-- .../chart-types/bar/stacked-bar/index.html | 6 ++-- .../chart-types/bar/waterfall/index.html | 18 .../chart-types/line/area-line/index.html | 6 ++-- .../chart-types/line/basic-line/index.html | 6 ++-- .../chart-types/line/smooth-line/index.html| 6 ++-- .../chart-types/line/stacked-line/index.html | 6 ++-- .../chart-types/line/step-line/index.html | 6 ++-- .../chart-types/pie/basic-pie/index.html | 6 ++-- .../chart-types/pie/doughnut/index.html| 6 ++-- .../en/application/chart-types/pie/rose/index.html | 6 ++-- .../chart-types/scatter/basic-scatter/index.html | 6 ++-- .../application/cross-platform/server/index.html | 6 ++-- docs/en/application/data/dynamic-data/index.html | 6 ++-- docs/en/application/interaction/drag/index.html| 6 ++-- docs/en/application/label/rich-text/index.html | 6 ++-- docs/en/basics/download/index.html | 6 ++-- docs/en/basics/help/index.html | 6 ++-- docs/en/basics/import/index.html | 6 ++-- docs/en/basics/inspiration/index.html | 6 ++-- docs/en/basics/release-note/v5-feature/index.html | 6 ++-- .../release-note/v5-upgrade-guide/index.html | 6 ++-- docs/en/best-practice/aria/index.html | 6 ++-- docs/en/best-practice/canvas-vs-svg/index.html | 6 ++-- docs/en/concepts/axis/index.html | 6 ++-- docs/en/concepts/chart-size/index.html | 6 ++-- docs/en/concepts/data-transform/index.html | 6 ++-- docs/en/concepts/dataset/index.html| 6 ++-- docs/en/concepts/event/index.html | 6 ++-- docs/en/concepts/legend/index.html | 6 ++-- docs/en/concepts/style/index.html | 6 ++-- docs/en/concepts/visual-map/index.html | 6 ++-- docs/en/get-started/index.html | 6 ++-- docs/en/index.html | 4 +-- docs/en/meta/edit-guide/index.html | 6 ++-- docs/index.html| 4 +-- .../chart-types/bar/bar-race/index.html| 33 ++ .../chart-types/bar/basic-bar/index.html | 6 ++-- .../chart-types/bar/stacked-bar/index.html | 6 ++-- .../chart-types/bar/waterfall/index.html | 18 .../chart-types/line/area-line/index.html | 6 ++-- .../chart-types/line/basic-line/index.html | 6 ++-- .../chart-types/line/smooth-line/index.html| 6 ++-- .../chart-types/line/stacked-line/index.html | 6 ++-- .../chart-types/line/step-line/index.html | 6 ++-- .../chart-typ
[echarts-handbook] 01/02: add bar-race doc
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/echarts-handbook.git commit 300222785bacf7e286289c4e247fbad2fbea5ef8 Author: Ovilia AuthorDate: Mon Aug 23 16:53:15 2021 +0800 add bar-race doc --- components/helper/contributors.ts | 41 ++- components/partials/Contributors.vue | 1 + .../en/application/chart-types/bar/bar-race.md | 79 - contents/en/posts.yml | 1 - .../zh/application/chart-types/bar/bar-race.md | 80 +- contents/zh/posts.yml | 1 - layouts/default.vue| 8 +-- 7 files changed, 182 insertions(+), 29 deletions(-) diff --git a/components/helper/contributors.ts b/components/helper/contributors.ts index c50393b..9c45c7d 100644 --- a/components/helper/contributors.ts +++ b/components/helper/contributors.ts @@ -1,4 +1,21 @@ export default { +"contents/zh/meta/edit-guide.md": [ +"pissang" +], +"contents/zh/get-started.md": [ +"Ovilia", +"pissang" +], +"contents/zh/concepts/visual-map.md": [ +"Ovilia", +"pissang" +], +"contents/zh/concepts/tooltip.md": [ +"Ovilia" +], +"contents/zh/concepts/style.md": [ +"pissang" +], "contents/zh/concepts/series.md": [ "Ovilia" ], @@ -334,6 +351,9 @@ export default { "contents/en/basics/release-note/v5-feature.md": [ "pissang" ], +"contents/en/basics/release-note/5-2-0.md": [ +"pissang" +], "contents/en/basics/inspiration.md": [ "pissang" ], @@ -420,27 +440,6 @@ export default { "contents/.prettierrc": [ "pissang" ], -"contents/zh/concepts/visual-map.md": [ -"Ovilia", -"pissang" -], -"contents/zh/meta/edit-guide.md": [ -"pissang" -], -"contents/zh/get-started.md": [ -"Ovilia", -"pissang" -], -"contents/zh/concepts/tooltip.md": [ -"Ovilia" -], -"contents/zh/concepts/style.md": [ -"pissang" -], -"contents/zh/meta/writing.md": [ -"Ovilia", -"pissang" -], "contents/zh/posts.yml": [ "pissang" ] diff --git a/components/partials/Contributors.vue b/components/partials/Contributors.vue index 40a53ad..dde6d23 100644 --- a/components/partials/Contributors.vue +++ b/components/partials/Contributors.vue @@ -75,6 +75,7 @@ export default defineComponent({ margin-bottom: 50px; padding-top: 10px; border-top: 1px solid #ddd; + @apply text-blue-gray-600; a { @apply text-blue-gray-500; diff --git a/contents/en/application/chart-types/bar/bar-race.md b/contents/en/application/chart-types/bar/bar-race.md index 58b4c3a..4951010 100755 --- a/contents/en/application/chart-types/bar/bar-race.md +++ b/contents/en/application/chart-types/bar/bar-race.md @@ -1,4 +1,81 @@ # Dynamic Sorting Bar Chart -Dynamic Sorting Bar Chart is a new function that recently added in ECharts 5.0. +## Related Options +Bar race is a chart that shows changes in the ranking of data over time and it is supported by default sinde ECharts 5. + +> Bar race charts usually use horizontal bars. If you want to use vertical bars, just take the X axis and Y axis in this tutorial to the opposite. + +1. Set `yAxis.realtimeSort` to be `true` to enable bar race +2. Set `yAxis.inverse` to be `true` to display longer bars at top +3. `yAxis.animationDuration` is suggested to be set to be `300` for bar reordering animation for the first time +4. `yAxis.animationDurationUpdate` is suggested to be set to be `300` for bar reordering animation for later times +5. Set `yAxis.max` to be *n - 1* where *n* is the number of bars to be displayed; otherwise, all bars are displayed +6. `xAxis.max` is suggested to be set to be `'dataMax'` so that the maximum of data is used as X maximum. +7. If realtime label changing is required, set `series.label.valueAnimation` to be `true` +8. Set `animationDuration` to be `0` so that the first animation doesn't start from 0; if you wish otherwise, set it to be the same value as `animationDurationUpdate` +9. `animationDurationUpdate` is suggested to be set to be `3000` for animation update duration, which should be the same as the frequency of calling `setOption` +10. Call `setOption` to update data to be of next time with `setInterval` at the frequency of `animationDurationUpdate` + +## Demo + +A complete demo: + +```js [live] +var data = []; +for (let i = 0; i < 5; ++i) { +data.push(Math.round(Math.random() * 200)); +} + +option = { +xAxis: { +max: 'dataMax', +}, +yAxis: { +type: 'category', +data: ['A', 'B', 'C', 'D', 'E'], +inverse: true, +animationDuration: 300, +animationDurationUpdat
[echarts-handbook] 02/02: add waterfall
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/echarts-handbook.git commit b28a39e78cb7be4728f3aaa054ef2e186a81f904 Author: Ovilia AuthorDate: Mon Aug 23 17:09:11 2021 +0800 add waterfall --- .../en/application/chart-types/bar/waterfall.md| 99 ++ contents/en/posts.yml | 1 - .../zh/application/chart-types/bar/waterfall.md| 99 ++ contents/zh/posts.yml | 3 +- 4 files changed, 199 insertions(+), 3 deletions(-) diff --git a/contents/en/application/chart-types/bar/waterfall.md b/contents/en/application/chart-types/bar/waterfall.md index e69de29..e806327 100755 --- a/contents/en/application/chart-types/bar/waterfall.md +++ b/contents/en/application/chart-types/bar/waterfall.md @@ -0,0 +1,99 @@ +# Waterfall + +There is no waterfall series in Apache ECharts, but we can simulate the effect using a stacked bar chart. + +Assuming that the values in the data array represent an increase or decrease from the previous value. + +```js +var data = [900, 345, 393, -108, -154, 135, 178, 286, -119, -361, -203]; +``` + +That is, the first data is `900` and the second data `345` represents the addition of `345` to `900`, etc. When presenting this data as a stepped waterfall chart, we can use three series: the first is a non-interactive transparent series to implement the suspension bar effect; the second series is used to represent positive numbers; and the second series is used to represent negative numbers. + +```js [live] +var data = [900, 345, 393, -108, -154, 135, 178, 286, -119, -361, -203]; +var help = []; +var positive = []; +var negative = []; +for (var i = 0, sum = 0; i < data.length; ++i) { + if (data[i] >= 0) { +positive.push(data[i]); +negative.push('-'); + } + else { +positive.push('-'); +negative.push(-data[i]); + } + + if (i === 0) { +help.push(0); + } + else { +sum += data[i - 1]; +if (data[i] < 0) { + help.push(sum + data[i]); +} +else { + help.push(sum); +} + } +} + +option = { + title: { +text: 'Waterfall' + }, + grid: { +left: '3%', +right: '4%', +bottom: '3%', +containLabel: true + }, + xAxis: { +type: 'category', +splitLine: {show:false}, +data: function (){ + var list = []; + for (var i = 1; i <= 11; i++) { +list.push('Oct/' + i); + } + return list; +}() + }, + yAxis: { +type : 'value' + }, + series: [ +{ + type: 'bar', + stack: 'all', + itemStyle: { +normal: { + barBorderColor: 'rgba(0,0,0,0)', + color: 'rgba(0,0,0,0)' +}, +emphasis: { + barBorderColor: 'rgba(0,0,0,0)', + color: 'rgba(0,0,0,0)' +} + }, + data: help +}, +{ + name: 'positive', + type: 'bar', + stack: 'all', + data: positive +}, +{ + name: 'negative', + type: 'bar', + stack: 'all', + data: negative, + itemStyle: { +color: '#f33' + } +} + ] +}; +``` diff --git a/contents/en/posts.yml b/contents/en/posts.yml index 63a3124..3e67478 100644 --- a/contents/en/posts.yml +++ b/contents/en/posts.yml @@ -72,7 +72,6 @@ draft: true - title: Waterfall dir: waterfall - draft: true - title: Line dir: line children: diff --git a/contents/zh/application/chart-types/bar/waterfall.md b/contents/zh/application/chart-types/bar/waterfall.md index e69de29..ce995be 100644 --- a/contents/zh/application/chart-types/bar/waterfall.md +++ b/contents/zh/application/chart-types/bar/waterfall.md @@ -0,0 +1,99 @@ +# 阶梯瀑布图 + +Apache ECharts 中并没有单独的瀑布图类型,但是我们可以使用堆叠的柱状图模拟该效果。 + +假设数据数组中的值是表示对前一个值的增减: + +```js +var data = [900, 345, 393, -108, -154, 135, 178, 286, -119, -361, -203]; +``` + +也就是第一个数据是 `900`,第二个数据 `345` 表示的是在 `900` 的基础上增加了 `345`……将这个数据展示为阶梯瀑布图时,我们可以使用三个系列:第一个是不可交互的透明系列,用来实现“悬空”的柱状图效果;第二个系列用来表示正数;第二个系列用来表示负数。 + +```js [live] +var data = [900, 345, 393, -108, -154, 135, 178, 286, -119, -361, -203]; +var help = []; +var positive = []; +var negative = []; +for (var i = 0, sum = 0; i < data.length; ++i) { + if (data[i] >= 0) { +positive.push(data[i]); +negative.push('-'); + } + else { +positive.push('-'); +negative.push(-data[i]); + } + + if (i === 0) { +help.push(0); + } + else { +sum += data[i - 1]; +if (data[i] < 0) { + help.push(sum + data[i]); +} +else { + help.push(sum); +} + } +} + +option = { + title: { +text: 'Waterfall' + }, + grid: { +left: '3%', +right: '4%', +bottom: '3%', +containLabel: true + }, + xAxis: { +type: 'category', +splitLine: {show:false}, +data: function (){ + var list = []; + for (var i = 1; i <= 11; i++) {
[echarts-handbook] branch master updated (af33fef -> b28a39e)
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/echarts-handbook.git. from af33fef fix echarts version. fix crawler of nav not shown. new 3002227 add bar-race doc new b28a39e add waterfall 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: components/helper/contributors.ts | 41 + components/partials/Contributors.vue | 1 + .../en/application/chart-types/bar/bar-race.md | 79 - .../en/application/chart-types/bar/waterfall.md| 99 ++ contents/en/posts.yml | 2 - .../zh/application/chart-types/bar/bar-race.md | 80 - .../zh/application/chart-types/bar/waterfall.md| 99 ++ contents/zh/posts.yml | 4 +- layouts/default.vue| 8 +- 9 files changed, 381 insertions(+), 32 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org
[GitHub] [echarts] Xqrrrr commented on issue #15567: legend:textStyle-padding invalid
Xq commented on issue #15567: URL: https://github.com/apache/echarts/issues/15567#issuecomment-903582824 > You may need to specify a valid [`backgroundColor`](https://echarts.apache.org/en/option.html#legend.textStyle.backgroundColor) to enable the text box. > > Here is the related logic: https://github.com/ecomfe/zrender/blob/master/src/graphic/Text.ts#L824 > > @pissang Is it by design that the text box won't be drawn if the developer doesn't specify the `backgroundColor`(null/undefined)? I don't know if it's the backgroundColor problem. The default value of backgroundColor is transparent, and the echarts 4 version can directly use padding . So I don't know what the problem is, But I used rich to solve my problem -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] echarts-bot[bot] commented on pull request #15582: Create release for 5.2.0
echarts-bot[bot] commented on pull request #15582: URL: https://github.com/apache/echarts/pull/15582#issuecomment-903507064 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/echarts/wiki/How-to-make-a-pull-request). The pull request is marked to be `PR: author is committer` because you are a committer of this project. -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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
[echarts] branch release-dev updated (34be25c -> 78d20e1)
This is an automated email from the ASF dual-hosted git repository. sushuang pushed a change to branch release-dev in repository https://gitbox.apache.org/repos/asf/echarts.git. from 34be25c release: 5.1.2 add 29a1859 wip: refacting morphing in custom series add 1f7ade1 fix(custom): fix morph not work after refactor add 9019ed8 refact: fix single morphing add d6cb3b4 refact(custom): optimize morph transition add 1637ad8 :erge branch 'master' into enhance-morph add ae8d321 refact(custom): default to clone path add 4c43b64 fix(morph): handle path number don't match between morph groups add 0c8c9eb fix: rename splitPath to dividePath add fce0f18 fix(morph): fix null access add 41d149a feat(morph): add common shape dividers add e0be0f7 refact: use default path divider in zrender add 51387f5 fix(endLabel): endLabel should be displayed if show is true in other states #14441 add 8776a03 refactor(endLabel): use state loop in show checking add bb791dc refactor(endLabel): use seriesModel to get endLabel.show add 3dbb082 Merge pull request #15072 from apache/fix-endLabel add 4316b56 Merge branch 'master' into enhance-morph add 9d6f2ff fix(merge): fix some issues in merging add ccd4ed6 refact: move transition helpers to animation module add 2b844e7 refact: share common codes between animation modules add 3112145 feat: add universal transition feature add 7b86131 feat(ut): transition styles add 0710cd2 test(ut): add test case for transition treemap, sunburst add 01cca2d feat(ut): add disableMorphing. fade in new added elements add 262a96c fix(ut): fix stopAnimation is aborted in group traverse add cb7df68 test(ut): add map to bar transition case add 0b452f6 feat(ut): rename universalAnimation cfg to universalTransition add 27cf9cd feat(ut): support drilldown/up transition add e7ad096 refact(type): optimize event type add 5b7edb8 feat: introduce update lifecycle. make label layout registerable. add 472ba89 feat: universal transition between same series add 8601129 feat(ut): fix old element remove when transition to new add 18c8374 feat(ut): add transition between different symbol of scatters add 1800eb2 feat(ut): bake transform before old element is removed. add 2ed5644 test(ut): add more test case for universal transition add d49b9f6 feat(ut): optimize transition between line and others add f64f05b feat(ut): fix transitions when using dataset encode add 5a0fd32 feat(ut): better guess of animation key when groupBy is used. add 11365e8 feat(ut): support multiple series transition add fd0da45 feat(ut): fix wrong state after morph transition add 00fde3c Merge pull request #15084 from apache/release-dev add ce25f1f Merge pull request #15125 from apache/release add 7c311c0 fix: pictorialBar display zero value error add 21836a3 Merge pull request #15132 from ssthouse/fix/pictorialBar-zero-value add 56323d2 fix(treemap): label.show=false will throw error add 5655026 fix(treemap): consider all state before get textEl add 2615b69 fix(tremap): just check text element existence add d7be617 fix(pie): change the default borderJoin to `round`, fix #15021. add ae053f2 Merge pull request #15145 from apache/fix/pie-default-border-join add d7c27ca fix(type): fix wrong type for PieSeries data and MapSeries data, resolves #15143. add 1054ea5 Merge pull request #15144 from apache/fix/data-item-types add 23c9355 Merge branch 'apache:master' into fix-treemap add 04bbaf7 chore: remove unused import add ad31471 Merge pull request #15141 from susiwen8/fix-treemap add 65b6455 fix(lines): fix lines can't be cleared by `chart.clear()`. - fix #4206 - fix #8225 - fix #8226 - fix #10828 - fix #13428 - fix #13725 add eb0c794 test(lines): add test case for clearing lines. add 757350c fix(lint): remove unused import `DISPLAY_STATES` in `LineView.ts` to resolves the maxlen lint error, brought by #15072. add cd3b7e6 Merge pull request #15088 from apache/fix-lines-clear add ad3c057 Merge remote-tracking branch 'origin/master' into enhance-morph add 3e6297c feat(ut): remove the old transition code in custom series add feb0656 feat(ut): keep the original transition working add 87e58b9 feat(ut): fix some null access bug. add c9f4853 feat(ut): support mulitple from/to in setOption transition add 8dd75b2 feat(ut): handle setOption transition in ut module. add 8ece4d4 fix unexpected inner import from exports add 63a0b16 feat(ut): fade in other elements that has no animation add 659ae01 fix(ut): fix some null access issue add 9217b0b feat(ut): disable universal transition on large data. add 4689903 refact(ut): move old series save to ut module.
[GitHub] [echarts] plainheart commented on issue #7606: “北京公交路线 - 百度地图”的Demo中的lines-bus.json坐标偏移,公交数据未加密?
plainheart commented on issue #7606: URL: https://github.com/apache/echarts/issues/7606#issuecomment-903501452 公交数据未做处理,仅作示例,实际使用需转为百度坐标系。 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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] [echarts] plainheart closed issue #7606: “北京公交路线 - 百度地图”的Demo中的lines-bus.json坐标偏移,公交数据未加密?
plainheart closed issue #7606: URL: https://github.com/apache/echarts/issues/7606 -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org 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