You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature] Add clip option for scatter, line, bar, lines, custom chart #11240
BTW, what the default value of the option clip for each series will be?
Probably for custom series, the default value should better be false,
otherwise, some current cases might be broken. And usually, the clipping
have to be processed case by case in custom series.
I'm cool with most of these. Just to be clarified, what happens to scatter items whose centroid is inside the grid but part of the circle is outside the grid area? I think (A) displaying the whole graphic and (B) displaying the part inside the grid both make sense. Would it be possible for a user to decide which policy to use?
@Ovilia
Which scenario the (B, displaying the part inside the grid) is needed for scatter and line chart?
I've thought about it for a while but can not find some cases that are reasonable enough.
For example, if I wish to keep my grid area clean and do not want anything to overflow from it, or if there is axis tick label on the left side and I don't want the circle to overflow from the grid to touch the axis label.
In this case, neither of the situations when the circle is on the top of the axis label or under it creates a satisfying result.
This is just one example. What I wish to say is that it is important (to provide the ability) to keep the series inside the grid area to avoid unexpected results.
Probably for custom series, the default value should better be false,
otherwise, some current cases might be broken. And usually, the clipping
have to be processed case by case in custom series
I think it's fine if custom series have its own default value.
I'm cool with most of these. Just to be clarified, what happens to scatter items whose centroid is inside the grid but part of the circle is outside the grid area? I think (A) displaying the whole graphic and (B) displaying the part inside the grid both make sense. Would it be possible for a user to decide which policy to use?
How can I decide which policy to use in Echarts version 4.9.0?
I see now all circle display as (A) solution. But, in my case, I expect display as (B) solution or ignore circles that have a part outside the grid.
@pissang I have to use ScatterGL to draw points due to the large dataset: ~300k points and deal with this issue.
Do you have any plans to support this feature?
For example, if I wish to keep my grid area clean and do not want anything to overflow from it, or if there is axis tick label on the left side and I don't want the circle to overflow from the grid to touch the axis label.
In this case, neither of the situations when the circle is on the top of the axis label or under it creates a satisfying result.
This is just one example. What I wish to say is that it is important (to provide the ability) to keep the series inside the grid area to avoid unexpected results.
Hi Olivia,
Is there anything new with this. I think it is really cool to provide flexibility for users. In my case, I am in the need of hiding the part of scatters outside the grid.
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
Activity
100pah commentedon Sep 16, 2019
Agree.
For the
I can give a bad case here:
BTW, what the default value of the option
clipfor each series will be?Probably for
custom series, the default value should better befalse,otherwise, some current cases might be broken. And usually, the clipping
have to be processed case by case in
custom series.Ovilia commentedon Sep 16, 2019
I'm cool with most of these. Just to be clarified, what happens to scatter items whose centroid is inside the grid but part of the circle is outside the grid area? I think (A) displaying the whole graphic and (B) displaying the part inside the grid both make sense. Would it be possible for a user to decide which policy to use?

100pah commentedon Sep 16, 2019
@Ovilia
Which scenario the (B, displaying the part inside the grid) is needed for
scatterandline chart?I've thought about it for a while but can not find some cases that are reasonable enough.
Ovilia commentedon Sep 16, 2019
For example, if I wish to keep my grid area clean and do not want anything to overflow from it, or if there is axis tick label on the left side and I don't want the circle to overflow from the grid to touch the axis label.

In this case, neither of the situations when the circle is on the top of the axis label or under it creates a satisfying result.
This is just one example. What I wish to say is that it is important (to provide the ability) to keep the series inside the grid area to avoid unexpected results.
pissang commentedon Sep 16, 2019
I think it's fine if custom series have its own default value.
100pah commentedon Sep 16, 2019
This case probably makes sense, especially when
dataZoomavailable and the symbols are too big or the labels are too long.pissang commentedon Sep 17, 2019
@100pah @Ovilia I found this issue #11010 (comment) about overflow in candlestick series.
I'm not sure if we need to clip the shape in this scenario
Ovilia commentedon Sep 18, 2019
I think it should absolutely be clipped without explicit configuration. Why asking?
ngoc308 commentedon Sep 17, 2020
How can I decide which policy to use in Echarts version 4.9.0?
I see now all circle display as (A) solution. But, in my case, I expect display as (B) solution or ignore circles that have a part outside the grid.
ngoc308 commentedon Sep 28, 2020
@pissang, @Ovilia please help to answer the above question. Thanks in advance.
pissang commentedon Sep 28, 2020
@ngoc308 Currently you can use
customseries to draw the bubble chart. It can be clipped as (B) does.ngoc308 commentedon Sep 28, 2020
@pissang I have to use ScatterGL to draw points due to the large dataset: ~300k points and deal with this issue.
Do you have any plans to support this feature?
ngoc308 commentedon Dec 7, 2020
@pissang , @Ovilia any updates for clipping the ScatterGL series?
nguyencuongabcxyz commentedon Mar 29, 2021
Hi Olivia,
Is there anything new with this. I think it is really cool to provide flexibility for users. In my case, I am in the need of hiding the part of scatters outside the grid.
github-actions commentedon Mar 29, 2023
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
github-actions commentedon Apr 5, 2023
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!