研究了两天的Fusioncharts金字塔图总会有一层白色背景再最底层,不管你设置什么背景色都有一层白色背景,如图:
Fusioncharts金字塔图设置背景颜色
F12看dom结构
Fusioncharts金字塔图设置背景颜色
发现在rect外面还有一层span,并且设置了白色背景,解决方法就是将白色背景去掉调用图表的setTransparent();方法

FusionCharts.ready(function() {
       var charts = new FusionCharts({
      // "containerBackgroundOpacity":"0",//背景透明  
            "type": options.type,
            "renderAt": options.renderAt,
            "width": options.width,
            "height": options.height,
            "dataFormat": options.dataFormat,
            "dataSource": options.dataSource
      });
       charts.setTransparent();//背景透明   设置上这个
       charts.render(); 
    });

附上 Fusioncharts 制作金字塔图方法
https://blog.csdn.net/you23hai45/article/details/12072105

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-05-18
  • 2021-04-21
  • 2021-09-19
  • 2021-12-21
  • 2021-08-05
猜你喜欢
  • 2022-02-10
  • 2021-07-07
  • 2022-12-23
  • 2021-08-23
  • 2021-11-23
  • 2021-12-23
  • 2021-12-19
相关资源
相似解决方案