sample chart
This commit is contained in:
@@ -123,23 +123,16 @@ class SRPAdminController extends Controller
|
|||||||
|
|
||||||
$reasons->addStringColumn('Reasons')
|
$reasons->addStringColumn('Reasons')
|
||||||
->addNumberColumn('Percent')
|
->addNumberColumn('Percent')
|
||||||
->addRow(['Check Reviews', 5])
|
->addRow(['Approved', 50])
|
||||||
->addRow(['Watch Trailers', 2])
|
->addRow(['Denied', 48])
|
||||||
->addRow(['See Actors Other Work', 4])
|
->addRow(['Under Review', 2]);
|
||||||
->addRow(['Settle Argument', 89]);
|
|
||||||
|
|
||||||
$lava->PieChart('IMDB', $reasons, [
|
$lava->PieChart('SRP Stats', $reasons, [
|
||||||
'title' => 'Reasons I visit IMDB',
|
'title' => 'SRP Stats',
|
||||||
'is3D' => true,
|
'is3D' => true,
|
||||||
'slices' => [
|
|
||||||
['offset' => 0.2],
|
|
||||||
['offset' => 0.25],
|
|
||||||
['offset' => 0.3]
|
|
||||||
]
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
return view('srp.admin.statistics')->with('reasons', $reasons)
|
return view('srp.admin.statistics')->with('lava', $lava);
|
||||||
->with('lava', $lava);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div id="chart-div"></div>
|
<div id="chart-div"></div>
|
||||||
{!! $lava->render('PieChart', 'IMDB', 'chart-div') !!}
|
{!! $lava->render('PieChart', 'SRP Stats', 'chart-div') !!}
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
Reference in New Issue
Block a user