FusionCharts 在 Javascript 中渲染而不打印
我正在免费使用 fusioncharts 并创建一些 3d 饼图,如下所示...
<div style="margin:0 auto;" id="chart1Adiv">FusionCharts</div>
<script language="JavaScript">
var chart1A = new FusionCharts("./fusion_charts/FCF_Pie3D.swf","chart1Adiv","300","200");
chart1A.setDataXML("<graph caption='1A' bgColor='ffffff' decimalPrecision='0' showPercentageValues='1' showNames='1' showValues='1' showPercentageInLabel='1' pieYScale='45' pieBorderAlpha='40' pieFillAlpha='70' pieSliceDepth='15' pieRadius='75'><set name='Pass' value='100' color='0000FF' /><set name='Fail' value='25' color='FF0000' /></graph>"");
chart1A.render("chart1Adiv");
</script>
图表在网页上渲染得很好。 FusionCharts 免费文档如下:
To print a chart displayed in browser window, just right click on it and select Print or still better, use the browser's print button.
如果我右键单击实际饼图并从上下文菜单中选择打印,则将打印图表。我的问题是,在网页上我生成了多个饼图,并且需要打印充满饼图的整个页面,但是当我从文件菜单中选择“文件”->“打印”时,没有任何饼图打印,而是打印其余的饼图页面中的 html 确实如此。其他人有这个问题和/或这个问题的解决方案吗?到目前为止,我已经在 Firefox 和 Chrome 中尝试过此操作,但没有成功。
谢谢
I'm using fusioncharts free and creating some 3d pie charts like so...
<div style="margin:0 auto;" id="chart1Adiv">FusionCharts</div>
<script language="JavaScript">
var chart1A = new FusionCharts("./fusion_charts/FCF_Pie3D.swf","chart1Adiv","300","200");
chart1A.setDataXML("<graph caption='1A' bgColor='ffffff' decimalPrecision='0' showPercentageValues='1' showNames='1' showValues='1' showPercentageInLabel='1' pieYScale='45' pieBorderAlpha='40' pieFillAlpha='70' pieSliceDepth='15' pieRadius='75'><set name='Pass' value='100' color='0000FF' /><set name='Fail' value='25' color='FF0000' /></graph>"");
chart1A.render("chart1Adiv");
</script>
The graphs render just fine on the web page.
FusionCharts Free documentation reads:
To print a chart displayed in browser window, just right click on it and select Print or still better, use the browser's print button.
If I right click the actual pie chart and select print from the context menu the graph will print. My problem is that on the web page I'm generating more than one pie chart and need to print the entire page full of pie charts but when I select File->Print from the file menu none of the pie charts print but the rest of the html from the page does. Anyone else have this problem and/or a solution to this problem? So far I've tried this in both Firefox and Chrome with no success.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能会有所帮助:http://www.fusioncharts.com/forum/主题11190-33-1.aspx#bm11207
This may help: http://www.fusioncharts.com/forum/Topic11190-33-1.aspx#bm11207