Skip to content
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 Nightingale chart support for echarts pie chart #28597

Merged
merged 5 commits into from
May 28, 2024

Conversation

hexcafe
Copy link
Contributor

@hexcafe hexcafe commented May 20, 2024

SUMMARY

Add Nightingale Chart Support for Echarts Pie Chart

Echarts now supports Nightingale charts in pie charts, with two optional modes:

  1. radius: Uses the central angle to show the percentage of data and the radius to show data size.
  2. area: All sectors share the same central angle, with data size shown only through radiuses.

I have added a new option, 'ROSE TYPE,' to support this feature.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image
image

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot bot added the viz:charts:pie Related to the Pie chart label May 20, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@rusackas
Copy link
Member

Pretty cool! Are you aware of any feature-parity issues that would prevent a migration from the legacy rose chart to this? I'm always excited to deprecate/remove a legacy plugin in favor of a newer option :)

Also, would you mind adding this to the React Storybook entry? We're making a renewed effort to capture as many variants as possible there (interactive or static).

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @hexcafe. Could you also add a screenshot of a Nightingale chart to the Pie viz gallery examples and make sure the Pie chart appears if you search for Nightingale? This will allow people to discover the chart.

Right now we have 4 screenshots. I think you can remove the last 2 and add yours.

Screenshot 2024-05-21 at 08 44 10

@michael-s-molina
Copy link
Member

michael-s-molina commented May 21, 2024

Pretty cool! Are you aware of any feature-parity issues that would prevent a migration from the legacy rose chart to this? I'm always excited to deprecate/remove a legacy plugin in favor of a newer option :)

@rusackas I checked and the legacy plugin has no additional feature that would prevent us from migrating.

Screenshot 2024-05-21 at 08 54 38 Screenshot 2024-05-21 at 08 54 49


I added a card to the 5.0 project board to remove the legacy version.

@hexcafe
Copy link
Contributor Author

hexcafe commented May 21, 2024

@michael-s-molina Thanks! I have updated the metadata. Now, we can discover the chart by searching for "Nightingale".
image

@hexcafe
Copy link
Contributor Author

hexcafe commented May 21, 2024

@rusackas @michael-s-molina Should we upgrade to ECharts v5.5.0 soon? please take a look at #27341 , Thanks!

@hexcafe
Copy link
Contributor Author

hexcafe commented May 26, 2024

Hi @michael-s-molina ,

Sorry for the delay. I have fixed the type errors. I hope this PR can be merged soon.

Thank you!

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

@hexcafe Thank you for the feature and for addressing all comments!

@michael-s-molina michael-s-molina added the merge-if-green If approved and tests are green, please go ahead and merge it for me label May 28, 2024
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM2! Thank you for this! Approving CI to run, and will spin up a test environment just to give it one last test drive :)

@rusackas
Copy link
Member

/testenv up

Copy link
Contributor

@rusackas Ephemeral environment spinning up at http://34.216.33.80:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@rusackas
Copy link
Member

Works great! Thanks again!

@rusackas rusackas merged commit f9d2451 into apache:master May 28, 2024
31 checks passed
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

EnxDev pushed a commit to EnxDev/superset that referenced this pull request May 31, 2024
hexcafe added a commit to hexcafe/superset that referenced this pull request Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-if-green If approved and tests are green, please go ahead and merge it for me packages plugins size/L viz:charts:pie Related to the Pie chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants