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
  • 相关阅读:
    c#中的对象生命周期
    数据抓取的艺术(三):抓取Google数据之心得
    redmine3.3.0安装问题
    wget 无法建立ssl连接 [ERROR: certificate common name ?..ssl.fastly.net?.doesn?. match requested host name ?.ache.ruby-lang.org?. To connect to cache.ruby-lang.org insecurely, use ?.-no-check-certificate?]
    Centos安装ruby
    Redmine插件的安装与卸载,知识库插件安装。
    Nexus网页直接上传jar包
    mvn deploy命令上传包
    一辈子只有1次成为BAT的机会,你如何把握?
    redmine创建新闻,自动发邮件给项目组所有成员
  • 原文地址:https://www.cnblogs.com/binary1010/p/13539494.html
Copyright © 2011-2022 走看看