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
  • 相关阅读:
    mongodbwindows安装过程附带安装包百度云
    PostgreSQL数据库中跨库访问解决方案
    PostgreSQL 同步复制(1master+2standby)
    PostgreSQL数据导出导入COPY
    CentOS 6.5安装PostgreSQL9.3.5时报错: jade: Command not found
    postgresql常用命令
    EasyUI Messager 消息框
    js验证如何限制文本框只能输入数字
    推荐几个在线PDF转化成Word网站
    程序员高效编程的14点建议
  • 原文地址:https://www.cnblogs.com/binary1010/p/13539494.html
Copyright © 2011-2022 走看看