I did it, for the graphing I used:
html-graphs (v3.4)
and
Code:
$poll = mysql_query("SELECT pollid,question,options,votes FROM poll ");
while ($pollinfo = mysql_fetch_array($poll)) {
$splitoptions = explode('|||', $pollinfo['options']);
$splitvotes = explode('|||', $pollinfo['votes']);
$pollquestion = $pollinfo['question'];
$id = $pollinfo['pollid'];
}
require('graphs.inc.php');
$graph = new BAR_GRAPH("hBar");
$graph->values = $splitvotes;
$graph->labels = $splitoptions;
$graph->graphBGColor = "white";
$graph->labelSize = 12;
$graph->labelFont = "Arial";
$graph->graphPadding = 0;
$graph->barColor = "#C0D0C0,#80D080";
$graph->barBGColor = "#ffffff";
$graph->labelColor = "#000000";
$graph->legendColor = "#00A000";
$graph->legendBGColor = "#D0F0D0";
echo $graph->create();
Result