View unanswered posts | View active topics It is currently Mon Jul 24, 2017 12:36 pm

Reply to topic  [ 3 posts ] 
Small Graph 
Author Message
New pChart user
New pChart user

Joined: Wed Jan 15, 2014 4:15 am
Posts: 2
Post Small Graph
I am going in a loop and generating small fast graphs. It seems that the all the graphs that are generated after the first one are simply copies of the first. It doesn't seem to redraw the graph with new data. How can i call this program with different data array to plot different small graphs on the same page?

// Standard inclusions

// Dataset definition
$DataSet = new pData();

// SESSION['USEDGB'] changes each loop in the calling program

// Initialise the graph
$Test = new pChart(100,30);
$Test->loadColorPalette("pchart/palettes/spring.color", TRUE);

// Draw the line graph

// Finish the graph

Wed Jan 15, 2014 4:20 am
pChart user
pChart user

Joined: Mon Jun 04, 2012 5:41 pm
Posts: 6
Post Re: Small Graph
I am by no means an expert on pchart. But, maybe a suggestion may help or spark an idea for you?

Are you using an "img src=" statement in another PHP to call this one? I have multiple charts on one of my pages, and I use this method. Also, perhaps changing the name of this php image to be different each time(like adding the timestamp), may force it to create a new image?

Wed Jan 15, 2014 1:10 pm
New pChart user
New pChart user

Joined: Wed Jan 15, 2014 4:15 am
Posts: 2
Post Re: Small Graph
Thanks for your suggestion. But that $_SESSION['compid'] is just that which changes each time so the image name is definitely different.

Any other pointers?

Wed Jan 15, 2014 10:11 pm
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: