zoukankan      html  css  js  c++  java
  • v-chart 渐变色

    <ve-line
          :colors="colors"
          :data="chartData"
          :settings="chartSettings"
          :data-zoom="dataZoom"
        ></ve-line>
     
    import echarts from 'echarts'
     
    this.colors = [
          new echarts.graphic.LinearGradient(
              0,0,0,1,[{
              offset: 0, color: 'rgba(65,95,255,1)'
            },{
              offset: 1, color: 'rgba(65,95,255,0)'
            }]),
            new echarts.graphic.LinearGradient(
              0,0,0,1,[{
              offset: 0, color: 'rgba(234,79,63,1)'
            },{
              offset: 1, color: 'rgba(234,79,63, 0)'
            }]),
            new echarts.graphic.LinearGradient(
              0,0,0,1,[{
              offset: 0, color: 'rgba(49,209,136,1)'
            },{
              offset: 1, color: 'rgba(49,209,136,0)'
            }]),
            new echarts.graphic.LinearGradient(
              0,0,0,1,[{
              offset: 0, color: 'rgba(255,149,54,1)'
            },{
              offset: 1, color: 'rgba(255,149,54,0)'
            }]),
            new echarts.graphic.LinearGradient(
              0,0,0,1,[{
              offset: 0, color: 'rgba(176,214,221,1)'
            },{
              offset: 1, color: 'rgba(176,214,221,0)'
            }]),
            new echarts.graphic.LinearGradient(
              0,0,0,1,[{
              offset: 0, color: 'rgba(248,231,28,1)'
            },{
              offset: 1, color: 'rgba(248,231,28,0)'
            }]
          )
        ]
  • 相关阅读:
    Spring AOP里的静态代理和动态代理,你真的了解嘛?
    redis的三种启动方式
    Linux MySQL分库分表之Mycat
    Linux 之Mycat搭建报错 java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException
    Linux MySQL Proxy 读写分离
    Linux MySQL集群搭建之主从复制
    Linux 虚拟机详细安装MySQL
    MySQL 性能优化细节
    MySQL 性能优化之慢查询
    MySQL事务处理
  • 原文地址:https://www.cnblogs.com/MJmajong/p/12983522.html
Copyright © 2011-2022 走看看