From b62c692f0aca6aa63b6d07b7ab9210fe4db8ecd1 Mon Sep 17 00:00:00 2001 From: Elliott Rose Date: Tue, 25 Apr 2023 12:54:22 +0200 Subject: [PATCH] Update prob colorbar with updated width and height --- assets/style.css | 1 - data_handler.py | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/style.css b/assets/style.css index 1c1370c..0abc4cb 100644 --- a/assets/style.css +++ b/assets/style.css @@ -677,7 +677,6 @@ div.dropdown-menu.show { .info { padding: .15rem .15rem !important; - min-width: 24%; max-width: 79%; } diff --git a/data_handler.py b/data_handler.py index 01a07fe..3d4adc1 100644 --- a/data_handler.py +++ b/data_handler.py @@ -1485,15 +1485,15 @@ class ProbFigureHandler(object): for i, cls in enumerate(bounds)] indices = list(range(len(ctg))) colorbar = dl.Colorbar( - min=0, max=len(ctg)-1, + min=-.1, max=len(ctg)-.7, classes=indices, colorscale=colorscale, tickValues=indices, tickText=ctg, position='topleft', - width=250, - height=15, - style={ 'top': '65px' } + width = 330, + height=8, + style={ 'top': '65px','overflow':'hidden', 'white-space':'nowrap'} ) # Geojson rendering logic, must be JavaScript as it is executed in clientside. -- GitLab