Updated charts for glucose data and profile chart
This commit is contained in:
@@ -6,7 +6,7 @@ import streamlit as st
|
||||
from auth import require_auth
|
||||
from nightscout_client import NightscoutConfigError
|
||||
from profile_data import segments_table, segments_to_hourly_bars, total_daily_basal
|
||||
from ui_common import get_colors, load_profile
|
||||
from ui_common import get_colors, hex_to_rgba, load_profile
|
||||
|
||||
st.set_page_config(page_title="Glucose dashboard — Insulineprofiel", page_icon="📊", layout="wide")
|
||||
require_auth()
|
||||
@@ -42,8 +42,8 @@ fig = go.Figure(
|
||||
mode="lines",
|
||||
line={"shape": "hv", "color": colors["basal"], "width": 2},
|
||||
fill="tozeroy",
|
||||
fillcolor=colors["basal"],
|
||||
opacity=0.7,
|
||||
fillcolor=hex_to_rgba(colors["basal"], 0.3),
|
||||
opacity=0.8,
|
||||
name="Basaal",
|
||||
hovertemplate="%{x:.0f}:00 · %{y:.2f} E/uur<extra></extra>",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user