My graph is not getting generated properly with Chartist graph library It wants data generated as series: [ [2,4,5,5,6], [6,4,8,7] ] I tried to do it with this
<?php echo "[". $comma_separated."],[". $comma_separated1."]"?>
$comma_separated = [2,4,5,5,6] $comma_separated1 = [6,4,8,7]
and I want $result = [ [2,4,5,5,6] , [6,4,8,7] ]
but only first array gets displayed in graph not second one ie $comma_separated1. Static entry of these things is generating it properly.
Is there any way that I can join these two strings into a single one with a "],[" between them and not between the contents in array.