SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <meta charset="utf-8">
    </head>
    <body style="height: 100%; margin: 0">
        <div id="container" style="height: 100%"></div>

        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.0.1/dist/echarts.min.js"></script>
        <!-- Uncomment this line if you want to dataTool extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.0.1/dist/extension/dataTool.min.js"></script>
        -->
        <!-- Uncomment this line if you want to use gl extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js"></script>
        -->
        <!-- Uncomment this line if you want to echarts-stat extension
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat@latest/dist/ecStat.min.js"></script>
        -->
        <!-- Uncomment this line if you want to use map
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.0.1/map/js/china.js"></script>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.0.1/map/js/world.js"></script>
        -->
        <!-- Uncomment these two lines if you want to use bmap extension
        <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=<Your Key Here>"></script>
        <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.0.1/dist/extension/bmap.min.js"></script>
        -->

        <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};



var option = {

    tooltip: {

        trigger: 'axis',

        axisPointer: {            // Use axis to trigger tooltip

            type: 'shadow'        // 'shadow' as default; can also be 'line' or 'shadow'

        }

    },

    legend: {

        data: ['上传简历数量', '推荐简历数', '通过简历数', '到面数', '面试通过数', '入职人数']

    },

    grid: {

        left: '3%',

        right: '4%',

        bottom: '3%',

        containLabel: true

    },

    xAxis: {

        type: 'value'

    },

    yAxis: {

        type: 'category',

        data: ['渠道7', '渠道6', '渠道5', '渠道4', '渠道3', '渠道2', '渠道1']

    },

    series: [

        {

            name: '上传简历数量',

            type: 'bar',

            stack: 'total',

            label: {

                show: true

            },

            emphasis: {

                focus: 'series'

            },

            data: [320, 302, 301, 334, 390, 330, 320]

        },

        {

            name: '推荐简历数',

            type: 'bar',

            stack: 'total',

            label: {

                show: true

            },

            emphasis: {

                focus: 'series'

            },

            data: [320, 302, 301, 334, 390, 330, 320]

        },

        {

            name: '通过简历数',

            type: 'bar',

            stack: 'total',

            label: {

                show: true

            },

            emphasis: {

                focus: 'series'

            },

            data: [220, 182, 191, 234, 290, 330, 310]

        },

        {

            name: '到面数',

            type: 'bar',

            stack: 'total',

            label: {

                show: true

            },

            emphasis: {

                focus: 'series'

            },

            data: [50, 61, 62, 74, 120, 130, 150]

        },

        {

            name: '面试通过数',

            type: 'bar',

            stack: 'total',

            label: {

                show: true

            },

            emphasis: {

                focus: 'series'

            },

            data: [10, 11, 12, 14, 20, 30, 50]

        },{

            name: '入职人数',

            type: 'bar',

            stack: 'total',

            label: {

                show: true

            },

            emphasis: {

                focus: 'series'

            },

            data: [0, 0, 5, 6, 20, 30, 5]

        }

    ]

};




if (option && typeof option === 'object') {
    myChart.setOption(option);
}

        </script>
    </body>
</html>