feat: Adds the ECharts Bubble chart#22107
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22107 +/- ##
==========================================
+ Coverage 66.65% 66.91% +0.26%
==========================================
Files 1841 1852 +11
Lines 70220 70316 +96
Branches 7670 7684 +14
==========================================
+ Hits 46804 47052 +248
+ Misses 21434 21268 -166
- Partials 1982 1996 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
didn't use echart's sanitize function, it removes line breaks.
villebro
left a comment
There was a problem hiding this comment.
First pass comments, looks great! One thing that I noticed is that the NVD3 plugin assumes truncation on the y-axis if the bounds aren't set. While I don't necessarily like the idea of defaulting to truncation (actually, I strongly oppose it), I was just wondering if we should do a migration that enables truncation for existing charts if the bounds are undefined?
agree, added migration. |
villebro
left a comment
There was a problem hiding this comment.
A few more things that came to mind. Also, one major issue: the chart is heavily padded:

I quickly verified that by adding left: 0, right: 0 to the grid seemed to widen it to the full width, although it went a few pixels over. So I think we need to reuse the getPadding util from the Timeseries chart to get the grid right.
ee9ac71 to
6d6c822
Compare
here series limit made sense as its inline with echart's options.(every bubble is separate series) |
|
@mayurnewase the |
I see, let me check. |
|
FYI @mayurnewase @zhaoyongjie , slightly related, I'm opening a PR today that will clean up deprecated limit control logic from superset-ui/core so we can remove those annoying deprecation warnings on chart data requests |
|
updated series limit to row limit, and added order control. @zhaoyongjie the
what do you think? |
|
Hi @mayurnewase. Thank you for this contribution. I would like to continue the work and see if we can ship this feature. To do that I can push to your PR if you give me the GitHub permission or I can close this PR, open my own and reference you as the original author. Which method do you prefer? |
|
Hey thanks for taking this up, I am ok with both methods. |
df22d86 to
adc4848
Compare
Thanks @mayurnewase. I'll rebase the PR and modify its scope a little bit to avoid introducing a breaking change. I'll move the migration script to its own PR, similar to #23973 and also keep the legacy plugin. The new scope will be to just add the ECharts Bubble chart which will allow us to merge this PR without the need to wait for a major version release. |
|
/testenv up |
|
@michael-s-molina Ephemeral environment spinning up at http://34.217.102.24:8080. Credentials are |
|
Thanks for the review @villebro!
Yes, let's tackle this in a follow-up as part of the harmonization and re-styling work. |
|
Ephemeral environment shutdown and build artifacts deleted. |
Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>




SUMMARY
Adds the ECharts Bubble chart.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Chart and data control panel:

Customize control panel

Tooltip:

TESTING INSTRUCTIONS
dataandcustomizesections.ADDITIONAL INFORMATION