From 9a716701feaa718f65b385f6a7c6bbe07dbe85d1 Mon Sep 17 00:00:00 2001 From: "Carlos E. Ugarte" Date: Tue, 14 Jan 2025 10:13:48 -0500 Subject: [PATCH] WIP Improve the legend integration with multiple series #202 --- web-client/src/components/SrAppBar.vue | 2 +- .../src/components/SrAtl03ColorLegend.vue | 167 +++++++++++------- web-client/src/components/SrColorPalette.vue | 56 +----- web-client/src/components/SrScatterPlot.vue | 98 ++++++---- web-client/src/db/SlideRuleDb.ts | 4 +- web-client/src/types/SrTypes.ts | 18 +- web-client/src/utils/colorUtils.ts | 53 +++++- web-client/src/utils/plotUtils.ts | 4 +- 8 files changed, 243 insertions(+), 159 deletions(-) diff --git a/web-client/src/components/SrAppBar.vue b/web-client/src/components/SrAppBar.vue index abeb54b7..2d7e681b 100644 --- a/web-client/src/components/SrAppBar.vue +++ b/web-client/src/components/SrAppBar.vue @@ -103,7 +103,7 @@ const mobileMenu = ref | null>(null); const mobileMenuItems = [ { - label: 'Map', + label: 'Request', icon: 'pi pi-sliders-h', command: handleRequestButtonClick }, diff --git a/web-client/src/components/SrAtl03ColorLegend.vue b/web-client/src/components/SrAtl03ColorLegend.vue index ca512e30..d4343290 100644 --- a/web-client/src/components/SrAtl03ColorLegend.vue +++ b/web-client/src/components/SrAtl03ColorLegend.vue @@ -1,65 +1,114 @@ - - + + + .sr-legend-box { + padding: 0.3125rem; + border-radius: var(--p-border-radius); + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + } + + \ No newline at end of file diff --git a/web-client/src/components/SrColorPalette.vue b/web-client/src/components/SrColorPalette.vue index a4a604f3..a9b87e94 100644 --- a/web-client/src/components/SrColorPalette.vue +++ b/web-client/src/components/SrColorPalette.vue @@ -2,7 +2,7 @@

Select Your Color Palette

- +