echarts问题总结2

柱状图:圆柱状图;

分层:底层柱状图,顶层椭圆

series: [
                {
                  // 真实数据
                  data: data,
                  name: "调度单",
                  type: 'pictorialBar', //指定类型
                  symbolSize: [16, 5], //指定大小,[宽,高]
                  symbolOffset: [0, -3], //位置偏移 [右,下] 负数反方向
                  z: 12, // 层级(优先级展示)
                  itemStyle: {
                    color: "#1a95f6"
                  },
                  symbolPosition: "end"
                },
                {
                  name: '调度单',
                  type: 'bar',
                  barWidth: '16',
                  data: data,
                  itemStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                      { offset: 0, color: '#5FB6FB' },
                      { offset: 0.5, color: 'rgba(95,182,251,0.32)' },
                      { offset: 1, color: 'rgba(95,182,251,0.02)' }
                    ])
                  },
                },
              ],

你可能感兴趣的:(前端,前端)