2020-05-24 17:27:42 +09:00
|
|
|
@extends('user.stats.base')
|
2017-11-05 01:26:52 +09:00
|
|
|
|
2019-01-08 23:27:48 +09:00
|
|
|
@section('title', $user->display_name . ' さんのグラフ')
|
|
|
|
|
2017-11-07 00:22:40 +09:00
|
|
|
@push('head')
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css" />
|
|
|
|
@endpush
|
|
|
|
|
2020-05-24 17:27:42 +09:00
|
|
|
@section('stats-content')
|
2017-11-07 00:22:40 +09:00
|
|
|
<h5 class="my-4">Shikontribution graph</h5>
|
2017-11-07 00:39:07 +09:00
|
|
|
<div id="cal-heatmap" class="tis-contribution-graph"></div>
|
2017-11-07 00:22:40 +09:00
|
|
|
<hr class="my-4">
|
2020-05-24 17:27:42 +09:00
|
|
|
<h5 class="my-4">月間チェックイン回数</h5>
|
2018-01-04 14:50:14 +09:00
|
|
|
<canvas id="monthly-graph" class="w-100"></canvas>
|
2018-01-04 15:52:04 +09:00
|
|
|
<hr class="my-4">
|
2019-01-02 14:44:31 +09:00
|
|
|
<h5 class="my-4">時間別チェックイン回数</h5>
|
|
|
|
<canvas id="hourly-graph" class="w-100"></canvas>
|
|
|
|
<hr class="my-4">
|
|
|
|
<h5 class="my-4">曜日別チェックイン回数</h5>
|
|
|
|
<canvas id="dow-graph" class="w-100"></canvas>
|
2017-11-07 00:22:40 +09:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('script')
|
2019-03-08 06:53:13 +09:00
|
|
|
<script id="graph-data" type="application/json">@json($graphData)</script>
|
|
|
|
<script src="{{ mix('js/vendor/chart.js') }}"></script>
|
2019-03-05 01:04:20 +09:00
|
|
|
<script src="{{ mix('js/user/stats.js') }}"></script>
|
2019-03-08 06:53:13 +09:00
|
|
|
@endpush
|