web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

百度echarts如何对不同折线图设置不同颜色

664 ℃
     
series: [
  {
    name: '折线图1',
    type: 'line',
    data: [111, 222, 333, 444, 111, 222, 333, 444, 111],
    itemStyle: {
      normal: {
        color: '#15CE89',
        lineStyle: {
          color: '#15CE89'
        }
      }
    },
    showSymbol: true,
    smooth: 0.6, //拐点圆形
    symbol: 'circle', //形状 'circle’, 'rect’, 'roundRect’, 'triangle’, 'diamond’, 'pin’, 'arrow'
    symbolSize: 0 //大小
  },
  {
    name: '折线图2',
    type: 'line',
    data: [222, 333, 444, 111, 222, 333, 444, 111, 222],
    itemStyle: {
      normal: {
        color: '#FFBB00',
        lineStyle: {
          color: '#FFBB00'
        }
      }
    }
  },
  {
    name: '折线图3',
    type: 'line',
    data: [333, 444, 111, 222, 333, 444, 111, 222, 333],
    itemStyle: {
      normal: {
        color: '#0075FF',
        lineStyle: {
          color: '#0075FF'
        }
      }
    }
  },
  {
    name: '折线图4',
    type: 'line',
    data: [444, 111, 222, 333, 444, 111, 222, 333, 444],
    itemStyle: {
      normal: {
        color: '#FF844D',
        lineStyle: {
          color: '#FF844D'
        }
      }
    }
  }
]

百度echarts雷达图radar根据分数点显示每个不同颜色

百度ECharts文档官网介绍

百度echarts柱状图设置不同颜色(每根柱子一种颜色)

百度echarts图表数据为空如何展示"暂无数据"

百度echarts柱状图/折线图x轴显示全部文本(太长自动换行)

标签: line折线图, line折线图参数, 百度echarts

上面是“百度echarts如何对不同折线图设置不同颜色”的全面内容,想了解更多关于 js 内容,请继续关注web建站教程。

当前网址:https://ipkd.cn/webs_3732.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

当前位置: 网站首页 > js
本文共计676个字,预计阅读时长5分钟
生活小工具,收录了80多款小工具
上一篇: win7系统设置防火墙报0x8007042c错误解决方法
下一篇: 国家送给全国人民的9个免费神器(赶紧收藏)
x 打工人ai神器