public function FrxSVGGraphTest::arrayData in Forena Reports 8
Parameters
array $array:
Return value
array Helper function
File
- tests/
src/ Unit/ Renderer/ FrxSVGGraphTest.php, line 46
Class
- FrxSVGGraphTest
- Graph test. @group Forena @require module forena @coversDefaultClass \Drupal\forena\FrxPlugin\Renderer\FrxSVGGraph
Namespace
Drupal\Tests\forena\Unit\RendererCode
public function arrayData(array $array) {
$new_array = [];
foreach ($array as $r => $row) {
$new_row = [];
foreach ($row as $key => $value) {
$new_row[$key] = $value['data'];
}
$new_array[] = $new_row;
}
return $new_array;
}