zoukankan      html  css  js  c++  java
  • 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,
    }
    ]
    };

  • 相关阅读:
    向值栈放List集合
    向值栈放对象
    向值栈放数据
    wsgi初探
    python_swift_project_swift使用
    python_swift_project_middleware
    ubuntu 安装 swift
    20140905
    eventlet
    resource
  • 原文地址:https://www.cnblogs.com/shiyunfront/p/7660830.html
Copyright © 2011-2022 走看看