PHP _google chart _ multiple files' data in 1 graph ... how to ? _ basic question
In google chart,
<img src="<?php print $barChart->getUrl(); ?>" /> <br> for today.
is used to create the img corresponding to the graph.
I have used LOOPS to read multiple text files, then extract values and put them in an array, then use this array to pass it to the $barChart->addDataSet
function.
The problem is that only the graph for day 1 (i.e. file 1) gets displayed. Day 2 needs either:
- I NEED to CREATE A NEW STACK开发者_JAVA技巧 FOR each file. How do I achieve this? or
- I need to create separate graphs for each file on the same WEBPAGE. How do I achieve this?
Please help!!
It would be better if I can create a separate stack for each file.
精彩评论