fusioncharts javascript 渲染在 liferay 中不起作用
我正在使用liferay门户并在portlet上显示图表...
手册说3个js文件(FusionCharts.js,highcharts.js和jquery.min.js)需要放置在一个文件夹中,并且只需要FusionCharts.js包括在 iPad 上使用 javascript 进行渲染。
如果 FusionCharts.js 没有发现它显示空白 portlet,则会按需加载其他脚本。
我已经包含了 FusionCharts.js,但它显示空白 portlet
这是我显示地图
FusionCharts._fallbackJSChartWhenNoFlash();
var myChart = new FusionCharts("Column3D.swf", "myChartId11", "400", "300", "0", "0");
myChart.setDataXML(" <chart caption='Weekly Sales Summary' xAxisName='Week' yAxisName='Sales' numberPrefix='$'> <set label='Week 1' value='14400' /><set label='Week 2' value='19600' /><set label='Week 3' value='24000' /><set label='Week 4' value='15700' /></chart>");
myChart.render("chartContainer");
的代码是否可以禁用按需加载并手动加载其他 2 个脚本?
或者有人建议任何其他修复?
I am using liferay portal and displaying graphs on portlet...
The manual says the 3 js files(FusionCharts.js, highcharts.js and jquery.min.js) need to be placed in a folder and only FusionCharts.js needs to be included to render using javascript on ipad.
FusionCharts.js is loading other script on demand if it dont find it displays blank portlet.
I have included FusionCharts.js but it displays blank portlet
here is my code to display map
FusionCharts._fallbackJSChartWhenNoFlash();
var myChart = new FusionCharts("Column3D.swf", "myChartId11", "400", "300", "0", "0");
myChart.setDataXML(" <chart caption='Weekly Sales Summary' xAxisName='Week' yAxisName='Sales' numberPrefix='
Is it possible to disable ondemand load and load the other 2 scripts manually?
Or anyone suggest any other fix?
> <set label='Week 1' value='14400' /><set label='Week 2' value='19600' /><set label='Week 3' value='24000' /><set label='Week 4' value='15700' /></chart>");
myChart.render("chartContainer");
Is it possible to disable ondemand load and load the other 2 scripts manually?
Or anyone suggest any other fix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需加载其他脚本即可。 FusionCharts 的外部脚本加载器负责处理这个问题。按以下顺序执行:
Simply load the other scripts. The external script loader of FusionCharts takes care of that. Do it in the following order: