Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/user_manuals/images/multiple_graphs_nl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/user_manuals/user_nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ Actie:
- De data voor de locatie en parameter in de beschikbare periode wordt geladen
- De grafiek wordt getoond


**Let op(!)**

Wanneer u meer dan 2 parameters met een verschillende grootheid/eenheid heeft geselecteerd (hieronder hoogte [m], temperatuur [T] en geleidendheid [-]), worden er maximaal 2 direct getoond op uw scherm. Voor de overige grafieken scrolt u naar beneden met de scrollbar (zie 7 in onderstaande figuur)

![](images/multiple_graphs_nl.png "laden grafiek")

**Vervolgacties**: U kunt nu de onder andere:

- [Downloaden van de grafieken](#grafieken-downloaden)
Expand Down
2 changes: 1 addition & 1 deletion hydrodashboards/bokeh/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def include_header(i):
qualifier_ids,
) = self._fews_locators_from_indices(indices)
start_time = self.periods.history_start
end_time = self.periods.search_end
end_time = self.periods.now

result = self._fews_api.get_time_series(
filter_id=self.config.root_filter,
Expand Down
40 changes: 36 additions & 4 deletions hydrodashboards/bokeh/static/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,41 @@ input[type=checkbox]{
box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

#grafiek_upper >.bk-root > .bk > .bk > .bk.time_figure > .bk > .bk.bk-canvas-events > .bk > .bk-toolbar.bk-above {
display: flex;
flex-direction: row;
}

/* Scrollbar styling */
#grafiek_upper::-webkit-scrollbar {
width: 12px;
}

#grafiek_upper::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 12px;
}

#grafiek_upper::-webkit-scrollbar-thumb {
background-color: rgb(241, 105, 150);
border-radius: 12px;
border: 2px solid transparent;
background-clip: content-box;
}

#grafiek_upper::-webkit-scrollbar-thumb:hover {
background-color: rgb(220, 85, 130); /* Slightly darker on hover */
}

#grafiek_upper::-webkit-scrollbar-button {
background-color: rgb(241, 105, 150);
height: 14px;
width: 14px;
}

#grafiek_upper::-webkit-scrollbar-button:hover {
background-color: rgb(220, 85, 130);
}

#zoekgrafiek-bar{
background: #F8F9FA;
Expand All @@ -1259,10 +1294,7 @@ input[type=checkbox]{
box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

#grafiek_upper >.bk-root > .bk > .bk > .bk.time_figure > .bk > .bk.bk-canvas-events > .bk > .bk-toolbar.bk-above {
display: flex;
flex-direction: row;
}


#history > .bk-root > .bk > .bk > .bk.bk-btn-group > .bk.bk-btn.bk-btn-success{
background-color:#F16996;
Expand Down
9 changes: 7 additions & 2 deletions hydrodashboards/bokeh/widgets/search_period_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ def make_search_period(data, on_change):


def update_period(search_period, search_start, search_end):
search_period.children[0].value = search_start.strftime("%Y-%m-%d")
search_period.children[1].value = search_end.strftime("%Y-%m-%d")
if search_start < search_end:
try:
search_period.children[0].value = search_start.strftime("%Y-%m-%d")
search_period.children[1].value = search_end.strftime("%Y-%m-%d")
except ValueError:
search_period.children[1].value = search_end.strftime("%Y-%m-%d")
search_period.children[0].value = search_start.strftime("%Y-%m-%d")


def make_button(on_click=None):
Expand Down