Files
lightweight-charts-python/archive/examples/1_setting_data/setting_data.py
2024-10-04 12:04:55 +02:00

12 lines
243 B
Python

import pandas as pd
from lightweight_charts import Chart
if __name__ == '__main__':
chart = Chart()
# Columns: time | open | high | low | close | volume
df = pd.read_csv('ohlcv.csv')
chart.set(df)
chart.show(block=True)