zoukankan      html  css  js  c++  java
  • legend两列时文字宽度设置

    必须指定backgroundColor背景色width才能生效
    legend: {
            orient: 'horizontal',
            right: 10,
            left: '79%',
            top: '3%',
            bottom: '7%',
            icon:'roundRect',
            itemHeight: 3,
            itemWidth: 27,
            itemGap: 12,// 各个item之间的间隔,单位px,默认为10,
            textStyle: { //图例文字的样式
                fontSize: 11,
                fontWeight:400,
                backgroundColor : '#fff',//指定背景色后width生效
                35,
                height:11
                    },
            x: 'center',// 水平安放位置,默认为全图居中,可选为:
            data: [ '环境','测点1','测点2','测点3','测点4','测点5','测点6','测点7','测点8','测点9','测点10','测点11','测点12','测点13','测点14','测点15','测点16','测点17','测点18','测点19','测点20','测点21']
        },

    222

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
    博文来源广泛,如原作者认为我侵犯知识产权,请尽快给我发邮件 664507902@qq.com联系,我将以第一时间删除相关内容。

查看全文
  • 相关阅读:
    FineReport 子窗口刷新父页面
    Swagger rest API 描述
    maven properties 动态转换
    elasticsearch postman操作
    学习网站
    python | 干货:VSCode 13款插件和8个快捷键,工作效率提升10倍
    python | 5大SQL数据清洗方法
    python | 阿里云发短信教程详细(2) -Python3
    python | 阿里云短信发送服务
    python | Linux各目录及每个目录的详细介绍
  • 原文地址:https://www.cnblogs.com/ooip/p/14678554.html
  • Copyright © 2011-2022 走看看