zoukankan      html  css  js  c++  java
  • echarts

    // 绘制渠道折线图
        drawChannelLine (channelLinechannelDatalegendDataseriesData) {
          // 基于准备好的dom,初始化echarts实例
          let myChart = this.$echarts.init(channelLine)
          // 绘制图表
          myChart.setOption({
            color: ['#03d4c2''#ffbb30''#33ca40''#0478fb''#f45184''#6753e2''#e764ff''#01d9fc''#ee342e''#9e98ff'],
            xAxis: {
              type: 'category',
              boundaryGap: false,
              data: channelData,
              // data: this.channelLineTime,
              axisLabel: {
                textStyle: {
                  color: '#a5c0df'// 更改坐标轴文字颜色
                  fontSize: 12 // 更改坐标轴文字大小
                }
              },
              axisTick: {
                show: false
              },
              axisLine: {
                lineStyle: {
                  color: '#072a76' // 更改坐标轴颜色
                }
              }
            },
            yAxis: {
              type: 'value',
              axisLabel: {
                textStyle: {
                  color: '#a5c0df'// 更改坐标轴文字颜色
                  fontSize: 12 // 更改坐标轴文字大小
                }
              },
              axisTick: {
                show: false
              },
              axisLine: {
                show: false
              },
              // 网格线
              splitLine: {
                show: true,
                lineStyle: {
                  color: ['#072a76'],
                   1,
                  type: 'solid'
                }
              }
            },
            tooltip: { // 提示框自定义
              trigger: 'axis',
              formatter: function (paramsticketcallback) {
                let str = `<div style="text-align:left;"><p>${params[0].axisValue}</p>`
                params.forEach(item => {
                  str += `<p>${item.seriesName}签发量:${item.value}</p>`
                })
                str += `</div>`
                // let str = `<p>今日实时签发:${params[0].value}张</p><p>今日累计签发:9000张</p>`
                return str
              }
            },
            legend: {
              icon: 'rectangle',
              itemWidth: 10,
              itemHeight: 10,
              itemGap: 18,
              data: legendData,
              right: '4%',
              top: 5,
              selectedMode: false,
              textStyle: {
                color: '#a5c0df'
              }
            },
            dataZoom: [
              {
                show: true,
                realtime: true,
                start: 0,
                end: 50
              },
              {
                type: 'inside',
                realtime: true,
                start: 0,
                end: 50
              }
            ],
            grid: {
              left: '3%',
              right: '4%',
              bottom: '3%',
              top: '18%',
              // borderColor: '#ff0000',
              // borderWidth: 10
              containLabel: true
            },
            series: seriesData
          })
        },
  • 相关阅读:
    HTTP Error 500.19
    为了找到自己的路——leo锦书62
    hdu3068 最长回文串
    AE+SceneControl源代码共享
    从节能的数据中心的硬件和软件设计的角度(一)
    设计模式------工厂方法模式
    PSU 离11.2.0.3.0 -&gt; 11.2.0.3.11 如果解决冲突的整个
    Android四个多线程分析:MessageQueue实现
    shiro权限架作战
    Codeforces 549G. Happy Line 馋
  • 原文地址:https://www.cnblogs.com/qdwz/p/11924167.html
Copyright © 2011-2022 走看看