django Web 应用程序中的图表 [英] Charts in django Web Applications

查看:33
本文介绍了django Web 应用程序中的图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在使用 django 开发的 Web 应用程序中嵌入图表.

I want to Embed a chart in a Web Application developed using django.

我遇到了 Google 图表 APIReportLab, PyChartMatPlotLibChartDirector

I have come across Google charts API, ReportLab, PyChart, MatPlotLib and ChartDirector

我想在服务器端执行此操作,而不是将 AJAX 请求发送到 Google 图表 API,因为我还想将图表嵌入到 PDF 中.

I want to do it in the server side rather than send the AJAX request to Google chart APIs, as I also want to embed the chart into the PDF.

哪个是最好的选择,一个相对于另一个的优缺点是什么.

Which is the best option to use, and what are the relative merits and demerits of one over the other.

推荐答案

另一个选择是 开罗图.

我们选择了 matplotlib,而不是其他人,在我们的一个 django 应用程序中进行了一些严肃的绘图,主要是因为它是唯一一个给我们提供了我们所需要的控制类型的应用程序.

We picked matplotlib over the others for some serious graphing inside one of our django apps, primarily because it was the only one that gave us exactly the kind of control we needed.

生成 PNG 的性能对我们来说很好,但......它是一个高度专业化的应用程序,每天登录不到 10 次.

Performance generating PNG's was fine for us but... it was a highly specialized app with less than 10 logins a day.

这篇关于django Web 应用程序中的图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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