Welcome to WebmasterWorld Guest from 54.167.83.224

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP vs. Javascript Graphing

     
10:57 pm on Feb 20, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 7, 2002
posts: 64
votes: 0


Hi all,

I'm going to be creating a heavily graph-based website and am weighing the pros and cons of various third-party graph generators. For PHP libraries, they seem really easy to tie into information from databases with the downside of having to do the generation server-side. For Javascript (mostly JQuery based) libraries, the benefit is the generation is done client side but getting the data back through from PHP to Javascript seems to be quite a headache. Here is my list so far, any thoughts or recommendations?

[jpgraph.net...]
[pchart.sourceforge.net...]
[graphpite.sourceforge.net...]
[mbostock.github.com...]
[jqplot.com...]
[code.google.com...]
[omnipotent.net...]


Thanks in advance.
12:13 am on Feb 21, 2012 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14621
votes: 85


It's really simple, do you intend to let the search engines index that content and potentially index those graphs?

If it's javascript it'll only show up in screen shots, if it's PHP done server side it can be indexed.

Another issue is speed, the content can be delivered faster and it's lower server resources if it's javascript based as the work if then done in the browser, not the server.

If it wasn't for needing to show graphs on iPhone/iPad, I'd continue to be using the original free version of FusionCharts, which are Flash, but really good and really cool.
12:14 pm on Feb 21, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Apr 30, 2007
posts:1394
votes: 0


I have used some of the packages you posted. They will do graphs but best to pick up one you understand, because you will be making changes to the framework. That's the hard part in my experience. The js to PHP exchange wasn't a problem for my applications after getting through the graph framework.

Not sure about the graph-based site you mentioned, I assume statistics based, if you need advanced rendering/3D you may want to go with webgl right upfront.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members