|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 12/20/2007 2:43:32 AM
Posts: 2,
Visits: 3
|
|
| Hi, I want to add to the following file i created to show how many games there have been played 2 extra line. No i have this: <?php $strXML = "<graph baseFontSize='10' bgColor='b84217' caption='Hits per dag' subCaption='' pieSliceDepth='20' showvalues='0' showBorder='0' showNames='1' rotateNames='1' formatNumberScale='1' numberSuffix=' hits' decimalPrecision='0'>"; // Fetch all factory records $strQuery = mysql_query("SELECT *, DATE_FORMAT(datum, '%d-%m-%Y') AS maand FROM perdag ORDER BY datum DESC LIMIT 0,12") or die (mysql_error()); //Iterate through each factory while($ors = mysql_fetch_array($strQuery)) { //Generate <set name='..' value='..' /> $strXML .= "<set name='" . $ors['maand'] . "' value='" . $ors['hits'] . "' />"; //free the resultset } //Finally, close <graph> element $strXML .= "</graph>"; //Create the chart - Pie 3D Chart with data from $strXML echo renderChart("grafieken/Code/FusionCharts/FCF_Line.swf", "", $strXML, "Grafiek3", 400, 250, false, false); ?>
How can i add to extra lines? This one shows how many times the games have been played. I also want to add how many games have been played by the members and how many highscoregames have been played? I check the manual but i didnt find a sollution using php. Weccop
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884,
Visits: 1,420
|
|
| hi, Are you wishing to create Multi_Series Line Chart? Can have a look at the mult-series line chart from Documentaion.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 12/20/2007 2:43:32 AM
Posts: 2,
Visits: 3
|
|
| I did but coulnt find a example using php.
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884,
Visits: 1,420
|
|
| hi You can try the basic samples - Array Example >> MultiSeries.php and change the chart type to FCF_MSLine.swf. That will work out.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|