工具用于构建图表创建/缓存服务器端渲染图像图表服务器? [英] Tools for building charting server that creates / caches server-side rendered image charts?

查看:191
本文介绍了工具用于构建图表创建/缓存服务器端渲染图像图表服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组应用程序正在修建在不同的平台,这就需要图表。而不是拉数据到应用程序和本地渲染图,我想在排行榜上的图像,这是处理服务器端,而不是拉。

I have a set of apps being built on different platforms, which need charts. Rather than pull the data into the app and render the charts natively, I wanted to instead pull in the charts as images, which are processed server side.

我在网上搜索,看看其他人已经这样做了,但我无法找到任何东西。有没有人知道任何库或工具将:

I searched online to see if others have done this, but I can't find anything. Is anyone aware of any libraries or tools that will:


  1. 生成一个图表

  2. 具有某种静态文件的服务的图表

  3. 是否某种图表缓存/到期,因此不会进行调用,每次渲染?

在理想情况下,这是东西会扩展上S3左右。

Ideally this is something that would scale on S3 or so.

我发现像 Highcharts-服务器渲染,但它只做#1从上面的列表,并且仍然需要工作要做,#2和3。

I've found something like Highcharts-server-render, but it only does #1 from the list above, and would still require work to do #2 and 3.

推荐答案

在这里有趣的问题。你知道会被要求的图表类型的所有排列?是数据的静态的图表是基于?你控制图的更新?如果你能回答是那些3,那么你可以尝试一下。

Interesting problem here. Do you know all permutations of the types of charts that would be requested? Is the data static that the charts are based on? Do you control the updating of the charts? If you can answer yes to those 3 then you can try it.


  • 的HighCharts导出服务器肯定是要走的路。

  • 发送您的所有图表排列作为单独的JSON调用的渲染器。

  • 图表的每个渲染之后,复制图像的一些唯一标识的名称为Web访问的文件夹中。

  • 即成了图像,从Web访问的文件夹的静态链接。

配件2-3,你可以在code的各种口味写。似乎有点洁癖的我,但可能的。

Parts 2-3 you could write in various flavors of code. Seems a bit over the top to me, but possible.

或者...

有highcharts呈现图表喜欢它通常会和你仍然有导出服务器来服务他们。老实说,我无法看到你为什么会想使用动态图表库不创建动态和交互式图表。

Have highcharts render the chart like it normally would and you still have the export server to serve them up. I honestly cant see why you would want to use a dynamic charting library to not create dynamic and interactive charts.

这篇关于工具用于构建图表创建/缓存服务器端渲染图像图表服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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