Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Charting, serverside or client side?

Tags:

java

jsp

charts

I'm trying to establish whether we are better off rendering charts serverside and pushing them to the browser as images or using a javascript charting library to draw the charts clientside.

I'm looking at the JFreeChart and Dojo Charting libraries, my target is an existing JSP site that runs in JBoss.

Does anyone have any experience with this who might be able to point out the merits/flaws of each.

At the moment I'm seeing Client side rendering as being a hell of a lot more efficient unless the dataset is Huge.

like image 809
Omar Kooheji Avatar asked Mar 20 '09 16:03

Omar Kooheji


People also ask

How do I know if my site is server-side or client-side?

Right click anywhere on the site and select “View Source” (Some websites disable this functionality, so you may want to try another) This will redirect you to the site's full HTML document where all items inside are considered to be server-side rendered.

Which is better server-side or client-side?

Between the two options, server-side rendering is better for SEO than client-side rendering. This is because server-side rendering can speed up page load times, which not only improves the user experience, but can help your site rank better in Google search results.

What is client-side and server-side in web application?

Client-side means that the processing takes place on the user's computer. It requires browsers to run the scripts on the client machine without involving any processing on the server. Server-side means that the processing takes place on a web server.

Is HTML server or client-side?

Markup languages like HTML and CSS are interpreted by the browser on the client side.


1 Answers

I would like to recommend a library I wrote: charts4j which is a server-side charting solution. Here are some features:

  • Supports nearly all features of the Google Chart API
  • Hides the ugly details of creating the URL parameters that are necessary for communicating with the Google Chart API
  • Can be incorporated into any Internet enabled Swing or web application environment (JSP/Servlet, GWT, Spring MVC, etc.)
  • 100% pure core Java solution. No need for special graphics libraries, etc.
  • Super-scalable & Lightweight. Only one 160Kb jar and an Internet connection required
  • Well documented
  • Best of all, it is FREE!

Here are some testimonials. Also check out the FAQ.

I have an example of incorporating this technology into a Spring MVC (using JSPs) app on my blog.

like image 111
Julien Chastang Avatar answered Oct 11 '22 18:10

Julien Chastang