Highchart多轴标签未显示

时间:2015-01-12 10:14:37

标签: javascript jquery html highcharts

我有3个x轴,但它们的标签不可见。 整个想法是让酒吧更好,并为标签提供空间

http://jsfiddle.net/rnz9ybuq/1/

xAxis: [
            {
                categories: ['01/14', '02/14', '03/14'],
                title: {
                    text: "left column"
                }
            },
            {

                categories: ['stuff 1', 'stuff 2', 'stuff 3'],
                opposite: true,
                title: {
                    text: "1st right column"
                }

            },
            {
                opposite: true,
                title: {
                    text: "2nd right column"
                },
                categories: ['thing 1', 'thing 2', 'thing 3' ]
            }
        ],
        yAxis: {
            opposite: true,
            min: 0,
            max: 100,
            labels: {
                enabled: false
            },
            title: {
                text: "Data"
            }
        },

The bad result

我想我错过了一些简单的事情

1 个答案:

答案 0 :(得分:1)

你需要引用系列中的x轴(xAxis:2)。

示例:http://jsfiddle.net/rnz9ybuq/2/