zoukankan      html  css  js  c++  java
  • echarts柱状图显示横向滚动条以及柱状上方显示数据

    当echarts中数据过多,为其添加横向滚动条,在其配置中添加如下代码

    dataZoom: [
              {
                show: true,
                realtime: true,
                start: 0,
                end: 50
              },
              {
                type: 'inside',
                realtime: true,
                start: 0,
                end: 50
              }
            ]
    在柱状图中上方添加数据显示,要在itemStyle中下列配置
    itemStyle: {
                  normal: {
                    label: {
                      show: true, //是否显示
                      position: 'top',//显示在顶部
                      textStyle: {
                        color: 'black', //字体颜色
                        fontSize: 14 //字体大小
                      }
                    }
                  },
                }
     
  • 相关阅读:
    只要肯下功夫,十岁也能学得会的 Docker 精简版!
    sprintf和sscanf的用法
    ubuntu在线安装vscode
    Makefile模板
    本地Git配置绑定远程Github账户
    mysql多表查询
    VS error 2019 错误
    Oracle--约束
    Oracle--增删查
    Oracle--子查询
  • 原文地址:https://www.cnblogs.com/zoutuan/p/13383600.html
Copyright © 2011-2022 走看看