hey ok i'm a newbie and so i need some help and direction...ok i am building a search function that depending on configuration by user will output different types of graphs (ex. user wants no. of sales for each month for last 3 months). Ok thats fine i know how to create a graph but the problem is the variables being passed.
OK, this is the way I planned to do it:
1. Search module page (will call by img tag the graph creation script, 2 below)
2. image_graph page (where querying is performed and graph created)
Ok the problem here is with the querying...how in the world do I pass the values from my search to the query in the graph page???? I made a test which of course didn't work:
Search module code segment:
$title="hello";
print"<img src=image_graph_page.php>";
image_graph_page.php where $title from 1. will be used:
$Graph->add(
Image_Graph::vertical(
Image_Graph::factory('title', array($title, 9)),
Image_Graph::vertical(
$Plotarea = Image_Graph::factory('plotarea'),
$Legend = Image_Graph::factory('legend'),
90
),
5
)
);
Again, the title wont show...please help! do you know where i can find good resources online? i have already gone through the most importants ones - it seems most are concerned with the creationg and manipulation of the graph itself but not how to incorporate into other functionality.
Thanks a million!