New Feature: ChartAsync
- Added the ChartAsync class, allowing for more sophisticated Charts and SubCharts. - Symbol searching, timeframe selectors, and more is now possible with this varation of Chart. `QtChart` and `WxChart` have access to all the methods that `ChartAsync` has, however they utilize their own respective event loops rather than asyncio. New Feature: `StreamlitChart` - Chart window that can display static data within a Streamlit application. Removed the `subscribe_click` method.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 633 KiB |
@ -1,18 +0,0 @@
|
||||
import pandas as pd
|
||||
from lightweight_charts import Chart
|
||||
|
||||
|
||||
def on_click(bar: dict):
|
||||
print(f"Time: {bar['time']} | Close: {bar['close']}")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
chart = Chart()
|
||||
|
||||
df = pd.read_csv('ohlcv.csv')
|
||||
chart.set(df)
|
||||
|
||||
chart.subscribe_click(on_click)
|
||||
|
||||
chart.show(block=True)
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user