This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch feat-pictorialBar-clip in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/feat-pictorialBar-clip by this push: new 0edce2a5f fix(pictorialBar): ignore clipping label 0edce2a5f is described below commit 0edce2a5f991e301810ec26345e07a2d24e1adc5 Author: Ovilia <zwl.s...@gmail.com> AuthorDate: Wed Nov 8 15:21:27 2023 +0800 fix(pictorialBar): ignore clipping label --- src/chart/bar/PictorialBarView.ts | 1 + test/pictorial-single.html | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/chart/bar/PictorialBarView.ts b/src/chart/bar/PictorialBarView.ts index 7f9779e7e..c9460daac 100644 --- a/src/chart/bar/PictorialBarView.ts +++ b/src/chart/bar/PictorialBarView.ts @@ -927,6 +927,7 @@ function updateCommon( const barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)]; const barRect = bar.__pictorialBarRect; + barRect.ignoreClip = true; setLabelStyle( barRect, getLabelStatesModels(itemModel), diff --git a/test/pictorial-single.html b/test/pictorial-single.html index 950ae1022..7bbacd546 100644 --- a/test/pictorial-single.html +++ b/test/pictorial-single.html @@ -461,7 +461,8 @@ under the License. }) }, yAxis: { - min: 10 + min: 10, + max: 'dataMax' }, series: [{ name: 'hill', @@ -476,6 +477,10 @@ under the License. opacity: 1 } }, + label: { + show: true, + position: 'top' + }, data: rawData.map(function (item) { return item.velocity; }), @@ -485,6 +490,7 @@ under the License. </script> + <script> var rawData = [ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org