설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.blade.php 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @extends('admin.layouts.app')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-md-6">
  5. <figure class="highcharts-figure">
  6. <div id="reguler-points"></div>
  7. </figure>
  8. </div>
  9. <div class="col-md-6">
  10. <figure class="highcharts-figure">
  11. <div id="event-points"></div>
  12. </figure>
  13. </div>
  14. </div>
  15. @endsection
  16. @push('js')
  17. <style>
  18. .highcharts-title{
  19. display: none;
  20. }
  21. .highcharts-a11y-proxy-button{
  22. display: none;
  23. }
  24. </style>
  25. <script src="{{ asset('assets') }}/js/highchart/highcharts.js"></script>
  26. <script src="{{ asset('assets') }}/js/highchart/exporting.js"></script>
  27. <script src="{{ asset('assets') }}/js/highchart/exporting-data.js"></script>
  28. <script src="{{ asset('assets') }}/js/highchart/accessibility.js"></script>
  29. <script src="{{ asset('assets') }}/js/custom.js"></script>
  30. <script src="{{ asset('assets') }}/js/custom-graph.js"></script>
  31. <script>
  32. var users = {!! json_encode($reguler_user_all) !!};
  33. var points = {!! json_encode($reguler_point_all) !!};
  34. Highcharts.chart('reguler-points', {
  35. chart: {
  36. type: 'column'
  37. },
  38. title: {
  39. text: 'Kelasmen Reguler Point'
  40. },
  41. subtitle: {
  42. text: 'Kelasmen Reguler Point'
  43. },
  44. xAxis: {
  45. categories: users,
  46. crosshair: true
  47. },
  48. yAxis: {
  49. min: 0,
  50. title: {
  51. text: 'points'
  52. }
  53. },
  54. tooltip: {
  55. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  56. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  57. '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
  58. footerFormat: '</table>',
  59. shared: true,
  60. useHTML: true
  61. },
  62. plotOptions: {
  63. column: {
  64. pointPadding: 0.2,
  65. borderWidth: 0
  66. }
  67. },
  68. series: [
  69. {
  70. name: 'Reguler Point',
  71. data: points
  72. }
  73. ]
  74. });
  75. </script>
  76. <script>
  77. var users = {!! json_encode($event_user_all) !!};
  78. var points = {!! json_encode($event_point_all) !!};
  79. Highcharts.chart('event-points', {
  80. chart: {
  81. type: 'column'
  82. },
  83. title: {
  84. text: 'Kelasmen Event Point'
  85. },
  86. subtitle: {
  87. text: 'Kelasmen Event Point'
  88. },
  89. xAxis: {
  90. categories: users,
  91. crosshair: true
  92. },
  93. yAxis: {
  94. min: 0,
  95. title: {
  96. text: 'points'
  97. }
  98. },
  99. tooltip: {
  100. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  101. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  102. '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
  103. footerFormat: '</table>',
  104. shared: true,
  105. useHTML: true
  106. },
  107. plotOptions: {
  108. column: {
  109. pointPadding: 0.2,
  110. borderWidth: 0
  111. }
  112. },
  113. series: [
  114. {
  115. color: '#F7A35C',
  116. name: 'Event Point',
  117. data: points
  118. }
  119. ]
  120. });
  121. </script>
  122. @endpush