Skip to content

Commit

Permalink
Merge pull request #316 from data-mermaid/nick/M595-update-bleaching-viz
Browse files Browse the repository at this point in the history
[M595] Update Bleaching chart legend and visualization
  • Loading branch information
saanobhaai authored Dec 5, 2023
2 parents b319227 + d2c8bc6 commit 7ff1715
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/constants/attribute-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ export const fishBeltAttributeColors = [

export const bleachingAttributeColors = [
{ name: 'Normal', color: '#3c6e99' },
{ name: 'Pale', color: '#a8bed5' },
{ name: 'Bleached & Recently Dead', color: '#B4B4B4' },
{ name: 'Pale', color: '#6288ad' },
{ name: 'Up to 20% Bleached', color: '#85a3c1' },
{ name: '20% - 50% Bleached', color: '#a8bed5' },
{ name: '50% - 80% Bleached', color: '#cbdaea' },
{ name: '80% - 100% Bleached', color: '#eff7ff' },
{ name: 'Recently Dead', color: '#B4B4B4' },
]

export const privateColorScale = [
Expand Down
6 changes: 5 additions & 1 deletion src/constants/sample-unit-information.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export const BLEACHING_PROPERTY_COLONIES_BLEACHED = 'colonies_bleached'
export const bleachingCategories = [
{ type: 'percent_normal_avg', name: 'Normal' },
{ type: 'percent_pale_avg', name: 'Pale' },
{ type: 'percent_bleached_avg', name: 'Bleached & Recently Dead' },
{ type: 'percent_20_avg', name: 'Up to 20% Bleached' },
{ type: 'percent_50_avg', name: '20% - 50% Bleached' },
{ type: 'percent_80_avg', name: '50% - 80% Bleached' },
{ type: 'percent_100_avg', name: '80% - 100% Bleached' },
{ type: 'percent_dead_avg', name: 'Recently Dead' },
]
export const chartContentProperties = {
[BENTHIC_LIT_SAMPLE_UNIT]: 'percent_cover_benthic_category_avg',
Expand Down

0 comments on commit 7ff1715

Please sign in to comment.