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

Replace hardcoded default colors with defaults in setupColors.js #8510

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Replace hardcoded default colors with defaults in setupColors.js #8510

merged 1 commit into from
Nov 7, 2019

Conversation

villebro
Copy link
Member

@villebro villebro commented Nov 5, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Currently the default colors for both categorical and sequential schemes are hardcoded in controls.js, which means that changing the default values in setupColors.js don't have any effect on the default color scheme. This PR changes controls.js to use the default scheme as defined in setupColors.js, and also sets the default key for sequentialSchemeRegistry (previously only hard coded in controls.js).

TEST PLAN

Tested locally by changing the default key in setupColors.js, and verifying that the default colors in a test dashboard reflected the change. If needed I can look into adding tests for this.

REVIEWERS

@etr2460 @mistercrunch @graceguo-supercat

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

makes sense, lgtm!

@villebro villebro merged commit 397e1e3 into apache:master Nov 7, 2019
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 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/XS 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants