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
  • 相关阅读:
    IOS AutoLayout 代码实现约束—VFL
    理解iOS Event Handling
    一些优秀的iOS第三方库
    iOS中NSNotification、delegate、KVO三者之间的区别与联系?
    laravel 框架加载自定义函数/类文件
    Nodejs 使用 socket.io 简单实现实时通信
    Redis 与 Memcache 的异同之处
    Redis 服务安装
    PHP 依赖管理神器 Composer 基本使用
    Ajax无刷新图片插件使用
  • 原文地址:https://www.cnblogs.com/binary1010/p/13539494.html
Copyright © 2011-2022 走看看