HighCharts系列Z指数

Nun*_*ira 17 javascript highcharts

有没有办法在不改变系列顺序的情况下将一系列剧集带到Highcharts?

在我的代码中,我使用过:

$('#graf-1').highcharts({
            chart: {
                zoomType: 'xy'
            },
            title: {
                text: 'Title'
            },
            subtitle: {
                text: 'Source:'
            },
            xAxis: [{
                categories: datax
            }],
            yAxis: [{ // Primary yAxis
                labels: {
                    format: '{value} €',
                    style: {
                        color: '#89A54E'
                    }
                },
                title: {
                    text: eixoy,
                    style: {
                        color: '#89A54E'
                    }
                }
            }, { // Secondary yAxis
                title: {
                    text: eixoz,
                    style: {
                        color: '#4572A7'
                    }
                },
                labels: {
                    format: '{value} %',
                    style: {
                        color: '#4572A7'
                    }
                },
                opposite: true
            }],
            tooltip: {
                shared: true
            },
            legend: {
                layout: 'vertical',
                align: 'left',
                x: 120,
                verticalAlign: 'top',
                y: 100,
                floating: true,
                backgroundColor: '#FFFFFF'
            },
            series: [{
                name: eixoz,
                color: '#4572A7',
                type: 'line',
                yAxis: 1,
                data: dataz,
                tooltip: {
                    valueSuffix: ' %'
                }

            }, {
                name: eixoy,
                color: '#89A54E',
                type: 'column',
                data: datay,
                tooltip: {
                    valueSuffix: ' €'
                }
            }]
        });
Run Code Online (Sandbox Code Playgroud)

这将生成一个具有两个y轴的图表,其中该行显示在该列下方.我希望列上的行(如z-index).但是,我找不到这样做的方法. 图表

Mar*_*ark 32

Highcharts具有zIndex属性.

       series: [{
            name: eixoz,
            color: '#4572A7',
            type: 'line',
            yAxis: 1,
            data: dataz,
            tooltip: {
                valueSuffix: ' %'
            },
            zIndex: 2

        }, {
            name: eixoy,
            color: '#89A54E',
            type: 'column',
            data: datay,
            tooltip: {
                valueSuffix: ' €'
            },
            zIndex: 1
        }]
Run Code Online (Sandbox Code Playgroud)

看到这个小提琴.