Amcharts 第二面板中的柱形图

Column Chart in Second Panel in Amcharts

我正在尝试从第二个面板开始更改图表的显示类型,但即使在指定更改后 - "type" : "column" 第二个图表继续显示为折线图。

https://www.amcharts.com/kbase/stock-chart-displaying-data-different-data-sets-separate-panels/

我是不是漏掉了一些设置?

对于比较数据集,您必须设置相应的 compareGraph* 设置才能使设置生效。在这种情况下,您希望将 compareGraphType 设置为 "column"。如果要填充列,请将 compareGraphFillAlphas 设置为 1。您可以在 stockGraph documentation.

中看到所有可用的属性

这是上述演示的更新版本:http://codepen.io/team/amcharts/pen/9f58168c0164f51c0f4549780143d37e?editors=0010