Support the ongoing development of Laravel.io →
Testing

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>"; ?>

laravel development services

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.