Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] StreamLit Box, Trend line #498

Open
thirlec opened this issue Dec 11, 2024 · 1 comment
Open

[BUG] StreamLit Box, Trend line #498

thirlec opened this issue Dec 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thirlec
Copy link

thirlec commented Dec 11, 2024

Expected Behavior

When Using normally, my box appears at the right place. With this:

chart.box(start_time='2024-11-29 08:07:00', end_time='2024-11-29 08:09:00', start_value=20860, end_value=20870, fill_color='rgba(255, 0, 0, 0.3)', round= True)

I expect my box to start at 8:07 and end at 8:09.

This work when using the chart without Streamlit
Good

Current Behaviour

The box or trend line are at the far left and appears as a little vertical line
Bad

Reproducible Example

chart.box(start_time='2024-11-29 08:07:00', end_time='2024-11-29 08:09:00', start_value=20860, end_value=20870, fill_color='rgba(255, 0, 0, 0.3)', round= True)

The same list is use with:

This works
chart = Chart()
chart.set(df_nq)
chart.show(block=True)

This do not work:

chart = StreamlitChart(width=900, height=600)
chart.set(df_nq)
chart.load()

Environment

- OS:Mac os
- Library: 2.1
@thirlec thirlec added the bug Something isn't working label Dec 11, 2024
@datukai
Copy link

datukai commented Feb 7, 2025

Image
Changing it like this seems to solve the problem.Hope it helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants