mc.js 1.73 KB
export default  {
    xAxis:  {
        type: 'category',
        boundaryGap: false,
        data: ['9:09:40PM','9:09:50PM','9:09:40PM','9:10:00PM','9:10:10PM','9:10:20PM','9:10:30PM']
    },
    yAxis: {
        type: 'value',
        axisLabel: {
            formatter: '{value}'
        }
    },
    series: [
        {
            name:'Max',
            type:'line',
            data:[951000, 951000, 951000, 951000, 951000, 951000, 951000],
            markPoint: {
                data: [
                    {type: 'max', name: '最大值'},
                    {type: 'min', name: '最小值'}
                ]
            },
            markLine: {
                data: [
                    {type: 'average', name: '平均值'}
                ]
            }
        },
        {
            name:'Current',
            type:'line',
            data:[948000, 949000, 958000, 848000, 748000, 648000, 948000],
            markPoint: {
                data: [
                    {name: '周最低', value: -2, xAxis: 1, yAxis: -1.5}
                ]
            },
            markLine: {
                data: [
                    {type: 'average', name: '平均值'},
                    [{
                        symbol: 'none',
                        x: '90%',
                        yAxis: 'max'
                    }, {
                        symbol: 'circle',
                        label: {
                            normal: {
                                position: 'start',
                                formatter: '最大值'
                            }
                        },
                        type: 'max',
                        name: '最高点'
                    }]
                ]
            }
        }
    ]
}