diff options
| author | horus | 2020-10-17 13:26:54 +0200 |
|---|---|---|
| committer | horus | 2020-10-17 13:26:54 +0200 |
| commit | 253121dcd8f8d1ad81076d08bfa4d24074198d96 (patch) | |
| tree | e2ace9f87af3cf9d0537d057df319d80a2c6b313 /resources/views | |
| parent | dceb4d4c8cb94134a0631059a1151f9449ee3fe6 (diff) | |
| download | senpai-253121dcd8f8d1ad81076d08bfa4d24074198d96.tar.gz | |
Option to show real score.
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, |
