apexcharts实现曲线柱状图在一起的图表效果代码

代码语言:html

所属分类:图表

代码描述:apexcharts实现曲线柱状图在一起的图表效果代码

代码标签: apexcharts 曲线 柱状图 一起 图表

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

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

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />

    <style>
        #chart{max-width:650px;margin:35px auto}
    </style>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/apexcharts.3.35.js"></script>
</head>

<body>

    <div id="chart"></div>
    <script>
        var options = {
      series: [{
          "name": "Line",
          "type": "line",
          "data": [37, 38.3, 33.01, 30, 29.7, 30, 35.2, 44, 45, 41, 22, 22.5, 29.1, 25.5, 41.2, 43.8, 39, 23, 26, 22, 34, 37, 43, 41, 17]
      }, {
          "name": "Bar1",
          "type": "bar",
          "data": [-1.57, -1.83, -0.29, 2, 0.23, 3, 0, -0.77, 0, 0, 0, -0.16, -0.5, -0.75, -0.93, -0.93, -0.45, 0, 0, -0.23, -0.95, -1.12, -0.51, 0.76]
      }, {
          "name": "Bar2",
          "type": "bar",
          "data": [-2.99, -0.43, 0.39, 2.8, 0.23, 1.2, -0.06, -2.96, -2.74, -2.58, -1.79, -2.16, -1.9, -1.75, -2, -2.16, -1.75, -1.9, -2.74, -2.58, -3.8, -1.24, -0.01, 1.89]
      }, {
          "name": "Bar3",
          "type": "bar",
          "data": [0.09, 4, 4.83, 6.86, 3.86, 5, 1.7, -1.21, 0, 0.02, 0.07, -0.15, -0.09, 0, -0.61, -1.75, 0, -0.43, -1.5, -0.66, -3.06, 0.06, 0.15, 1.48]
      }, {
          "name": "bar4",
          "type": "bar",
          "data": [5.95.........完整代码请登录后点击上方下载按钮下载查看

网友评论0