-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adds the ECharts Bubble chart #22107
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 |
? `${params.data[3]} <sub>(${params.data[4]})</sub>` | ||
: params.data[3]; | ||
|
||
return `<p>${title}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't use echart's sanitize function, it removes line breaks.
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/index.ts
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Outdated
Show resolved
Hide resolved
agree, added migration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Outdated
Show resolved
Hide resolved
ee9ac71
to
6d6c822
Compare
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superset-frontend/plugins/plugin-chart-echarts/src/Bubble/constants.ts
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
Co-authored-by: Michael S. Molina <[email protected]>
SUMMARY
Adds the ECharts Bubble chart.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Chart and data control panel:
Customize control panel
Tooltip:
TESTING INSTRUCTIONS
data
andcustomize
sections.ADDITIONAL INFORMATION