高图表系列 Z 指数

HighCharts series Z index

本文关键字:指数 系列 高图表      更新时间:2023-09-26

有没有办法在不颠倒序列顺序的情况下将序列放在 Highcharts 的前面?

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

$('#graf-1').highcharts({
            chart: {
                zoomType: 'xy'
            },
            

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
        }]

看到这个小提琴。