123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- $(function () {
- 'use strict';
-
-
- var analyticsBarChartOptions = {
- chart: {
- height: 260,
- type: 'bar',
- toolbar: {
- show: false
- }
- },
- plotOptions: {
- bar: {
- horizontal: false,
- columnWidth: '20%',
- endingShape: 'rounded'
- },
- },
- legend: {
- horizontalAlign: 'right',
- offsetY: -10,
- markers: {
- radius: 50,
- height: 8,
- width: 8
- }
- },
- dataLabels: {
- enabled: false
- },
- colors: ['#673ab7', '#FF5C5C'],
- fill: {
- type: 'gradient',
- gradient: {
- shade: 'light',
- type: "vertical",
- inverseColors: true,
- opacityFrom: 1,
- opacityTo: 1,
- stops: [0, 70, 100]
- },
- },
- series: [{
- name: '2019',
- data: [80, 95, 150, 210, 140, 230, 300, 280, 130]
- }, {
- name: '2018',
- data: [50, 70, 130, 180, 90, 180, 270, 220, 110]
- }],
- xaxis: {
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'],
- axisBorder: {
- show: false
- },
- axisTicks: {
- show: false
- },
- labels: {
- style: {
- colors: '#333333'
- }
- }
- },
- yaxis: {
- min: 0,
- max: 300,
- tickAmount: 3,
- labels: {
- style: {
- color: '#333333'
- }
- }
- },
- legend: {
- show: false
- },
- tooltip: {
- y: {
- formatter: function (val) {
- return "$ " + val + " thousands"
- }
- }
- }
- }
- var analyticsBarChart = new ApexCharts(
- document.querySelector("#analytics-bar-chart"),
- analyticsBarChartOptions
- );
- analyticsBarChart.render();
-
-
-
- var options = {
- series: [{
- name: 'Sales',
- data: [31, 40, 28, 51, 42, 109, 100]
- }],
- chart: {
- height: 330,
- type: 'area'
- },
- dataLabels: {
- enabled: false
- },
- colors: ["#FF5C5C"],
- stroke: {
- curve: 'smooth'
- },
- xaxis: {
- categories: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
- },
- };
- var chart = new ApexCharts(document.querySelector("#balancehistory"), options);
- chart.render();
-
-
-
-
-
- // Apex start
- if($('#apexChart2').length) {
- var options2 = {
- chart: {
- type: "bar",
- height: 150,
- sparkline: {
- enabled: !0
- }
- },
- plotOptions: {
- bar: {
- columnWidth: "25%"
- }
- },
- colors: ["#ffffff"],
- series: [{
- data: [36, 77, 52, 90, 74, 35, 55, 23, 47, 10, 63, 36, 77, 52, 90, 74, 35, 55, 23, 47]
- }],
- labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
- xaxis: {
- crosshairs: {
- width: 2
- }
- },
- tooltip: {
- fixed: {
- enabled: !1
- },
- x: {
- show: !1
- },
- y: {
- title: {
- formatter: function(e) {
- return ""
- }
- }
- },
- marker: {
- show: !1
- }
- }
- };
- new ApexCharts(document.querySelector("#apexChart2"),options2).render();
- }
- // Apex end
-
-
-
- // Apex start
- if($('#apexChart3').length) {
- var options2 = {
- chart: {
- type: "bar",
- height: 150,
- sparkline: {
- enabled: !0
- }
- },
- plotOptions: {
- bar: {
- columnWidth: "25%"
- }
- },
- colors: ["#ffffff"],
- series: [{
- data: [36, 77, 52, 90, 74, 35, 55, 23, 47, 10, 63, 36, 77, 52, 90, 74, 35, 55, 23, 47]
- }],
- labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
- xaxis: {
- crosshairs: {
- width: 2
- }
- },
- tooltip: {
- fixed: {
- enabled: !1
- },
- x: {
- show: !1
- },
- y: {
- title: {
- formatter: function(e) {
- return ""
- }
- }
- },
- marker: {
- show: !1
- }
- }
- };
- new ApexCharts(document.querySelector("#apexChart3"),options2).render();
- }
-
- }); // End of use strict
|