如何在PHP上显示JFreechart?可能大部分都遇到这种情况,在JSP上的servlet能完全的显示出JFreechart画的统计图,但是和其他语言混合运用就不能显示了 我现在也遇到这个问题,想了半个小时终于弄明白了,实现的过程还是很简单的。(个人经验总结而已)
解决的思路:
1.先将JFreechart生成的图片保存在web 服务器上。 2.然后在JSP上用标签显示 3.通过JS将JSP导入PHP页面 这样就实现了。部分getColumnChart.jsp源码:
<div class="codetitle"><a style="CURSOR: pointer" data="3652" class="copybut" id="copybut3652" onclick="doCopy('code3652')"> 代码如下: