homepage Welcome to WebmasterWorld Guest from 54.211.34.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP vs. Javascript Graphing
firefly2442

10+ Year Member



 
Msg#: 4419736 posted 10:57 pm on Feb 20, 2012 (gmt 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...]
https://code.google.com/p/flot/
[omnipotent.net...]


Thanks in advance.

 

incrediBILL

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



 
Msg#: 4419736 posted 12:13 am on Feb 21, 2012 (gmt 0)

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.

enigma1

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4419736 posted 12:14 pm on Feb 21, 2012 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved