dashboard.js 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* globals Chart:false, feather:false */
  2. (function () {
  3. 'use strict'
  4. feather.replace({ 'aria-hidden': 'true' })
  5. // Graphs
  6. var ctx = document.getElementById('myChart')
  7. // eslint-disable-next-line no-unused-vars
  8. var myChart = new Chart(ctx, {
  9. type: 'line',
  10. data: {
  11. labels: [
  12. 'الأحد',
  13. 'الإثنين',
  14. 'الثلاثاء',
  15. 'الأربعاء',
  16. 'الخميس',
  17. 'الجمعة',
  18. 'السبت'
  19. ],
  20. datasets: [{
  21. data: [
  22. 15339,
  23. 21345,
  24. 18483,
  25. 24003,
  26. 23489,
  27. 24092,
  28. 12034
  29. ],
  30. lineTension: 0,
  31. backgroundColor: 'transparent',
  32. borderColor: '#007bff',
  33. borderWidth: 4,
  34. pointBackgroundColor: '#007bff'
  35. }]
  36. },
  37. options: {
  38. scales: {
  39. yAxes: [{
  40. ticks: {
  41. beginAtZero: false
  42. }
  43. }]
  44. },
  45. legend: {
  46. display: false
  47. }
  48. }
  49. })
  50. })()