zoukankan      html  css  js  c++  java
  • echars 折线图使用

    option = {
          legend: {
            data: ['安全趋势'],
            x: 20,
            y: 20,
            textStyle: {
              color: '#fff',
              fontSize: 14
            }
          },
          visualMap: {
            show: false,
            pieces: [{  //点在不同数值范围颜色不同
              gte: 0,
              lt: 60,
              color: 'red'
            }, {
              gte: 60,
              lt: 80,
              color: 'yellow'
            }, {
              gte: 80,
              lte: 100,
              color: 'green'
            }],
            outOfRange: {
              color: '#999'
            }
          },
          xAxis: {
            type: 'category',
            boundaryGap: false,
            data: keys,
            axisLabel: {
              show: true,
              textStyle: {
                color: '#fff',
                fontSize: 14
              }
            },
            axisLine: {
              lineStyle: {
                color: '#245665'
              }
            },
            splitLine: {
              show: true,
              lineStyle: {
                color: ['#245665'],
                 1
              }
            }
          },
          yAxis: {
            type: 'value',
            max: 100,
            min: 0,
            splitNumber: 5,
            axisLabel: {
              show: true,
              textStyle: {
                color: '#fff',
                fontSize: 14
              }
            },
            axisLine: {
              lineStyle: {
                color: '#245665'
              }
            },
            splitLine: {
              show: true,
              lineStyle: {
                color: ['#245665'],
                 1
              }
            }
          },
          series: [
            {
              name: '安全趋势',
              type: 'line',
              symbol: 'circle',
              symbolSize: 8,
              data: values,
              itemStyle: {
                normal: {
                  color: '#00FFCD',
                  lineStyle: {
                    color: '#00FFCD',
                     2
                  }
                }

              }
            }
          ]
        }
    点关注各类It学习资源免费送+V 1153553800
  • 相关阅读:
    JAVA 一个接口多个实现类
    关于Web服务器
    美团买菜IOS版设备风控浅析与算法还原
    阿里App防Bot新版AliTigerTally方案浅析与算法还原1
    使用php的openssl_encrypt和python的pycrypt进行跨语言的对称加密和解密问题
    一个把人民币小写转换为大写中文的方法
    《重构》代码坏味道
    git 合并分支
    java中SPI机制 代码改变世界
    echo print print_r的区别
  • 原文地址:https://www.cnblogs.com/binary1010/p/13539494.html
Copyright © 2011-2022 走看看