Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究烛台 (highStock)。是否有任何功能可以让我根据开盘/收盘值更改单个烛台的颜色?默认情况下,它给出蓝色和白色,即如果开盘值大于收盘值,则颜色将为蓝色,如果收盘值大于开盘值,则颜色将为白色。但我想在蓝色和白色上应用绿色和红色。如果收盘价与开盘价相同,我也想应用白色。任何帮助将不胜感激。提前致谢 ;)
您可以从以下链接中找到您的答案:
烛台图的 Highstock Docs
JSFIDDLE 演示
代码:
plotOptions: { candlestick: { color: 'red', upColor: 'green' } },