echarts实现多分类分组折线图访问量统计图表代码

代码语言:html

所属分类:图表

代码描述:echarts实现多分类分组折线图访问量统计图表代码

代码标签: echarts 分类 分组 折线图 访问量 统计 图表

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">


<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.5.1.1.js"></script>

    <style>
        body {
        	background-color: #fff;
        	font-family: Arial, Helvetica, sans-serif;
        	font-size: 16px; 
        	color: #000;
        }
        
        a:link, a:visited {
        	color: #4682b4;
        }
        
        a:hover {
        	color: #4169e1;
        }
        
        #main	{
        	width:600px;
        	height: 400px;
        }
    </style>



</head>

<body>
    <!-- Must specify width and height of DOM, ref CSS -->
    <div id="main"></div>

 
    <script >
        // based ready dom, initialize echarts instance 
        var chart = echarts.init(document.getElementById('main'));
        
        // Specify configurations and data graphs 
        var option = {
          title: {
            text: '2022年日均IP访问量统计',
            subtext: '单个访客' },
        
          tooltip: {
            trigger: 'axis' },
        
          legend: {
            data: ['IP人数', 'PV浏览量'] },
        
          toolbox: {
            show: true,
            feature: {
              mark: { show: true },
              dataView: { show: true, readOnly: false },
              magicType: { show: true, type: ['line', 'bar'] },
              restore: { show: true },
              saveAsImage: { show: true } } },
        
        
          calculable: true,
          xAxis: [
          {
            type: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0