Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

feat(plugin-chart-echart): New Tree chart #1018

Merged
merged 35 commits into from
May 6, 2021

Conversation

mayurnewase
Copy link
Contributor

@mayurnewase mayurnewase commented Mar 22, 2021

🏆 Enhancements
Added new Echart's Tree chart
Couldn't find a suitable table in existing examples, so added my own.
Deployment: https://superset-ui-5zve2b551-superset.vercel.app/?path=/story/chart-plugins-plugin-chart-echarts-tree--tree
SS (controls are not updated)
Screenshot_2021-04-03  DEV  Explore - Electronics

Screenshot_2021-04-03  DEV  Explore - Electronics(1)

@mayurnewase mayurnewase requested a review from a team as a code owner March 22, 2021 15:40
@vercel
Copy link

vercel bot commented Mar 22, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/superset/superset-ui/D9aGdWRZ2xsMJ3131PQnMdKweCaf
✅ Preview: https://superset-ui-git-fork-mayurnewase-ui-echart-tree-superset.vercel.app

@mayurnewase mayurnewase changed the title feat(plugin-chart-echart): New Tree chart [WIP] feat(plugin-chart-echart): New Tree chart Mar 22, 2021
Copy link
Contributor

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for taking this on! A few comments (sorry if I barged in on a WIP that wasn't supposed to be reviewed yet).

plugins/plugin-chart-echarts/src/Tree/controlPanel.tsx Outdated Show resolved Hide resolved
plugins/plugin-chart-echarts/src/Tree/transformProps.ts Outdated Show resolved Hide resolved
plugins/plugin-chart-echarts/src/Tree/transformProps.ts Outdated Show resolved Hide resolved
plugins/plugin-chart-echarts/src/Tree/transformProps.ts Outdated Show resolved Hide resolved
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
@mayurnewase mayurnewase changed the title [WIP] feat(plugin-chart-echart): New Tree chart feat(plugin-chart-echart): New Tree chart Mar 30, 2021
@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #1018 (bdf9d8c) into master (f9dec07) will increase coverage by 0.43%.
The diff coverage is 85.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1018      +/-   ##
==========================================
+ Coverage   28.35%   28.78%   +0.43%     
==========================================
  Files         448      455       +7     
  Lines        9057     9126      +69     
  Branches     1423     1436      +13     
==========================================
+ Hits         2568     2627      +59     
- Misses       6289     6296       +7     
- Partials      200      203       +3     
Impacted Files Coverage Δ
...gins/plugin-chart-echarts/src/Tree/EchartsTree.tsx 0.00% <0.00%> (ø)
plugins/plugin-chart-echarts/src/Tree/index.ts 0.00% <0.00%> (ø)
...ins/plugin-chart-echarts/src/Tree/controlPanel.tsx 60.00% <60.00%> (ø)
...ns/plugin-chart-echarts/src/Tree/transformProps.ts 91.37% <91.37%> (ø)
...lugins/plugin-chart-echarts/src/Tree/buildQuery.ts 100.00% <100.00%> (ø)
plugins/plugin-chart-echarts/src/Tree/constants.ts 100.00% <100.00%> (ø)
plugins/plugin-chart-echarts/src/Tree/types.ts 100.00% <100.00%> (ø)
plugins/plugin-chart-echarts/src/BoxPlot/types.ts 0.00% <0.00%> (ø)
...lugins/plugin-chart-echarts/src/Pie/EchartsPie.tsx 0.00% <0.00%> (ø)
...ns/plugin-chart-echarts/src/Radar/EchartsRadar.tsx 0.00% <0.00%> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9dec07...bdf9d8c. Read the comment docs.

@mayurnewase mayurnewase requested a review from villebro March 30, 2021 14:34
@mayurnewase mayurnewase requested a review from suddjian April 15, 2021 17:31
@junlincc
Copy link
Contributor

junlincc commented May 5, 2021

@mayurnewase Hi Mayur, many thanks for the PR. it has been open for a long time, do you think it's ready to merge? I need help to get it to the other main repo for testing. @villebro

@villebro
Copy link
Contributor

villebro commented May 5, 2021

@mayurnewase I'm reviewing now; can you rebase to resolve the conflict?

Copy link
Contributor

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good - a minor change recommendation on the orientation control labels. Also, I was unable to get the radio buttons to work correctly despite nuking superset-ui, linking core and chart-controls etc. Probably just my env that doesn't work properly, but might be a good idea to double check that the control panel works correctly:
image

@mayurnewase
Copy link
Contributor Author

Radio button signature was updated in #1019

Copy link
Contributor

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for all the hard work on this awesome plugin! 🚀

@villebro villebro merged commit 77ddcce into apache-superset:master May 6, 2021
stephenLYZ pushed a commit to stephenLYZ/superset-ui that referenced this pull request May 6, 2021
* initial

* tests added,1 typing issue present

* remove log

* remove color

* remove duplicate tooltip

* Update plugins/plugin-chart-echarts/src/Tree/transformProps.ts

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* clean

* merge

* optional name column,more tests...

* bug fix

* remove unused imports

* lint

* bug fix

* tying fix

* clean,typing fix

* stories added

* optional metric control

* bigger thumbnail

* optional root node name

* storybokk updated

* children list seperated instead of mutating data,if root node not provided defaault it to node with most children

* remove logs,optimization needed

* find best node if root not provided,use seperate children list to avoid issues if column name is children

* remove unused import

* type fix

* Update transformProps.ts

* Update debugging.md

* better todo

* updated radio button with new signature

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
stephenLYZ added a commit to stephenLYZ/superset-ui that referenced this pull request May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants