-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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: add Echarts Graph chart #13111
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13111 +/- ##
==========================================
- Coverage 77.14% 76.92% -0.22%
==========================================
Files 865 865
Lines 44961 44980 +19
Branches 5415 5421 +6
==========================================
- Hits 34686 34603 -83
- Misses 10152 10254 +102
Partials 123 123
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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/migrations/versions/1412ec1e5a7b_legacy_force_directed_to_echart.py
Outdated
Show resolved
Hide resolved
…d_to_echart.py Co-authored-by: Jesse Yang <jesse.yang@airbnb.com>
@ktmud agreed. I wanted to add tooltips + |
Cool!!!, |
@mayurnewase Mayur, let's not worry about the tooltip for now. Could you get the check pass? thanks! |
Sorry didn't see superset-ui release. |
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.
Also getting this error on db upgrade:
File "/Users/jesse_yang/opt/anaconda3/envs/superset/lib/python3.7/site-packages/alembic/runtime/environment.py", line 846, in run_migrations
self.get_context().run_migrations(**kw)
File "/Users/jesse_yang/opt/anaconda3/envs/superset/lib/python3.7/site-packages/alembic/runtime/migration.py", line 522, in run_migrations
step.migration_fn(**kw)
File "/Users/jesse_yang/projects/incubator-superset/superset/migrations/versions/1412ec1e5a7b_legacy_force_directed_to_echart.py", line 64, in upgrade
del params["collapsed_fieldsets"]
KeyError: 'collapsed_fieldsets'
I tested by creating a new Force Directed graph, change the link length, save it, check out the PR, then run superset db upgrade
.
superset-frontend/cypress-base/cypress/integration/explore/visualizations/graph.test.js
Outdated
Show resolved
Hide resolved
superset/migrations/versions/1412ec1e5a7b_legacy_force_directed_to_echart.py
Show resolved
Hide resolved
Hi, @ktmud according to your suggestions for tooltip I have few changes ready locally, which can help adding tooltip to any new chart. let me know if this can work until this modal gets rewritten, I will clean them up for pr. Screencast.from.22-02-21.07.47.57.PM.IST.mp4 |
@mayurnewase Let's save it for another PR. Could you resolve the conflicts so we can merge this PR? |
Agreed on merging this PR. I have some thoughts about the tooltip (and related work) but have been pocketing the ideas for a later date. Sneak preview of things I'd like to bring up soon-ish: |
@rusackas Those are all great ideas! Would love to see them happen. |
@mayurnewase your lock file was still using I've pushed a new commit to your branch to fix this and update the migration script to always override other params even if cc @junlincc if you want to do a testing/product sign-off. |
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.
Approving as product sign-off.
This is really great, a million thanks for your contribution and collaborating with us! @mayurnewase
My only feedback is. let's remove the directed-force sample chart from the list. do you mind opening another PR? 🙏
It seems there are still It'd also be great replace |
@guhan |
@junlincc Existing sample chart should not break if you run |
Let's address the sample charts in a follow up PR |
SUMMARY
Replace legacy force directed chart with new graph echart
See pr apache-superset/superset-ui#918
ADDITIONAL INFORMATION