Fusioncharts金字塔图设置背景颜色

xiaoxiao2025-07-23  26

研究了两天的Fusioncharts金字塔图总会有一层白色背景再最底层,不管你设置什么背景色都有一层白色背景,如图: F12看dom结构 发现在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

转载请注明原文地址: https://www.6miu.com/read-5033569.html

最新回复(0)