柱状图

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            option = {
    backgroundColor: 'white',
    grid: {
      top: '20%',
      left: '5%',
      right: '5%',
      bottom: '8%',
      containLabel: true,
    },

    tooltip: {
      trigger: "axis",
      backgroundColor: "rgba(1, 13, 19, 0.5)",
      borderWidth: 1,
      formatter: (params) => {
        let str = params[0].name + " : " + params[0].value + "家";
        return str;
      },

      textStyle: {
        color: "rgba(212, 232, 254, 1)",
        // fontSize: fontChart(0.24),
      },
      extraCssText: "z-index:2"
    },
    xAxis: {
      data: ['上市公司', '独角兽企业', '瞪羚企业', '创新型企业', '外资企业', '跨国公司'],
      axisLine: {
        show: true,
        lineStyle: {
          color: '#eeeeee',
        }
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        color: '#393939',
        fontSize: 14,
        // rotate: "45"
      },
    },
    yAxis: [{
      type: 'value',
      name: "企业概览",
      nameTextStyle: {
        color: "#000",
        fontFamily: "Alibaba PuHuiTi",
        fontSize: 14,
        fontWeight: 600,
        // padding: [0, 0, 0, 35]
      },
      nameGap: 30,  // 表现为上下位置
      axisLine: {
        show: true,
        lineStyle: {
          color: '#eeeeee',
        }
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        color: '#393939',
        fontSize: 14
      },
      splitLine: {
        show: true,
        lineStyle: {
          color: '#eeeeee',
        }
      },
    }],
    series: [
      {
        // name: '采购项目提报',
        type: 'bar',
        barWidth: 20,
        zlevel: 2,
        itemStyle: {
          normal: {
            color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
              offset: 0,
              color: '#01B1FF'
            }, {
              offset: 1,
              color: '#033BFF'
            }], false)
          }
        },
        label: {
          normal: {
            show: true,
            fontSize: 13,
            color: '#14B6F3',
            position: 'top',
          }
        },
        data: [90, 70, 98, 97, 96, 70]
      }]
  };