Dashboard sipadu mbip
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.

invoice-summary.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. "use strict";
  2. $(document).ready(function() {
  3. /*Bar chart*/
  4. var data1 = {
  5. labels: ['jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'],
  6. datasets: [{
  7. label: "Sales",
  8. backgroundColor: [
  9. '#ff5252',
  10. '#ff5252',
  11. '#ff5252',
  12. '#ff5252',
  13. '#ff5252',
  14. '#ff5252',
  15. '#ff5252',
  16. '#ff5252',
  17. '#ff5252'
  18. ],
  19. data: [65, 59, 80, 81, 56, 55, 50, 45],
  20. }, {
  21. label: "Expense",
  22. backgroundColor: [
  23. '#536dfe',
  24. '#536dfe',
  25. '#536dfe',
  26. '#536dfe',
  27. '#536dfe',
  28. '#536dfe',
  29. '#536dfe',
  30. '#536dfe',
  31. '#536dfe'
  32. ],
  33. data: [60, 69, 85, 91, 58, 50, 45, 45],
  34. }]
  35. };
  36. var bar = document.getElementById("barChart").getContext('2d');
  37. var myBarChart = new Chart(bar, {
  38. type: 'bar',
  39. data: data1,
  40. options: {
  41. barValueSpacing: 20,
  42. maintainAspectRatio: false,
  43. }
  44. });
  45. });