Jump to content

Has anyone created graphs on php based on functions?


moose-en-a-gant

Recommended Posts

I want to plot the positive side of the function 1/x^2

 

For now I may simply look one up, trace it in GIMP and use it as a background with a varying height div as columns but I'm curious if someone has done graphing whether it is pChart or GD or whatever...

 

I just want bar graphs that react to varying varialbe values <- redundant?

 

I'd appreciate any thoughts.

Link to comment
Share on other sites

I'm not stuck on anything, I haven't tried to create graphs yet.

 

I don't even know if I need it actually, although a bar graph I imagine is better / easier than say changing / adding css elements to simulate bars of graphs

 

so maybe I do need to get bar graphs working, the inverse square would have been in the background and the bars are related to that curve however the curve is sharper than I imagined it, it wasn't really supposed to be "to scale" just to show that on the left there is more and towards the right decreases to almost nothing

Link to comment
Share on other sites

Thanks for the responses.

 

I will look into it and report my findings.

I use javascript actually "sort of heavily" lately

It concerns me that it may not be supported for some, but as far as numbers go are we talking like 5% of the total computer users?

 

I don't know.

 

On a past project, I used JavaScript on a PC under my control (or it might have been the server), used PHP to convert it to an image, and had the user's browser view the image.  I might have some of the detail wrong as it was a while ago, however, it worked perfect.

 

Or you could just tell non-JavaScript users "no fancy graphs for you!"

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.