需求描述
创建共用时间轴的多个主图(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线图)