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

fix(heatmap): add detail descriptions for heatmap 'normalize across' #20566

Merged
merged 6 commits into from
Jul 20, 2022

Conversation

stephenLYZ
Copy link
Member

@stephenLYZ stephenLYZ commented Jun 30, 2022

SUMMARY

Add detail desciptions for heatmap 'normalize across'

  • y -> percentage of the highest value in that row
  • x -> percentage of the highest value in that column
  • heatmap -> percentage of the highest value in the whole heatmap

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

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

@codecov
Copy link

codecov bot commented Jun 30, 2022

Codecov Report

Merging #20566 (5970dd5) into master (9c7bcfc) will not change coverage.
The diff coverage is n/a.

❗ Current head 5970dd5 differs from pull request most recent head 3e77dff. Consider uploading reports for the commit 3e77dff to get more accurate results

@@           Coverage Diff           @@
##           master   #20566   +/-   ##
=======================================
  Coverage   66.30%   66.30%           
=======================================
  Files        1756     1756           
  Lines       66735    66735           
  Branches     7049     7049           
=======================================
  Hits        44251    44251           
  Misses      20688    20688           
  Partials     1796     1796           
Flag Coverage Δ
javascript 51.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...s/legacy-plugin-chart-heatmap/src/controlPanel.tsx 57.14% <ø> (ø)

@@ -163,17 +164,34 @@ const config: ControlPanelConfig = {
name: 'normalize_across',
config: {
type: 'SelectControl',
label: t('Normalize Across'),
label: t('COLOR BASED ON'),

Choose a reason for hiding this comment

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

Any reason why having this with all upper case?

@yousoph
Copy link
Member

yousoph commented Jul 1, 2022

/testenv up

@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2022

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

@yousoph
Copy link
Member

yousoph commented Jul 1, 2022

image
the dropdown options don't look renamed in the ephemeral env

@stephenLYZ
Copy link
Member Author

@yousoph Yeah, the point I'm currently struggling with is that using like "percentage of the highest value in that row" as an option label is too long, can we simplify it? Or just re-label to "row" and add some tooltip.

@@ -163,17 +164,34 @@ const config: ControlPanelConfig = {
name: 'normalize_across',
config: {
type: 'SelectControl',
label: t('Normalize Across'),
label: t('Color based on'),
Copy link
Member

@rusackas rusackas Jul 6, 2022

Choose a reason for hiding this comment

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

I think I might be OK with "Normalize Across" now that we know it's actually doing normalization, mathematically

@stephenLYZ stephenLYZ changed the title fix(heatmap): rename 'Normalize Across' to 'Color Based On' and re-label fix(heatmap): add detail desciptions for heatmap 'normalize across' Jul 11, 2022
@stephenLYZ stephenLYZ changed the title fix(heatmap): add detail desciptions for heatmap 'normalize across' fix(heatmap): add detail descriptions for heatmap 'normalize across' Jul 12, 2022
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.

LGTM. This just needs a rebase to make codecov happy. @yousoph let me know if you agree on the assessment - I think this is clearer.

stephenLYZ and others added 6 commits July 20, 2022 21:00
…rolPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>
…rolPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>
…rolPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>
…rolPanel.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>
@rusackas rusackas merged commit d925b0c into apache:master Jul 20, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants