在显示图表时,我需要隐藏" Fusion Charts XT ITAR"文本。我试图使用CSS隐藏它,但没有解决。
#css
.raphael-group-423-creditgroup {
display:none;
在您的CSS文件中只需写
svg > g[class^="raphael-group-"] > text{
display: none;
}
<style type="text/css">
g[class$='creditgroup'] {
display:none !important;
}
</style>
这对我有用,我想这很简单,对所有人都可以。
您可以使其更具体。
<style type="text/css">
g[class^='raphael-group-'][class$='-creditgroup'] {
display:none !important;
}
</style>
享受非法性;)
- 简单编辑您的 fusionCharts.js
- 查找 fontsize:9,fontfamily:" verdana,sans"
- 设置字体尺寸9至0
[pointer-events="bounding-box"] {
display: none
}
它对我有用,将其粘贴到您的CSS文件
svg > g[class^='raphael-group-'] g {
fill: none !important;
}
var item = document.body.querySelector('.raphael-group-423-creditgroup');
item.parentNode.removeChild(item);
它对我有用
div [id^='fc-']&gt;跨度&gt;svg&gt;defs g&gt;G:nth-child(26){显示:无!}