Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThodorisTsampouris authored Oct 23, 2024
2 parents c4164e0 + 14214a0 commit 209bfc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codintxt/m2t/streamlit.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main():
{{component.name}}_fig = go.Figure(go.Indicator(
mode="gauge+number",
value={{component.name}}_values[0],
title={'text': "{{ component.name }}", 'font': {'size': 24}} if not {{ component.hideTxt }} else None,
title={'text': "{{ component.label }}", 'font': {'size': 24}} if not {{ component.hideTxt }} else None,
gauge={
'axis': {'range': [{{ component.minValue }}, {{ component.maxValue }}]},
'bar': {'color': 'white'},
Expand All @@ -151,7 +151,7 @@ def main():
with columns{{row}}[{{component.position.c - 1}}]:
with {{component.name}}_placeholder.container():
if len({{component.name}}_values) > 0:
st.metric(label="{{component.attribute}}", value={{component.name}}_values[0])
st.metric(label="{{component.label}}", value={{component.name}}_values[0])
else:
continue
{% endif %}
Expand Down

0 comments on commit 209bfc9

Please sign in to comment.