FusionCharts 中文提示信息
var myChartA = new FusionCharts("${createLinkTo(dir:'media/flash/FusionCharts/Charts',file:'RealTimeLine.swf')}", "char_realpefe", chartAPanel.body.getWidth() , chartAPanel.body.getHeight(), "0", "0");
myChartA.setDataURL("数据请求路径");
myChartA.setTransparent(true);//设置透明
此设置很重要,不然图表区域会显示白色的背景
myChartA.configure("ChartNoDataText","没有数据显示");
myChartA.configure("LoadDataErrorText","加载数据出错");
myChartA.configure("XMLLoadingText","加载数据中");
myChartA.configure("InvalidXMLText","初始化");
myChartA.configure("ReadingDataText","读取数据");
myChartA.configure("ChartNotSupported","图表不支持");
myChartA.configure("LoadingText","加载");
myChartA.configure("RenderChartErrorText","加载数据出错");
具体configure中的第一个参数 见FusionCharts.js文件
测试版本:FusionCharts 3.2.4
对于其余版本 本人未经测试 信息来源网上
fusioncharts3.1中文提示解决
var myChart = new FusionCharts("../FusionCharts/Column2D.swf?ChartNoDataText=无数据显示", "myChartId", "600", "300");
<script type="text/javascript"><!--
var myChart = new FusionCharts("Column2D.swf", "myChartId", "300", "250", "0", "1");
myChart.setXMLUrl("<chart></chart>");
myChart.configure( "ChartNoDataText", "Please select a record above");
myChart.configure( "InvalidXMLText", "Please validate data");
myChart.render("chartContainer");
fusioncharts3.2中文提示解决
var myChartA = new FusionCharts("${createLinkTo(dir:'media/flash/FusionCharts/Charts',file:'RealTimeLine.swf')}", "char_realpefe", chartAPanel.body.getWidth() , chartAPanel.body.getHeight(), "0", "0");
myChartA.setDataURL("数据请求路径");
myChartA.setTransparent(true);//设置透明
此设置很重要,不然图表区域会显示白色的背景
myChartA.configure("ChartNoDataText","没有数据显示");
myChartA.configure("LoadDataErrorText","加载数据出错");
myChartA.configure("XMLLoadingText","加载数据中");
myChartA.configure("InvalidXMLText","初始化");
myChartA.configure("ReadingDataText","读取数据");
myChartA.configure("ChartNotSupported","图表不支持");
myChartA.configure("LoadingText","加载");
myChartA.configure("RenderChartErrorText","加载数据出错");
具体configure中的第一个参数 见FusionCharts.js文件
测试版本:FusionCharts 3.2.4
对于其余版本 本人未经测试 信息来源网上
fusioncharts3.1中文提示解决
var myChart = new FusionCharts("../FusionCharts/Column2D.swf?ChartNoDataText=无数据显示", "myChartId", "600", "300");
<script type="text/javascript"><!--
var myChart = new FusionCharts("Column2D.swf", "myChartId", "300", "250", "0", "1");
myChart.setXMLUrl("<chart></chart>");
myChart.configure( "ChartNoDataText", "Please select a record above");
myChart.configure( "InvalidXMLText", "Please validate data");
myChart.render("chartContainer");
fusioncharts3.2中文提示解决