网和打印图表 [英] web and print charts

查看:165
本文介绍了网和打印图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要在ASP.NET MVC应用程序中显示图表,但使用应用程序的人员需要能够将图表打印到纸上,并将它们保存为演示文稿中使用的图像。

We have a requirement to display charts in an ASP.NET MVC app but the people using the app will need to be able to print the charts to paper and also save them as an image for use in presentations.

他们需要高质量的打印/现有版本,在我看来,基于网络的图表工具只是 - 为web优化。

They need to be high quality for the print/present versions and it seems to me that the web based charting tools are just that - optimised for web.

我的工作历史上使用融合图,但获得的质量,已经逃避了他们。

The co i work for have historically used fusion charts but getting the quality out of that has eluded them.

如果我们必须构建一个完整的过程外图表构建器,通过电子邮件向用户发送更高质量的图像,这是很好的 - 如果需要,他们有预算。

If we have to build a whole separate "out of process" chart builder that emails the higher quality images to the user that is fine - they have the budget if it's needed. I'd really rather not keep chart code in more than one place though.

有人在.NET土地中解决了这个问题吗?

Has anyone solved this in .NET land?

推荐答案

我不能涉及.NET部分,但我没有看到它与演示文稿和可视化需求的相关性。如果你正在开发MVC,你可以让你的视图独立于你的模型和控制部分。

I can't relate to the .NET part, but I don't see the relevancy of it to the presentation and visualization needs. If you are developing MVC, you can let your View to be independent of your Model and Control parts.

我认为你可以使用HTML5 / JavaScript表示框架您的桌面/浏览器和您的打印/演示需求。

I think that you can use HTML5/JavaScript presentation frameworks for it for both your desktop/browser and your print/presentation needs.

您可以使用基于SVG的演示框架,您可以扩展到任何分辨率。一个非常好的可视化框架是D3(例如, http://mbostock.github.com/ d3 / ex / bullet.html )。

You can use a presentation framework that is based on SVG, which you can scale to any resolution. A very good visualization framework is D3 (for example, http://mbostock.github.com/d3/ex/bullet.html).

然后,您可以使用PhantomJS http://www.phantomjs。 org / 用于这些图表的无头渲染,用于打印和嵌入在表示中作为图像。

You can then use PhantomJS http://www.phantomjs.org/ for headless rendering of these charts, for printing and embedding in presentation as images.

这篇关于网和打印图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆