lightweight-charts-python
lightweight-charts-python copied to clipboard
[BUG] Trendline not working properly
Expected Behavior
They should be drawing normally
Current Behaviour
When drawing trendlines or box similiar tools, they are being drawn in wrong way
Reproducible Example
import pandas as pd
weekly_df=pd.read_csv('weekly.csv',index_col='date')
start_date,end_date=[
"2024-08-19",
"2024-08-04"
]
start_value,end_value=[
4827.36,
0.0
]
from lightweight_charts import JupyterChart
chart = JupyterChart(height=450,width=1000,toolbox=False)
chart.set(weekly_df)
chart.trend_line(end_time=end_date,end_value=end_value,start_time=start_date,start_value=start_value,round=False)
chart.load()
Environment
- OS: Windows
- Library: Jupyter notebook7.4.0
possible fix - https://github.com/louisnw01/lightweight-charts-python/issues/498#issuecomment-2642779469