技术交流

解决方案 »

  1.   

    这单纯跟你写的先后顺序有关把
     
    yAxis: [{ // Primary yAxis
                    labels: {
                        format: '{value}°C',
                        style: {
                            color: '#89A54E'
                        }
                    },
                    title: {
                        text: 'Temperature',
                        style: {
                            color: '#89A54E'
                        }
                    }
                }, { // Secondary yAxis
                    labels: {
                        format: '{value} mm',
                        style: {
                            color: '#4572A7'
                        }
                    },
                    title: {
                        text: 'Rainfall',
                        style: {
                            color: '#4572A7'
                        }
                    },
                    
                    opposite: true
                }],