| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/injazaat/public_html/adminassets/plugins/apexchart/ |
Upload File : |
'use strict';
$(document).ready(function() {
function generateData(baseval, count, yrange) {
var i = 0;
var series = [];
while (i < count) {
var x = Math.floor(Math.random() * (750 - 1 + 1)) + 1;;
var y = Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min;
var z = Math.floor(Math.random() * (75 - 15 + 1)) + 15;
series.push([x, y, z]);
baseval += 86400000;
i++;
}
return series;
}
// Column chart
var columnCtx = document.getElementById("sales_chart"),
columnConfig = {
colors: ['#7638ff', '#fda600'],
series: [
{
name: "Received",
type: "column",
data: [70, 150, 80, 180, 150, 175, 201, 60, 200, 120, 190, 160, 50]
},
{
name: "Pending",
type: "column",
data: [23, 42, 35, 27, 43, 22, 17, 31, 22, 22, 12, 16, 80]
}
],
chart: {
type: 'bar',
fontFamily: 'Poppins, sans-serif',
height: 350,
toolbar: {
show: false
}
},
plotOptions: {
bar: {
horizontal: false,
columnWidth: '60%',
endingShape: 'rounded'
},
},
dataLabels: {
enabled: false
},
stroke: {
show: true,
width: 2,
colors: ['transparent']
},
xaxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
},
yaxis: {
title: {
text: '$ (thousands)'
}
},
fill: {
opacity: 1
},
tooltip: {
y: {
formatter: function (val) {
return "$ " + val + " thousands"
}
}
}
};
var columnChart = new ApexCharts(columnCtx, columnConfig);
columnChart.render();
//Pie Chart
var pieCtx = document.getElementById("invoice_chart"),
pieConfig = {
colors: ['#7638ff', '#ff737b', '#fda600', '#1ec1b0'],
series: [55, 40, 20, 10],
chart: {
fontFamily: 'Poppins, sans-serif',
height: 350,
type: 'donut',
},
labels: ['Paid', 'Unpaid', 'Overdue', 'Draft'],
legend: {show: false},
responsive: [{
breakpoint: 480,
options: {
chart: {
width: 200
},
legend: {
position: 'bottom'
}
}
}]
};
var pieChart = new ApexCharts(pieCtx, pieConfig);
pieChart.render();
});