繁体   English   中英

Highcharts - 双yAxis不显示

[英]Highcharts - Dual yAxis not displaying

我有这个图表

http://jsfiddle.net/WMa55/3/

        series: [

            {
                name: 'distance',
                type: 'column',
                data: [4.0, 0.0, 0.0, 5.0, 1.0, 0.0, 9.0],
                borderRadius: 2
            }, {
                name: 'weight',
                color: '#89A54E',
                type: 'spline',
                data: [165.0, 160.9, 159.5, 155.5, 162.2, 179.5, 125.2],
                tooltip: {
                    valueSuffix: '--'
                }
            }
        ]

我想显示两个yAxis标签,一个在右侧,一个在左侧。 它似乎只是使用一个。

我认为这是由于自定义标签格式化,但不是积极的。 我不希望这两组数据使用相同的范围。 任何人都知道为什么它只显示一个轴?

你有两个我可以看到的问题:

1.)您没有指定任何系列来映射第二个y轴。

yAxis: 1

2.)右边距为-4,这会抑制右y轴的绘制。

marginRight: -4,  // where's the axis going to draw if it doesn't have space?

更新了小提琴

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM