zoukankan      html  css  js  c++  java
  • echarts饼图字体大小修改

    const option = {
    tooltip: {
    trigger: 'item',
    formatter: "{a}
    {b}: {c} ({d}%)"
    },
    series: [
    {
    name:'访问来源',
    type:'pie',
    selectedMode: 'single',
    radius: [0, '45%'],
    center: ['50%', '49%'],
    label: {
    normal: {
    position: 'inner',
    textStyle : {
    fontWeight : 'normal',
    fontSize : px(18)
    }
    }
    },
    labelLine: {
    normal: {
    show: false
    }
    },
    data: data.inner,
    },
    {
    name:'访问来源',
    type:'pie',
    radius: ['60%', '80%'],
    center: ['50%', '49%'],
    label: {
    normal: {
    backgroundColor: '#eee',
    borderColor: '#aaa',
    rich: {
    a: {
    color: '#999',
    lineHeight: 22,
    align: 'center'
    },
    hr: {
    borderColor: '#aaa',
    '100%',
    borderWidth: 1,
    height: 0
    },
    b: {
    fontSize: px(32),
    lineHeight: px(66),
    },
    per: {
    color: '#eee',
    backgroundColor: '#334455',
    padding: [px(4), px(8)],
    borderRadius: px(4)
    }
    }
    }
    },
    data: data.out,
    }
    ]
    };

  • 相关阅读:
    LOAD XML
    LOAD DATA
    INSERT 插入语句
    keras第一课
    android系统开发之开启启动
    Qt使用数据库
    微信订阅号案例之一
    python_install
    QtObject使用
    Qml_JS文件的使用
  • 原文地址:https://www.cnblogs.com/shiyunfront/p/7660469.html
Copyright © 2011-2022 走看看