Newer
Older
stockTray / EastLineServer / src / main / resources / static / js / demo / echarts-demo.js
bello on 12 Aug 2020 1007 bytes 新增控制台
function refreshIndexUserActionEChat(days, values) {
    var lineChart = echarts.init(document.getElementById("echarts-line-chart"));
    var lineoption = {
        title : {
            text: '活跃用户数据'
        },
        tooltip : {
            trigger: 'axis'
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : days
            }
        ],
        yAxis : [
            {
                type : 'value',
                axisLabel : {
                    formatter: '{value}'
                }
            }
        ],
        series : [
            {
                name:'日活跃',
                type:'line',
                data:values,
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'}
                    ]
                }
            }
        ]
    };
    lineChart.setOption(lineoption); 


    
};