Files
lightweight-charts-python/examples/1_setting_data/setting_data.py
2023-05-10 20:45:23 +01:00

13 lines
271 B
Python

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