```javascript
option = {
            backgroundColor: '#fff',
            axisPointer: {
                link: {
                    xAxisIndex: 'all',
                },
                label: {
                    backgroundColor: '#777'
                }
            },
            tooltip: {
                trigger: 'axis',
            },
            grid: [
                {
                    left: '40',
                    right: '40',
                    top: '5%',
                    height: '45%'
                }
            ],
            xAxis:[
                {
                    type: 'category',
                    name: '时间(s)',
                    data: xTime,
                    boundaryGap: false,
                    gridIndex: 0,
                    nameGap: 3,
                    nameLocation: 'end',
                    nameTextStyle:{
                        fontSize: 10
                    }
                }
            ],
            yAxis:[
                {
                    type: 'value',
                    gridIndex: 0,
                    name: '速度(km/h)',
                    nameGap: 10,
                    nameTextStyle:{
                        fontSize: 10
                    }
                },
                {
                    type: 'value',
                    name: '离合力度',
                    nameGap: 10,
                    gridIndex: 0,
                    nameTextStyle:{
                        fontSize: 10
                    }
                }
            ],
            series: [
            {
                name:'速度(km/h)',
                type: 'line',
                smooth: false,
                data: p_data[0].analysis.speed_curves.S_Points,
                xAxisIndex: 0,
                yAxisIndex: 0,
                lineStyle:{
                    color: 'rgb(26, 173, 25)',
                    width: 3,
                },
                itemStyle:{
                    color: 'rgb(26, 173, 25)',
                },
                zlevel: 1,
            },
            {
                name:'离合力度',
                type: 'line',
                smooth: false,
                data: p_data[0].analysis.clutch_curves.S_Points,
                xAxisIndex: 0,
                yAxisIndex: 1,
                itemStyle:{
                    color: 'rgb(50, 50, 50)',
                },
                large: true,
                zlevel: 1,
            },
        ]
}
```


上面那个太长了....

[ Full content available at: 
https://github.com/apache/incubator-echarts/issues/9071 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to