You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows 11系统启动Lightweight Charts时出现黑屏问题

问题

我尝试解决该问题许久,但至今未获成功,且未在任何渠道找到解决方案。

所用代码
import pandas as pd
from lightweight_charts import Chart

if __name__ == '__main__':

    chart = Chart()
    df = pd.read_csv('ohlcv.csv')
    chart.set(df)
    chart.show(block=True)
ohlcv.csv 文件内容

表格形式

序号日期开盘价最高价最低价收盘价成交量
02010-06-291.26671.66671.16931.5927277519500.0
12010-06-301.67132.0281.55331.5887253039500.0
22010-07-011.66271.7281.35131.464121461000.0
32010-07-021.471.551.24731.2875871500.0
42010-07-061.28671.33331.05531.074101664000.0
52010-07-071.09331.10870.99871.0533102645000.0
62010-07-081.05671.17931.0381.164114526500.0
72010-07-091.181.19331.10331.1660061500.0
82010-07-121.15331.20471.12331.141332487000.0

纯文本CSV格式

,date,open,high,low,close,volume
0,2010-06-29,1.2667,1.6667,1.1693,1.5927,277519500.0
1,2010-06-30,1.6713,2.028,1.5533,1.5887,253039500.0
2,2010-07-01,1.6627,1.728,1.3513,1.464,121461000.0
3,2010-07-02,1.47,1.55,1.2473,1.28,75871500.0
4,2010-07-06,1.2867,1.3333,1.0553,1.074,101664000.0
5,2010-07-07,1.0933,1.1087,0.9987,1.0533,102645000.0
6,2010-07-08,1.0567,1.1793,1.038,1.164,114526500.0
7,2010-07-09,1.18,1.1933,1.1033,1.16,60061500.0
8,2010-07-12,1.1533,1.2047,1.1233,1.1413,32487000.0

内容的提问来源于stack exchange,提问作者Pavel Silber

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 22:19:52