• echarts柱状图宽度设置(react-native)


    const optionCategory = {
    color: ['#B5282A'],
    tooltip : {
    trigger: 'axis',
    axisPointer : { // 坐标轴指示器,坐标轴触发有效
    type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
    }
    },
    grid: {
    top: px(20),
    left: '3%',
    right: '4%',
    bottom: px(5),
    containLabel: true,
    height: px(290),
    },
    xAxis : [
    {
    type : 'category',
    data : data.datax,
    axisTick: {
    alignWithLabel: true
    },
    axisLabel:{ //调整x轴的lable
    textStyle:{
    fontSize: 10 // 让字体变大
    }
    }
    }
    ],
    yAxis : [
    {
    type : 'value'
    }
    ],
    series : [
    {
    name:'交易额',
    type:'bar',
    barWidth: px(26),//宽度
    itemStyle: {
    normal: {
    fontColor: '14px',
    },
    },
    data: data.data,
    }
    ]
    };

  • 相关阅读:
    线程同步锁的使用方式
    EventBus简单封装
    Dagger2不自动生成daggerXXXcomponent
    android mvp模式
    第八天
    单词统计续
    学习进度第十一周
    第七天
    第六天
    第五天
  • 原文地址:https://www.cnblogs.com/shiyunfront/p/7660830.html
Copyright © 2020-2023  润新知