diff options
Diffstat (limited to 'resources/views')
| -rw-r--r-- | resources/views/anime.blade.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/resources/views/anime.blade.php b/resources/views/anime.blade.php index 0d00cb4..804603c 100644 --- a/resources/views/anime.blade.php +++ b/resources/views/anime.blade.php @@ -59,14 +59,28 @@ new Chart(document.getElementById('score_chart'), { type: 'line', data: { labels: {!! json_encode($anime["chart_label_score"]) !!}, - datasets: [{ + datasets: [ + { label: 'Average Score on MAL', data: {!! printScoreData($anime["score"]) !!}, file: 'false', borderColor: 'rgb(75, 192, 192)', lineTension: 0.01, backgroundColor: 'rgb(255,255,255,0)', - }] + } + +@if ( \Request::input('showRealScore') ) + ,{ + label: 'Real calculated Score', + data: {!! printScoreData($anime["calculated_score"]) !!}, + file: 'false', + borderColor: 'grey', + lineTension: 0.01, + backgroundColor: 'rgb(255,255,255,0)', + } +@endif + + ] }, options: { maintainAspectRatio: true, |
