how do i created graph multi series in laravel? this is my code, please tell me if i have error..
<?PHP echo"<div style='width:100opx;'><SCRIPT LANGUAGE='Javascript' SRC='http://localhost/AnalisisKata/public/libs/assets/js/FusionCharts.js'></SCRIPT>"; $FC = new FusionCharts("MSColumn3D","500","300"); $FC->setSWFPath("FusionCharts/"); $strParam="caption=Grafik Komentar; xAxisName=keyword ; yAxisName=Jumlah; decimalPrecision=0"; $FC->setChartParams($strParam); foreach($keyword as $key => $keyw) { $i=0; # Create a new dataser $FC->addDataset("Positive"); # Add chart values for the above dataset foreach($pattern as $patr => $patn) { if($patn->id_keyword == $keyw->id) {$i++; $nama = $patr->nama_keyword; }; # Create second dataset # Add chart values for the second dataset }; $FC->addDataset("Negative"); foreach($patern as $patt => $pate) { if($pate->id_keyword == $keyw->id) { $i++; $nama1 = $pate->nama_keyword; }}; $FC->addChartData("$i","name=$nama","name1=$nama1"); }; $FC->renderChart(); echo"</div>"; ?>Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community