提示

   legend: {
          textStyle: {
            color: '#fff',
            textAlign: 'center'
          },
        }
         legend: {
            //right:100,  //图例组件离右边的距离
            // orient: 'horizontal',  //布局  纵向布局 图例标记居文字的左边 vertical则反之
            orient: 'vertical',  //布局  纵向布局 图例标记居文字的左边 vertical则反之
            width: 40,      //图行例组件的宽度,默认自适应
            x: 'left',   //图例显示在右边
            y: 'top',   //图例在垂直方向上面显示居中
            itemWidth: 10,  //图例标记的图形宽度
            itemHeight: 10, //图例标记的图形高度
            textStyle: {    //图例文字的样式
              color: '#ffffff',  //文字颜色
              fontSize: 12    //文字大小
            }
          }
   tooltip: {
          trigger: "axis",
          axisPointer: {
            // 坐标轴指示器,坐标轴触发有效
            type: "shadow" // 默认为直线,可选为:'line' | 'shadow'
          },
          extraCssText: "width:auto !important;height:auto;"
        }
    label:{
         color:"#fff"
       }
             label: {
                normal: {
                  show: true,
                  position: 'center',
                  color:'#4c4a4a',
                  // formatter: '{total|' + this.total +'}'+ '\n\r' + '{data|年龄比例}',
                  rich: {
                    total:{
                      fontSize: 35,
                      fontFamily : "微软雅黑",
                      color:'#454c5c'
                    },
                    active: {
                      fontFamily : "微软雅黑",
                      fontSize: 16,
                      color:'#6c7a89',
                      lineHeight:30,
                    },
                  }
                },
posted @ 2022-04-21 21:27  寒冷的雨呢  阅读(93)  评论(0编辑  收藏  举报