Jump to content

creating a graph


Jocka

Recommended Posts

whats the best way to do this? I'm not sure I want to use premade scripts on a site I'm building.

I was considering the possibility of being able to create graphs without images, just css. Would this be possible?

Say I save information in the database such as hit counts, registered (how many registered), etc. Could I pull that down and create a graph with css to stretch a div field to a certain length according to how many hits there are ?

Or is there a better way to do this? I looked into JpGraph but it's just a tad bit slow for what I need. I need the graph done in at least 1 second, JpGraph was taking up to 30. I figure if I didn't create images then this would be easiest on the load time. Again though, if you have any other suggestions on a better way, then please let me know.
Link to comment
https://forums.phpfreaks.com/topic/28863-creating-a-graph/
Share on other sites

lol yea I saw that but like I said, I don't want to use premade scripts (anyone else's scripts). It might be a good script to look at to get an idea of how to do it with images but i'd prefer to do it without images right now. I found some things on google using CSS and it looked fairly easy to do so I think I'll go with it for now (easier is faster). After the competition is over i'll check out the scripts and see what they wrote that made them look so good.
Link to comment
https://forums.phpfreaks.com/topic/28863-creating-a-graph/#findComment-132137
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.