-
Notifications
You must be signed in to change notification settings - Fork 913
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
[VisLib] Replace legend color palette with OUI color palette #4365
Merged
manasvinibs
merged 8 commits into
opensearch-project:main
from
joshuarrrr:feature/migrate-vislib-legend-colors-oui
Jul 18, 2023
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2e3df15
[VisLib] Replace legend color palette with OUI color palette
joshuarrrr 74287ca
update changelog
joshuarrrr 1f5f7b8
Update legend unit test
joshuarrrr 3f0bea9
Merge branch 'main' into feature/migrate-vislib-legend-colors-oui
joshuarrrr 90d8ffb
Merge branch 'main' into feature/migrate-vislib-legend-colors-oui
joshuarrrr 1782d1b
Merge branch 'main' into feature/migrate-vislib-legend-colors-oui
joshuarrrr 8fd5be5
Update hard-coded legend color values in functional tests
joshuarrrr 81b3580
Merge branch 'main' into feature/migrate-vislib-legend-colors-oui
joshuarrrr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,62 +34,3 @@ export interface LegendItem { | |
} | ||
|
||
export const CUSTOM_LEGEND_VIS_TYPES = ['heatmap', 'gauge']; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we also want to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, I'll add that - I think it renders the same. |
||
|
||
export const legendColors: string[] = [ | ||
'#3F6833', | ||
'#967302', | ||
'#2F575E', | ||
'#99440A', | ||
'#58140C', | ||
'#052B51', | ||
'#511749', | ||
'#3F2B5B', // 6 | ||
'#508642', | ||
'#CCA300', | ||
'#447EBC', | ||
'#C15C17', | ||
'#890F02', | ||
'#0A437C', | ||
'#6D1F62', | ||
'#584477', // 2 | ||
'#629E51', | ||
'#E5AC0E', | ||
'#64B0C8', | ||
'#E0752D', | ||
'#BF1B00', | ||
'#0A50A1', | ||
'#962D82', | ||
'#614D93', // 4 | ||
'#7EB26D', | ||
'#EAB839', | ||
'#6ED0E0', | ||
'#EF843C', | ||
'#E24D42', | ||
'#1F78C1', | ||
'#BA43A9', | ||
'#705DA0', // Normal | ||
'#9AC48A', | ||
'#F2C96D', | ||
'#65C5DB', | ||
'#F9934E', | ||
'#EA6460', | ||
'#5195CE', | ||
'#D683CE', | ||
'#806EB7', // 5 | ||
'#B7DBAB', | ||
'#F4D598', | ||
'#70DBED', | ||
'#F9BA8F', | ||
'#F29191', | ||
'#82B5D8', | ||
'#E5A8E2', | ||
'#AEA2E0', // 3 | ||
'#E0F9D7', | ||
'#FCEACA', | ||
'#CFFAFF', | ||
'#F9E2D2', | ||
'#FCE2DE', | ||
'#BADFF4', | ||
'#F9D9F9', | ||
'#DEDAF7', // 7 | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this 10 because that's the default size of oui palette?
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.
yep - see https://oui.opensearch.org/1.0/#/utilities/color-palettes