Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3b5bcc1a00
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.419 kb
<?php
$group = get_var('fact-group');
$series = array_filter($columns, function ($x) use ($group) { return $x == $group ? false : true; });
$wtfdata = array();
foreach ($result as $row)
{
foreach ($series as $col)
{
$wtfdata[$col][] = array( $row[$group], $row[$col]);
}
}
foreach ($series as $col)
{
$finalfingdata[] = array( 'label' => $col, 'data' => $wtfdata[$col]);
}
print json_encode($finalfingdata);
?>
Jump to Line
Something went wrong with that request. Please try again.