首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

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

2012-11-23 
Fusion Chart使用‘%’字符的方法今天使用Fusion Chart做报表,其中图型的标题为“可能性 (%)分布统计”,我在ch

Fusion Chart使用‘%’字符的方法
  今天使用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查找这个问题的人。
  

热点排行