MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/celkcksm/public_html/../hrms.ncriptech.com/public/js/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/public_html/../hrms.ncriptech.com/public/js/ot-charts.js
"use strict";

// revenue chart

var revenueChartoptions = {
  series: [
    {
      name: "Earning",
      data: [44005, 55888, 57555, 56238, 61455, 58346, 63000, 62209, 66342, 454242, 67424],
    },
    {
      name: "Expense",
      data: [76245, 85346, 10186, 98222, 87424, 10558, 91535, 11453, 94536, 34354, 56222],
    }
  ],

  colors : ['#6CD6FD', '#DEF6FF'],
  chart: {
    type: "bar",
    height: 350,
    toolbar: {
      show: false,
    }
  },
  plotOptions: {
    bar: {
    horizontal: false,
      columnWidth: "55%",
      endingShape: "rounded",
    },
  },

  legend: {
    itemMargin: {
      horizontal: 5,
      vertical: 20,
    },
    horizontalAlign: "center",
    verticalAlign: "center",
    position: "bottom",
    fontSize: "14px",
    fontWight: "bold",
    markers: {
      radius: 5,
      height: 14,
      width: 14,
    },
  },

  dataLabels: {
    enabled: false,

  },
  stroke: {
    show: true,
    width: 2,
    colors: ["transparent"],
  },
  xaxis: {
    categories: ["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sep", "Oct", 'Nov'],
  },
  yaxis: {
    title: {
      show: false,
    },
    labels: {
      formatter: function(value) {
        var val = Math.abs(value)
        if (val >= 1000) {
          val = (val / 1000).toFixed(0) + 'K'
        }
        return val
      }
    }
  },
  fill: {
    opacity: 1,
  },
  tooltip: {
    y: {
      formatter: function (val) {
        return val + "K";
      },
    },
  },
};

console.log(revenueChartoptions);

if (document.querySelector("#revenueChart")) {
  var revenueChart = new ApexCharts(document.querySelector("#revenueChart"), revenueChartoptions);
  revenueChart.render();
}else{
  console.log('revenueChart not found');
}


let otPieChart1 = {
  series: [623, 314, 239],
  chart: {
    id: "ot-pie-chart-alpha",
    fontFamily: "Lexend, sans-serif",
    type: "donut",
    height: 360,
    toolbar: {
      show: false,
    },
    zoom: {
      enabled: false,
    },
  },

  colors: ["#5669FF", "#55B1F3", "#FF4F75"],

  labels: ["Check In", "Check Out", "Absence"],

  dataLabels: {
    enabled: false,
  },
  plotOptions: {
    pie: {
      donut: {
        size: "85%",
        labels: {
          show: true,
          name: {
            fontSize: "30px",
            offsetY: 0,
            color: "#636E72",
          },
          value: {
            fontSize: "30px",
            width: 700,
            offsetY: 20,

            formatter(val) {
              return `${val}`;
            },
          },
          total: {
            show: true,
            fontSize: "18px",
            color: "#636E72",
            label: "Total",

            formatter: function (w) {
              return "2400";
            },
          },
        },
      },
    },
  },

  legend: {
    itemMargin: {
      horizontal: 5,
      vertical: 20,
    },
    horizontalAlign: "center",
    verticalAlign: "center",
    position: "top",
    fontSize: "16px",
    fontWight: "bold",
    markers: {
      radius: 3,
      height: 15,
      width: 15,
    },
  },

  responsive: [
    {
      breakpoint: 325,
      options: {
        legend: {
          itemMargin: {
            horizontal: 4,
            vertical: 0,
          },
          horizontalAlign: "center",
          position: "bottom",
          fontSize: "14px",
        },
      },
    },
  ],
};

if (document.querySelector("#ot-pie-chart-alpha")) {
  let chart = new ApexCharts(
    document.querySelector("#ot-pie-chart-alpha"),
    otPieChart1
  );
  chart.render();
}

// // ot-line-chart-alpha

// let options = {
//   series: [
//     {
//       name: "Earning",
//       data: [10, 41, 35, 51, 49, 62, 69, 91, 148],
//     },
//   ],
//   chart: {
//     height: 135,
//     type: "line",
//     zoom: {
//       enabled: false,
//     },

//     toolbar: {
//       show: false,
//     },
//   },

//   dataLabels: {
//     enabled: false,
//   },

//   stroke: {
//     curve: "straight",
//     colors: "#fa5c7c",
//     lineCap: "butt",
//     width: 2,
//   },

//   title: {
//     show: false,
//   },

//   markers: {
//     shape: "circle",
//   },

//   grid: {
//     show: true, // you can either change hear to disable all grids
//     xaxis: {
//       lines: {
//         dashArray: 4,
//         show: true, //or just here to disable only x axis grids
//       },
//     },
//     yaxis: {
//       lines: {
//         show: false, //or just here to disable only y axis
//       },
//     },
//   },

//   yaxis: {
//     show: false,
//     labels: {
//       show: false,
//     },
//     axisBorder: {
//       show: false,
//     },
//     axisTicks: {
//       show: false,
//     },
//   },

//   xaxis: {
//     show: false,
//     labels: {
//       show: false,
//     },
//     axisBorder: {
//       show: false,
//     },
//     axisTicks: {
//       show: false,
//     },
//   },
// };

// const lineChartAlpha = new ApexCharts(
//   document.querySelector("#ot-line-chart-alpha"),
//   {
//     ...options,
//     stroke: {
//       colors: "#5669ff",
//       curve: "straight",
//       width: 2,
//     },
//   }
// );
// lineChartAlpha.render();

// const lineChartBeta = new ApexCharts(
//   document.querySelector("#ot-line-chart-beta"),
//   {
//     ...options,
//     stroke: {
//       colors: "#00F7BF",
//       curve: "straight",
//       width: 2,
//     },
//   }
// );
// lineChartBeta.render();

// const lineChartGama = new ApexCharts(
//   document.querySelector("#ot-line-chart-gama"),
//   {
//     ...options,
//     stroke: {
//       colors: "#FF991A",
//       curve: "straight",
//       width: 2,
//     },
//   }
// );

// lineChartGama.render();

// let optionsAnalyticsVisit = {
//   series: [35, 25, 45],
//   chart: {
//     id: "visited_customer_chart",
//     // fontFamily: "Manrope, sans-serif",
//     type: "donut",
//     height: 320,
//     toolbar: {
//       show: false,
//     },
//     zoom: {
//       enabled: false,
//     },
//   },
//   colors: ["#1BE7FF", "#0010F7", "#00F7BF"],

//   labels: ["Desktop", "Tablet", "Mobile"],

//   dataLabels: {
//     enabled: false,
//   },
//   plotOptions: {
//     pie: {
//       donut: {
//         size: "75%",
//         labels: {
//           show: true,
//           name: {
//             fontSize: "12px",
//             offsetY: 0,
//           },
//           value: {
//             fontSize: "12px",
//             offsetY: 0,
//             formatter(val) {
//               return `% ${val}`;
//             },
//           },
//           total: {
//             show: true,
//             fontSize: "16px",
//             label: "Total",

//             formatter: function (w) {
//               return "2400";
//             },
//           },
//         },
//       },
//     },
//   },

//   legend: {
//     itemMargin: {
//       horizontal: 40,
//       vertical: 10,
//     },
//     horizontalAlign: "center",
//     verticalAlign: "center",
//     position: "right",
//     fontSize: "22px",
//     fontWight: "bold",
//     markers: {
//       radius: 12,
//     },
//   },
//   // grid: {
//   //     padding: {
//   //         left: -10,
//   //     },
//   // },
//   responsive: [
//     {
//       breakpoint: 325,
//       options: {
//         legend: {
//           itemMargin: {
//             horizontal: 4,
//             vertical: 0,
//           },
//           horizontalAlign: "center",
//           position: "bottom",
//           fontSize: "14px",
//         },
//       },
//     },
//   ],
// };

// if (document.querySelector("#visited_customer_chart")) {
//   let chart = new ApexCharts(
//     document.querySelector("#visited_customer_chart"),
//     optionsAnalyticsVisit
//   );
//   chart.render();
// }

// // group chart label

MMCT - 2023