analysis.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. $(function () {
  2. 'use strict';
  3. var analyticsBarChartOptions = {
  4. chart: {
  5. height: 260,
  6. type: 'bar',
  7. toolbar: {
  8. show: false
  9. }
  10. },
  11. plotOptions: {
  12. bar: {
  13. horizontal: false,
  14. columnWidth: '20%',
  15. endingShape: 'rounded'
  16. },
  17. },
  18. legend: {
  19. horizontalAlign: 'right',
  20. offsetY: -10,
  21. markers: {
  22. radius: 50,
  23. height: 8,
  24. width: 8
  25. }
  26. },
  27. dataLabels: {
  28. enabled: false
  29. },
  30. colors: ['#673ab7', '#FF5C5C'],
  31. fill: {
  32. type: 'gradient',
  33. gradient: {
  34. shade: 'light',
  35. type: "vertical",
  36. inverseColors: true,
  37. opacityFrom: 1,
  38. opacityTo: 1,
  39. stops: [0, 70, 100]
  40. },
  41. },
  42. series: [{
  43. name: '2019',
  44. data: [80, 95, 150, 210, 140, 230, 300, 280, 130]
  45. }, {
  46. name: '2018',
  47. data: [50, 70, 130, 180, 90, 180, 270, 220, 110]
  48. }],
  49. xaxis: {
  50. categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'],
  51. axisBorder: {
  52. show: false
  53. },
  54. axisTicks: {
  55. show: false
  56. },
  57. labels: {
  58. style: {
  59. colors: '#333333'
  60. }
  61. }
  62. },
  63. yaxis: {
  64. min: 0,
  65. max: 300,
  66. tickAmount: 3,
  67. labels: {
  68. style: {
  69. color: '#333333'
  70. }
  71. }
  72. },
  73. legend: {
  74. show: false
  75. },
  76. tooltip: {
  77. y: {
  78. formatter: function (val) {
  79. return "$ " + val + " thousands"
  80. }
  81. }
  82. }
  83. }
  84. var analyticsBarChart = new ApexCharts(
  85. document.querySelector("#analytics-bar-chart"),
  86. analyticsBarChartOptions
  87. );
  88. analyticsBarChart.render();
  89. var options = {
  90. series: [{
  91. name: 'Sales',
  92. data: [31, 40, 28, 51, 42, 109, 100]
  93. }],
  94. chart: {
  95. height: 330,
  96. type: 'area'
  97. },
  98. dataLabels: {
  99. enabled: false
  100. },
  101. colors: ["#FF5C5C"],
  102. stroke: {
  103. curve: 'smooth'
  104. },
  105. xaxis: {
  106. categories: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
  107. },
  108. };
  109. var chart = new ApexCharts(document.querySelector("#balancehistory"), options);
  110. chart.render();
  111. // Apex start
  112. if($('#apexChart2').length) {
  113. var options2 = {
  114. chart: {
  115. type: "bar",
  116. height: 150,
  117. sparkline: {
  118. enabled: !0
  119. }
  120. },
  121. plotOptions: {
  122. bar: {
  123. columnWidth: "25%"
  124. }
  125. },
  126. colors: ["#ffffff"],
  127. series: [{
  128. data: [36, 77, 52, 90, 74, 35, 55, 23, 47, 10, 63, 36, 77, 52, 90, 74, 35, 55, 23, 47]
  129. }],
  130. labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
  131. xaxis: {
  132. crosshairs: {
  133. width: 2
  134. }
  135. },
  136. tooltip: {
  137. fixed: {
  138. enabled: !1
  139. },
  140. x: {
  141. show: !1
  142. },
  143. y: {
  144. title: {
  145. formatter: function(e) {
  146. return ""
  147. }
  148. }
  149. },
  150. marker: {
  151. show: !1
  152. }
  153. }
  154. };
  155. new ApexCharts(document.querySelector("#apexChart2"),options2).render();
  156. }
  157. // Apex end
  158. // Apex start
  159. if($('#apexChart3').length) {
  160. var options2 = {
  161. chart: {
  162. type: "bar",
  163. height: 150,
  164. sparkline: {
  165. enabled: !0
  166. }
  167. },
  168. plotOptions: {
  169. bar: {
  170. columnWidth: "25%"
  171. }
  172. },
  173. colors: ["#ffffff"],
  174. series: [{
  175. data: [36, 77, 52, 90, 74, 35, 55, 23, 47, 10, 63, 36, 77, 52, 90, 74, 35, 55, 23, 47]
  176. }],
  177. labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
  178. xaxis: {
  179. crosshairs: {
  180. width: 2
  181. }
  182. },
  183. tooltip: {
  184. fixed: {
  185. enabled: !1
  186. },
  187. x: {
  188. show: !1
  189. },
  190. y: {
  191. title: {
  192. formatter: function(e) {
  193. return ""
  194. }
  195. }
  196. },
  197. marker: {
  198. show: !1
  199. }
  200. }
  201. };
  202. new ApexCharts(document.querySelector("#apexChart3"),options2).render();
  203. }
  204. }); // End of use strict