在j2ee Web应用程序中以图表方式绘制服务器端或客户端的最佳方法是什么? [英] Which is the best way of charting server side or client side in j2ee web application?

查看:59
本文介绍了在j2ee Web应用程序中以图表方式绘制服务器端或客户端的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在j2ee Web应用程序中区分客户端图表和服务器图表.哪种方法最好?

please give a difference between client side charting and server side charting in j2ee web application .Which is the best way?

推荐答案

这取决于您通过图表了解的内容,无论是计算数据还是组成整个图表.我认为您正在谈论组成整个图表.

如果在服务器上执行此操作,则需要将图表组成为图片,然后将该图片(图表)发送给客户端(在浏览器中).由于明显的原因,我不建议您,更不用说您无法与图表进行互动了.

我建议在服务器端计算图表数据,将其发送到客户端,然后使用JavaScript库显示图表.我建议 HighCharts [ ^ ],我以前用过,并且效果很好.
It depends what you understand by charting, whether it''s the computing of data or composing the whole chart. I assume you''re talking about composing the whole chart.

If you do it on the server, you''ll want to compose the chart as a picture, and then send that picture (chart) to the client (in the browser). I wouldn''t recommend that for the obvious reasons, not to mention you''d have no way of interacting with the chart.

What I''d recommend is computing the chart data server-side, send it to the client, and there use a JavaScript library to display your chart. I''d recommend HighCharts[^], I''ve used it before, and works well.


这篇关于在j2ee Web应用程序中以图表方式绘制服务器端或客户端的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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