Skip to content

[Feature] 请问可以在一个实例上创建2或多个个K线主图吗?做策略回测对比用 #774

@seifenk

Description

@seifenk

需求描述

创建共用时间轴的多个主图(k线图)

// 使用 layout 配置创建两个主图(K线图)共用一个时间轴
chart = init("kline", {
layout: [
{
type: "candle",
options: { id: "candle_pane_1", height: 320 }
},
{
type: "candle",
options: { id: "candle_pane_2", height: 320 }
},
{
type: "xAxis",
options: { id: "xAxis" }
}
]
});
尝试在layout创建2个candle图并没有生效

具体实现

创建共用时间轴的多个主图(k线图)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions