gpt4 book ai didi

javascript - 确定 HighStock 图表中可用的趋势线类型

转载 作者:行者123 更新时间:2023-12-02 22:08:00 24 4
gpt4 key购买 nike

在此jsFiddle我有一个 Highstocks 图表,其中有两条趋势线,我以编程方式添加了这两条趋势线:type = trendline 和 type = sma。这工作正常:

 series: [{
type: 'ohlc',
id: 'aapl-ohlc',
name: 'AAPL Stock Price',
data: ohlc
},
{
type: 'trendline',
linkedTo: 'aapl-ohlc'
},
{
type: 'sma',
linkedTo: 'aapl-ohlc',
params: {
period: 10
}
}]

我需要知道所有可用的类型。在 Highcharts demo有一个对话框,用户可以在其中选择类型,但它显示类型名称/描述,但不显示应在 type 属性中指定的类型。如何知道可用类型的标识符?

最佳答案

您可以在 Highcharts API 文档中找到所有可用的系列类型及其属性、选项和一些示例。

API:https://api.highcharts.com/highstock/series

这里是技术指标列表的链接:https://www.highcharts.com/docs/stock/technical-indicator-series

你就是这么想的吗?

关于javascript - 确定 HighStock 图表中可用的趋势线类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59654548/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com