lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

[BUG] Trendline not working properly

Open luxlurer opened this issue 8 months ago • 1 comments

Expected Behavior

They should be drawing normally

Current Behaviour

When drawing trendlines or box similiar tools, they are being drawn in wrong way

Image

Reproducible Example

weekly.csv



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

luxlurer avatar Apr 28 '25 12:04 luxlurer

possible fix - https://github.com/louisnw01/lightweight-charts-python/issues/498#issuecomment-2642779469

qrlik avatar Jul 04 '25 10:07 qrlik