Licitator 1.0
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.

88 lines
1.6 KiB

5 years ago
  1. /*** First Chart in Dashboard page ***/
  2. $(document).ready(function() {
  3. info = new Highcharts.Chart({
  4. chart: {
  5. renderTo: 'load',
  6. margin: [0, 0, 0, 0],
  7. backgroundColor: null,
  8. plotBackgroundColor: 'none',
  9. },
  10. title: {
  11. text: null
  12. },
  13. tooltip: {
  14. formatter: function() {
  15. return this.point.name +': '+ this.y +' %';
  16. }
  17. },
  18. series: [
  19. {
  20. borderWidth: 2,
  21. borderColor: '#F1F3EB',
  22. shadow: false,
  23. type: 'pie',
  24. name: 'Income',
  25. innerSize: '65%',
  26. data: [
  27. { name: 'load percentage', y: 45.0, color: '#b2c831' },
  28. { name: 'rest', y: 55.0, color: '#3d3d3d' }
  29. ],
  30. dataLabels: {
  31. enabled: false,
  32. color: '#000000',
  33. connectorColor: '#000000'
  34. }
  35. }]
  36. });
  37. });
  38. /*** second Chart in Dashboard page ***/
  39. $(document).ready(function() {
  40. info = new Highcharts.Chart({
  41. chart: {
  42. renderTo: 'space',
  43. margin: [0, 0, 0, 0],
  44. backgroundColor: null,
  45. plotBackgroundColor: 'none',
  46. },
  47. title: {
  48. text: null
  49. },
  50. tooltip: {
  51. formatter: function() {
  52. return this.point.name +': '+ this.y +' %';
  53. }
  54. },
  55. series: [
  56. {
  57. borderWidth: 2,
  58. borderColor: '#F1F3EB',
  59. shadow: false,
  60. type: 'pie',
  61. name: 'SiteInfo',
  62. innerSize: '65%',
  63. data: [
  64. { name: 'Used', y: 65.0, color: '#fa1d2d' },
  65. { name: 'Rest', y: 35.0, color: '#3d3d3d' }
  66. ],
  67. dataLabels: {
  68. enabled: false,
  69. color: '#000000',
  70. connectorColor: '#000000'
  71. }
  72. }]
  73. });
  74. });