`
renzhen
  • 浏览: 247790 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Fusion Chart使用‘%’字符的方法

    博客分类:
  • PHP
阅读更多
  今天使用Fusion Chart做报表,其中图型的标题为“可能性 (%)分布统计”,我在chart属性输入caption=‘可能性 (%)分布统计’,结果图形中只显示了‘可能性 (分布统计’这几个字,我懵了,为了显示%符号,我将‘%’改成‘%%’,没用。于是我开始在Google中搜索。
  可是没有找到解决方法,于是开始查看Fusion Chart英文文档,终于,在Basic Troubleshooting中找到这么一句话:If you're using any special characters in your XML, make sure they're properly encoded. Like, in dataXML method, % needs to be encoded as %25, & as %26 and so on. In dataURL method, you can provide most of the characters directly, without the need to encode.
  简单来说就是在Fusion Chart中对于一些特殊字符要转码,比如:'%'要写成‘%25’,‘&’要写成‘%26’。
  写下此文,给那些要或者将要使用Google查找这个问题的人。
  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics