first commit
This commit is contained in:
@@ -0,0 +1,812 @@
|
||||
var colors = ["#fa6767"],
|
||||
dataColors = $("#basic-area").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "area", zoom: { enabled: !1 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 3, curve: "straight" },
|
||||
colors: colors,
|
||||
series: [{ name: "STOCK ABC", data: series.monthDataSeries1.prices }],
|
||||
title: { text: "Fundamental Analysis of Stocks", align: "left" },
|
||||
subtitle: { text: "Price Movements", align: "left" },
|
||||
labels: series.monthDataSeries1.dates,
|
||||
xaxis: { type: "datetime" },
|
||||
yaxis: { opposite: !0 },
|
||||
legend: { horizontalAlign: "left" },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: {
|
||||
chart: { toolbar: { show: !1 } },
|
||||
legend: { show: !1 },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-area"), options);
|
||||
chart.render();
|
||||
colors = ["#0166D2", "#6c757d"];
|
||||
(dataColors = $("#spline-area").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "area" },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 3, curve: "smooth" },
|
||||
colors: colors,
|
||||
series: [
|
||||
{ name: "Series 1", data: [31, 40, 28, 51, 42, 109, 100] },
|
||||
{ name: "Series 2", data: [11, 32, 45, 32, 34, 52, 41] },
|
||||
],
|
||||
legend: { offsetY: 5 },
|
||||
xaxis: { categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"] },
|
||||
tooltip: { fixed: { enabled: !1, position: "topRight" } },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#spline-area"),
|
||||
options
|
||||
)).render(),
|
||||
$(document).ready(function () {
|
||||
var e = ["#6c757d"],
|
||||
t = $("#area-chart-datetime").data("colors");
|
||||
t && (e = t.split(","));
|
||||
var a = {
|
||||
annotations: {
|
||||
yaxis: [
|
||||
{
|
||||
y: 30,
|
||||
borderColor: "#999",
|
||||
label: {
|
||||
show: !0,
|
||||
text: "Support",
|
||||
style: { color: "#fff", background: "#00E396" },
|
||||
},
|
||||
},
|
||||
],
|
||||
xaxis: [
|
||||
{
|
||||
x: new Date("14 Nov 2012").getTime(),
|
||||
borderColor: "#999",
|
||||
yAxisIndex: 0,
|
||||
label: {
|
||||
show: !0,
|
||||
text: "Rally",
|
||||
style: { color: "#fff", background: "#775DD0" },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
chart: { type: "area", height: 350 },
|
||||
colors: e,
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{
|
||||
data: [
|
||||
[13273596e5, 30.95],
|
||||
[1327446e6, 31.34],
|
||||
[13275324e5, 31.18],
|
||||
[13276188e5, 31.05],
|
||||
[1327878e6, 31],
|
||||
[13279644e5, 30.95],
|
||||
[13280508e5, 31.24],
|
||||
[13281372e5, 31.29],
|
||||
[13282236e5, 31.85],
|
||||
[13284828e5, 31.86],
|
||||
[13285692e5, 32.28],
|
||||
[13286556e5, 32.1],
|
||||
[1328742e6, 32.65],
|
||||
[13288284e5, 32.21],
|
||||
[13290876e5, 32.35],
|
||||
[1329174e6, 32.44],
|
||||
[13292604e5, 32.46],
|
||||
[13293468e5, 32.86],
|
||||
[13294332e5, 32.75],
|
||||
[13297788e5, 32.54],
|
||||
[13298652e5, 32.33],
|
||||
[13299516e5, 32.97],
|
||||
[1330038e6, 33.41],
|
||||
[13302972e5, 33.27],
|
||||
[13303836e5, 33.27],
|
||||
[133047e7, 32.89],
|
||||
[13305564e5, 33.1],
|
||||
[13306428e5, 33.73],
|
||||
[1330902e6, 33.22],
|
||||
[13309884e5, 31.99],
|
||||
[13310748e5, 32.41],
|
||||
[13311612e5, 33.05],
|
||||
[13312476e5, 33.64],
|
||||
[13315068e5, 33.56],
|
||||
[13315932e5, 34.22],
|
||||
[13316796e5, 33.77],
|
||||
[1331766e6, 34.17],
|
||||
[13318524e5, 33.82],
|
||||
[13321116e5, 34.51],
|
||||
[1332198e6, 33.16],
|
||||
[13322844e5, 33.56],
|
||||
[13323708e5, 33.71],
|
||||
[13324572e5, 33.81],
|
||||
[13327128e5, 34.4],
|
||||
[13327992e5, 34.63],
|
||||
[13328856e5, 34.46],
|
||||
[1332972e6, 34.48],
|
||||
[13330584e5, 34.31],
|
||||
[13333176e5, 34.7],
|
||||
[1333404e6, 34.31],
|
||||
[13334904e5, 33.46],
|
||||
[13335768e5, 33.59],
|
||||
[13339224e5, 33.22],
|
||||
[13340088e5, 32.61],
|
||||
[13340952e5, 33.01],
|
||||
[13341816e5, 33.55],
|
||||
[1334268e6, 33.18],
|
||||
[13345272e5, 32.84],
|
||||
[13346136e5, 33.84],
|
||||
[13347e8, 33.39],
|
||||
[13347864e5, 32.91],
|
||||
[13348728e5, 33.06],
|
||||
[1335132e6, 32.62],
|
||||
[13352184e5, 32.4],
|
||||
[13353048e5, 33.13],
|
||||
[13353912e5, 33.26],
|
||||
[13354776e5, 33.58],
|
||||
[13357368e5, 33.55],
|
||||
[13358232e5, 33.77],
|
||||
[13359096e5, 33.76],
|
||||
[1335996e6, 33.32],
|
||||
[13360824e5, 32.61],
|
||||
[13363416e5, 32.52],
|
||||
[1336428e6, 32.67],
|
||||
[13365144e5, 32.52],
|
||||
[13366008e5, 31.92],
|
||||
[13366872e5, 32.2],
|
||||
[13369464e5, 32.23],
|
||||
[13370328e5, 32.33],
|
||||
[13371192e5, 32.36],
|
||||
[13372056e5, 32.01],
|
||||
[1337292e6, 31.31],
|
||||
[13375512e5, 32.01],
|
||||
[13376376e5, 32.01],
|
||||
[1337724e6, 32.18],
|
||||
[13378104e5, 31.54],
|
||||
[13378968e5, 31.6],
|
||||
[13382424e5, 32.05],
|
||||
[13383288e5, 31.29],
|
||||
[13384152e5, 31.05],
|
||||
[13385016e5, 29.82],
|
||||
[13387608e5, 30.31],
|
||||
[13388472e5, 30.7],
|
||||
[13389336e5, 31.69],
|
||||
[133902e7, 31.32],
|
||||
[13391064e5, 31.65],
|
||||
[13393656e5, 31.13],
|
||||
[1339452e6, 31.77],
|
||||
[13395384e5, 31.79],
|
||||
[13396248e5, 31.67],
|
||||
[13397112e5, 32.39],
|
||||
[13399704e5, 32.63],
|
||||
[13400568e5, 32.89],
|
||||
[13401432e5, 31.99],
|
||||
[13402296e5, 31.23],
|
||||
[1340316e6, 31.57],
|
||||
[13405752e5, 30.84],
|
||||
[13406616e5, 31.07],
|
||||
[1340748e6, 31.41],
|
||||
[13408344e5, 31.17],
|
||||
[13409208e5, 32.37],
|
||||
[134118e7, 32.19],
|
||||
[13412664e5, 32.51],
|
||||
[13414392e5, 32.53],
|
||||
[13415256e5, 31.37],
|
||||
[13417848e5, 30.43],
|
||||
[13418712e5, 30.44],
|
||||
[13419576e5, 30.2],
|
||||
[1342044e6, 30.14],
|
||||
[13421304e5, 30.65],
|
||||
[13423896e5, 30.4],
|
||||
[1342476e6, 30.65],
|
||||
[13425624e5, 31.43],
|
||||
[13426488e5, 31.89],
|
||||
[13427352e5, 31.38],
|
||||
[13429944e5, 30.64],
|
||||
[13430808e5, 30.02],
|
||||
[13431672e5, 30.33],
|
||||
[13432536e5, 30.95],
|
||||
[134334e7, 31.89],
|
||||
[13435992e5, 31.01],
|
||||
[13436856e5, 30.88],
|
||||
[1343772e6, 30.69],
|
||||
[13438584e5, 30.58],
|
||||
[13439448e5, 32.02],
|
||||
[1344204e6, 32.14],
|
||||
[13442904e5, 32.37],
|
||||
[13443768e5, 32.51],
|
||||
[13444632e5, 32.65],
|
||||
[13445496e5, 32.64],
|
||||
[13448088e5, 32.27],
|
||||
[13448952e5, 32.1],
|
||||
[13449816e5, 32.91],
|
||||
[1345068e6, 33.65],
|
||||
[13451544e5, 33.8],
|
||||
[13454136e5, 33.92],
|
||||
[13455e8, 33.75],
|
||||
[13455864e5, 33.84],
|
||||
[13456728e5, 33.5],
|
||||
[13457592e5, 32.26],
|
||||
[13460184e5, 32.32],
|
||||
[13461048e5, 32.06],
|
||||
[13461912e5, 31.96],
|
||||
[13462776e5, 31.46],
|
||||
[1346364e6, 31.27],
|
||||
[13467096e5, 31.43],
|
||||
[1346796e6, 32.26],
|
||||
[13468824e5, 32.79],
|
||||
[13469688e5, 32.46],
|
||||
[1347228e6, 32.13],
|
||||
[13473144e5, 32.43],
|
||||
[13474008e5, 32.42],
|
||||
[13474872e5, 32.81],
|
||||
[13475736e5, 33.34],
|
||||
[13478328e5, 33.41],
|
||||
[13479192e5, 32.57],
|
||||
[13480056e5, 33.12],
|
||||
[1348092e6, 34.53],
|
||||
[13481784e5, 33.83],
|
||||
[13484376e5, 33.41],
|
||||
[1348524e6, 32.9],
|
||||
[13486104e5, 32.53],
|
||||
[13486968e5, 32.8],
|
||||
[13487832e5, 32.44],
|
||||
[13490424e5, 32.62],
|
||||
[13491288e5, 32.57],
|
||||
[13492152e5, 32.6],
|
||||
[13493016e5, 32.68],
|
||||
[1349388e6, 32.47],
|
||||
[13496472e5, 32.23],
|
||||
[13497336e5, 31.68],
|
||||
[134982e7, 31.51],
|
||||
[13499064e5, 31.78],
|
||||
[13499928e5, 31.94],
|
||||
[1350252e6, 32.33],
|
||||
[13503384e5, 33.24],
|
||||
[13504248e5, 33.44],
|
||||
[13505112e5, 33.48],
|
||||
[13505976e5, 33.24],
|
||||
[13508568e5, 33.49],
|
||||
[13509432e5, 33.31],
|
||||
[13510296e5, 33.36],
|
||||
[1351116e6, 33.4],
|
||||
[13512024e5, 34.01],
|
||||
[1351638e6, 34.02],
|
||||
[13517244e5, 34.36],
|
||||
[13518108e5, 34.39],
|
||||
[135207e7, 34.24],
|
||||
[13521564e5, 34.39],
|
||||
[13522428e5, 33.47],
|
||||
[13523292e5, 32.98],
|
||||
[13524156e5, 32.9],
|
||||
[13526748e5, 32.7],
|
||||
[13527612e5, 32.54],
|
||||
[13528476e5, 32.23],
|
||||
[1352934e6, 32.64],
|
||||
[13530204e5, 32.65],
|
||||
[13532796e5, 32.92],
|
||||
[1353366e6, 32.64],
|
||||
[13534524e5, 32.84],
|
||||
[13536252e5, 33.4],
|
||||
[13538844e5, 33.3],
|
||||
[13539708e5, 33.18],
|
||||
[13540572e5, 33.88],
|
||||
[13541436e5, 34.09],
|
||||
[135423e7, 34.61],
|
||||
[13544892e5, 34.7],
|
||||
[13545756e5, 35.3],
|
||||
[1354662e6, 35.4],
|
||||
[13547484e5, 35.14],
|
||||
[13548348e5, 35.48],
|
||||
[1355094e6, 35.75],
|
||||
[13551804e5, 35.54],
|
||||
[13552668e5, 35.96],
|
||||
[13553532e5, 35.53],
|
||||
[13554396e5, 37.56],
|
||||
[13556988e5, 37.42],
|
||||
[13557852e5, 37.49],
|
||||
[13558716e5, 38.09],
|
||||
[1355958e6, 37.87],
|
||||
[13560444e5, 37.71],
|
||||
[13563036e5, 37.53],
|
||||
[13564764e5, 37.55],
|
||||
[13565628e5, 37.3],
|
||||
[13566492e5, 36.9],
|
||||
[13569084e5, 37.68],
|
||||
[13570812e5, 38.34],
|
||||
[13571676e5, 37.75],
|
||||
[1357254e6, 38.13],
|
||||
[13575132e5, 37.94],
|
||||
[13575996e5, 38.14],
|
||||
[1357686e6, 38.66],
|
||||
[13577724e5, 38.62],
|
||||
[13578588e5, 38.09],
|
||||
[1358118e6, 38.16],
|
||||
[13582044e5, 38.15],
|
||||
[13582908e5, 37.88],
|
||||
[13583772e5, 37.73],
|
||||
[13584636e5, 37.98],
|
||||
[13588092e5, 37.95],
|
||||
[13588956e5, 38.25],
|
||||
[1358982e6, 38.1],
|
||||
[13590684e5, 38.32],
|
||||
[13593276e5, 38.24],
|
||||
[1359414e6, 38.52],
|
||||
[13595004e5, 37.94],
|
||||
[13595868e5, 37.83],
|
||||
[13596732e5, 38.34],
|
||||
[13599324e5, 38.1],
|
||||
[13600188e5, 38.51],
|
||||
[13601052e5, 38.4],
|
||||
[13601916e5, 38.07],
|
||||
[1360278e6, 39.12],
|
||||
[13605372e5, 38.64],
|
||||
[13606236e5, 38.89],
|
||||
[136071e7, 38.81],
|
||||
[13607964e5, 38.61],
|
||||
[13608828e5, 38.63],
|
||||
[13612284e5, 38.99],
|
||||
[13613148e5, 38.77],
|
||||
[13614012e5, 38.34],
|
||||
[13614876e5, 38.55],
|
||||
[13617468e5, 38.11],
|
||||
[13618332e5, 38.59],
|
||||
[13619196e5, 39.6],
|
||||
],
|
||||
},
|
||||
],
|
||||
markers: { size: 0, style: "hollow" },
|
||||
xaxis: {
|
||||
type: "datetime",
|
||||
min: new Date("01 Mar 2012").getTime(),
|
||||
tickAmount: 6,
|
||||
},
|
||||
tooltip: { x: { format: "dd MMM yyyy" } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shadeIntensity: 1,
|
||||
opacityFrom: 0.7,
|
||||
opacityTo: 0.9,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
},
|
||||
o = new ApexCharts(
|
||||
document.querySelector("#area-chart-datetime"),
|
||||
a
|
||||
);
|
||||
o.render();
|
||||
function r(e) {
|
||||
var t = document.querySelectorAll("button");
|
||||
Array.prototype.forEach.call(t, function (e) {
|
||||
e.classList.remove("active");
|
||||
}),
|
||||
e.target.classList.add("active");
|
||||
}
|
||||
document
|
||||
.querySelector("#one_month")
|
||||
.addEventListener("click", function (e) {
|
||||
r(e),
|
||||
o.updateOptions({
|
||||
xaxis: {
|
||||
min: new Date("28 Jan 2013").getTime(),
|
||||
max: new Date("27 Feb 2013").getTime(),
|
||||
},
|
||||
});
|
||||
}),
|
||||
document
|
||||
.querySelector("#six_months")
|
||||
.addEventListener("click", function (e) {
|
||||
r(e),
|
||||
o.updateOptions({
|
||||
xaxis: {
|
||||
min: new Date("27 Sep 2012").getTime(),
|
||||
max: new Date("27 Feb 2013").getTime(),
|
||||
},
|
||||
});
|
||||
}),
|
||||
document
|
||||
.querySelector("#one_year")
|
||||
.addEventListener("click", function (e) {
|
||||
r(e),
|
||||
o.updateOptions({
|
||||
xaxis: {
|
||||
min: new Date("27 Feb 2012").getTime(),
|
||||
max: new Date("27 Feb 2013").getTime(),
|
||||
},
|
||||
});
|
||||
}),
|
||||
document
|
||||
.querySelector("#ytd")
|
||||
.addEventListener("click", function (e) {
|
||||
r(e),
|
||||
o.updateOptions({
|
||||
xaxis: {
|
||||
min: new Date("01 Jan 2013").getTime(),
|
||||
max: new Date("27 Feb 2013").getTime(),
|
||||
},
|
||||
});
|
||||
}),
|
||||
document
|
||||
.querySelector("#all")
|
||||
.addEventListener("click", function (e) {
|
||||
r(e),
|
||||
o.updateOptions({
|
||||
xaxis: { min: void 0, max: void 0 },
|
||||
});
|
||||
}),
|
||||
document
|
||||
.querySelector("#ytd")
|
||||
.addEventListener("click", function () {});
|
||||
});
|
||||
colors = ["#0acf97", "#ffbc00"];
|
||||
(dataColors = $("#area-chart-negative").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "area" },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 2, curve: "straight" },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "North",
|
||||
data: [
|
||||
{ x: 1996, y: 322 },
|
||||
{ x: 1997, y: 324 },
|
||||
{ x: 1998, y: 329 },
|
||||
{ x: 1999, y: 342 },
|
||||
{ x: 2e3, y: 348 },
|
||||
{ x: 2001, y: 334 },
|
||||
{ x: 2002, y: 325 },
|
||||
{ x: 2003, y: 316 },
|
||||
{ x: 2004, y: 318 },
|
||||
{ x: 2005, y: 330 },
|
||||
{ x: 2006, y: 355 },
|
||||
{ x: 2007, y: 366 },
|
||||
{ x: 2008, y: 337 },
|
||||
{ x: 2009, y: 352 },
|
||||
{ x: 2010, y: 377 },
|
||||
{ x: 2011, y: 383 },
|
||||
{ x: 2012, y: 344 },
|
||||
{ x: 2013, y: 366 },
|
||||
{ x: 2014, y: 389 },
|
||||
{ x: 2015, y: 334 },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "South",
|
||||
data: [
|
||||
{ x: 1996, y: 162 },
|
||||
{ x: 1997, y: 90 },
|
||||
{ x: 1998, y: 50 },
|
||||
{ x: 1999, y: 77 },
|
||||
{ x: 2e3, y: 35 },
|
||||
{ x: 2001, y: -45 },
|
||||
{ x: 2002, y: -88 },
|
||||
{ x: 2003, y: -120 },
|
||||
{ x: 2004, y: -156 },
|
||||
{ x: 2005, y: -123 },
|
||||
{ x: 2006, y: -88 },
|
||||
{ x: 2007, y: -66 },
|
||||
{ x: 2008, y: -45 },
|
||||
{ x: 2009, y: -29 },
|
||||
{ x: 2010, y: -45 },
|
||||
{ x: 2011, y: -88 },
|
||||
{ x: 2012, y: -132 },
|
||||
{ x: 2013, y: -146 },
|
||||
{ x: 2014, y: -169 },
|
||||
{ x: 2015, y: -184 },
|
||||
],
|
||||
},
|
||||
],
|
||||
xaxis: {
|
||||
type: "datetime",
|
||||
axisBorder: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
},
|
||||
yaxis: {
|
||||
tickAmount: 4,
|
||||
floating: !1,
|
||||
labels: { style: { color: "#8e8da4" }, offsetY: -7, offsetX: 0 },
|
||||
axisBorder: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
},
|
||||
fill: { opacity: 0.5, gradient: { enabled: !1 } },
|
||||
tooltip: {
|
||||
x: { format: "yyyy" },
|
||||
fixed: { enabled: !1, position: "topRight" },
|
||||
},
|
||||
legend: { offsetY: 5 },
|
||||
grid: {
|
||||
yaxis: { lines: { offsetX: -30 } },
|
||||
padding: { left: 0, bottom: 10 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#area-chart-negative"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#FF7F00"];
|
||||
(dataColors = $("#area-chart-github2").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var optionsarea2 = {
|
||||
chart: {
|
||||
id: "chartyear",
|
||||
type: "area",
|
||||
height: 200,
|
||||
toolbar: { show: !1, autoSelected: "pan" },
|
||||
},
|
||||
colors: colors,
|
||||
stroke: { width: 0, curve: "smooth" },
|
||||
dataLabels: { enabled: !1 },
|
||||
fill: { opacity: 1, type: "solid" },
|
||||
series: [{ name: "commits", data: githubdata.series }],
|
||||
yaxis: { tickAmount: 10, labels: { show: !1 } },
|
||||
xaxis: { type: "datetime" },
|
||||
},
|
||||
chartarea2 = new ApexCharts(
|
||||
document.querySelector("#area-chart-github2"),
|
||||
optionsarea2
|
||||
);
|
||||
chartarea2.render();
|
||||
colors = ["#7BD39A"];
|
||||
(dataColors = $("#area-chart-github").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 175,
|
||||
type: "area",
|
||||
toolbar: { autoSelected: "selection" },
|
||||
brush: { enabled: !0, target: "chartyear" },
|
||||
selection: {
|
||||
enabled: !0,
|
||||
xaxis: {
|
||||
min: new Date("05 Jan 2014").getTime(),
|
||||
max: new Date("04 Jan 2015").getTime(),
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 0, curve: "smooth" },
|
||||
series: [{ name: "commits", data: githubdata.series }],
|
||||
fill: { opacity: 1, type: "solid" },
|
||||
legend: { position: "top", horizontalAlign: "left" },
|
||||
xaxis: { type: "datetime" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#area-chart-github"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#0acf97", "#e3eaef"];
|
||||
(dataColors = $("#stacked-area").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 422,
|
||||
type: "area",
|
||||
stacked: !0,
|
||||
events: {
|
||||
selection: function (e, t) {
|
||||
console.log(new Date(t.xaxis.min));
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
series: [
|
||||
{
|
||||
name: "South",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "North",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 20 }
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "Central",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 15 }
|
||||
),
|
||||
},
|
||||
],
|
||||
fill: { gradient: { enabled: !0, opacityFrom: 0.6, opacityTo: 0.8 } },
|
||||
legend: { position: "top", horizontalAlign: "left" },
|
||||
xaxis: { type: "datetime" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
responsive: [
|
||||
{ breakpoint: 600, options: { chart: { toolbar: { show: !1 } } } },
|
||||
],
|
||||
};
|
||||
function generateDayWiseTimeSeries(e, t, a) {
|
||||
for (var o = 0, r = []; o < t; ) {
|
||||
var i = e,
|
||||
s = Math.floor(Math.random() * (a.max - a.min + 1)) + a.min;
|
||||
r.push([i, s]), (e += 864e5), o++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#stacked-area"),
|
||||
options
|
||||
)).render();
|
||||
for (
|
||||
var ts1 = 13885344e5,
|
||||
ts2 = 13886208e5,
|
||||
ts3 = 13890528e5,
|
||||
dataSet = [[], [], []],
|
||||
i = 0;
|
||||
i < 12;
|
||||
i++
|
||||
) {
|
||||
var innerArr = [(ts1 += 864e5), dataSeries[2][i].value];
|
||||
dataSet[0].push(innerArr);
|
||||
}
|
||||
for (i = 0; i < 18; i++) {
|
||||
innerArr = [(ts2 += 864e5), dataSeries[1][i].value];
|
||||
dataSet[1].push(innerArr);
|
||||
}
|
||||
for (i = 0; i < 12; i++) {
|
||||
innerArr = [(ts3 += 864e5), dataSeries[0][i].value];
|
||||
dataSet[2].push(innerArr);
|
||||
}
|
||||
colors = ["#39afd1", "#fa5c7c", "#0166D2"];
|
||||
(dataColors = $("#area-timeSeries").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { type: "area", stacked: !1, height: 380, zoom: { enabled: !1 } },
|
||||
plotOptions: { line: { curve: "smooth" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{ name: "PRODUCT A", data: dataSet[0] },
|
||||
{ name: "PRODUCT B", data: dataSet[1] },
|
||||
{ name: "PRODUCT C", data: dataSet[2] },
|
||||
],
|
||||
colors: colors,
|
||||
markers: { size: 0, style: "full" },
|
||||
stroke: { width: 3 },
|
||||
fill: {
|
||||
gradient: {
|
||||
enabled: !0,
|
||||
shadeIntensity: 1,
|
||||
inverseColors: !1,
|
||||
opacityFrom: 0.45,
|
||||
opacityTo: 0.05,
|
||||
stops: [20, 100, 100, 100],
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
style: { color: "#8e8da4" },
|
||||
offsetX: 0,
|
||||
formatter: function (e) {
|
||||
return (e / 1e6).toFixed(0);
|
||||
},
|
||||
},
|
||||
axisBorder: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
},
|
||||
xaxis: {
|
||||
type: "datetime",
|
||||
tickAmount: 8,
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return moment(new Date(e)).format("DD MMM YYYY");
|
||||
},
|
||||
},
|
||||
},
|
||||
title: { text: "Irregular Data in Time Series", align: "left", offsetX: 0 },
|
||||
tooltip: {
|
||||
shared: !0,
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return (e / 1e6).toFixed(0) + " points";
|
||||
},
|
||||
},
|
||||
},
|
||||
legend: { position: "top", horizontalAlign: "center", offsetX: -10 },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
responsive: [
|
||||
{ breakpoint: 600, options: { chart: { toolbar: { show: !1 } } } },
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#area-timeSeries"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#6c757d"];
|
||||
(dataColors = $("#area-chart-nullvalues").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "area",
|
||||
animations: { enabled: !1 },
|
||||
zoom: { enabled: !1 },
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { curve: "straight" },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Network",
|
||||
data: [
|
||||
{ x: "Dec 23 2017", y: null },
|
||||
{ x: "Dec 24 2017", y: 44 },
|
||||
{ x: "Dec 25 2017", y: 31 },
|
||||
{ x: "Dec 26 2017", y: 38 },
|
||||
{ x: "Dec 27 2017", y: null },
|
||||
{ x: "Dec 28 2017", y: 32 },
|
||||
{ x: "Dec 29 2017", y: 55 },
|
||||
{ x: "Dec 30 2017", y: 51 },
|
||||
{ x: "Dec 31 2017", y: 67 },
|
||||
{ x: "Jan 01 2018", y: 22 },
|
||||
{ x: "Jan 02 2018", y: 34 },
|
||||
{ x: "Jan 03 2018", y: null },
|
||||
{ x: "Jan 04 2018", y: null },
|
||||
{ x: "Jan 05 2018", y: 11 },
|
||||
{ x: "Jan 06 2018", y: 4 },
|
||||
{ x: "Jan 07 2018", y: 15 },
|
||||
{ x: "Jan 08 2018", y: null },
|
||||
{ x: "Jan 09 2018", y: 9 },
|
||||
{ x: "Jan 10 2018", y: 34 },
|
||||
{ x: "Jan 11 2018", y: null },
|
||||
{ x: "Jan 12 2018", y: null },
|
||||
{ x: "Jan 13 2018", y: 13 },
|
||||
{ x: "Jan 14 2018", y: null },
|
||||
],
|
||||
},
|
||||
],
|
||||
fill: {
|
||||
opacity: 0.8,
|
||||
gradient: { enabled: !1 },
|
||||
pattern: {
|
||||
enabled: !0,
|
||||
style: ["verticalLines", "horizontalLines"],
|
||||
width: 5,
|
||||
depth: 6,
|
||||
},
|
||||
},
|
||||
markers: { size: 5, hover: { size: 9 } },
|
||||
title: { text: "Network Monitoring" },
|
||||
tooltip: { intersect: !0, shared: !1 },
|
||||
theme: { palette: "palette1" },
|
||||
xaxis: { type: "datetime" },
|
||||
yaxis: { title: { text: "Bytes Received" } },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
responsive: [
|
||||
{ breakpoint: 600, options: { chart: { toolbar: { show: !1 } } } },
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#area-chart-nullvalues"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,473 @@
|
||||
var colors = ["#39afd1"],
|
||||
dataColors = $("#basic-bar").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: { bar: { horizontal: !0 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{ data: [400, 430, 448, 470, 540, 580, 690, 1100, 1200, 1380] },
|
||||
],
|
||||
colors: colors,
|
||||
xaxis: {
|
||||
categories: [
|
||||
"South Korea",
|
||||
"Canada",
|
||||
"United Kingdom",
|
||||
"Netherlands",
|
||||
"Italy",
|
||||
"France",
|
||||
"Japan",
|
||||
"United States",
|
||||
"China",
|
||||
"Germany",
|
||||
],
|
||||
},
|
||||
states: { hover: { filter: "none" } },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-bar"), options);
|
||||
chart.render();
|
||||
colors = ["#fa5c7c", "#6c757d"];
|
||||
(dataColors = $("#grouped-bar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: { bar: { horizontal: !0, dataLabels: { position: "top" } } },
|
||||
dataLabels: {
|
||||
enabled: !0,
|
||||
offsetX: -6,
|
||||
style: { fontSize: "12px", colors: ["#fff"] },
|
||||
},
|
||||
colors: colors,
|
||||
stroke: { show: !0, width: 1, colors: ["#fff"] },
|
||||
series: [
|
||||
{ name: "Series 1", data: [44, 55, 41, 64, 22, 43, 21] },
|
||||
{ name: "Series 2", data: [53, 32, 33, 52, 13, 44, 32] },
|
||||
],
|
||||
xaxis: { categories: [2001, 2002, 2003, 2004, 2005, 2006, 2007] },
|
||||
legend: { offsetY: 5 },
|
||||
states: { hover: { filter: "none" } },
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#grouped-bar"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#6c757d", "#39afd1"];
|
||||
(dataColors = $("#stacked-bar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "bar", stacked: !0, toolbar: { show: !1 } },
|
||||
plotOptions: { bar: { horizontal: !0 } },
|
||||
stroke: { show: !1 },
|
||||
series: [
|
||||
{ name: "Marine Sprite", data: [44, 55, 41, 37, 22, 43, 21] },
|
||||
{ name: "Striking Calf", data: [53, 32, 33, 52, 13, 43, 32] },
|
||||
{ name: "Tank Picture", data: [12, 17, 11, 9, 15, 11, 20] },
|
||||
{ name: "Bucket Slope", data: [9, 7, 5, 8, 6, 9, 4] },
|
||||
{ name: "Reborn Kid", data: [25, 12, 19, 32, 25, 24, 10] },
|
||||
],
|
||||
xaxis: {
|
||||
categories: [2008, 2009, 2010, 2011, 2012, 2013, 2014],
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return e + "K";
|
||||
},
|
||||
},
|
||||
},
|
||||
yaxis: { title: { text: void 0 } },
|
||||
colors: colors,
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return e + "K";
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: { opacity: 1 },
|
||||
states: { hover: { filter: "none" } },
|
||||
legend: { position: "top", horizontalAlign: "center", offsetY: 10 },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#stacked-bar"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#ffbc00", "#39afd1", "#6c757d", "#e3eaef", "#0166D2"];
|
||||
(dataColors = $("#full-stacked-bar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "bar",
|
||||
stacked: !0,
|
||||
stackType: "100%",
|
||||
toolbar: { show: !1 },
|
||||
},
|
||||
plotOptions: { bar: { horizontal: !0 } },
|
||||
stroke: { width: 1, colors: ["#fff"] },
|
||||
series: [
|
||||
{ name: "Marine Sprite", data: [44, 55, 41, 37, 22, 43, 21] },
|
||||
{ name: "Striking Calf", data: [53, 32, 33, 52, 13, 43, 32] },
|
||||
{ name: "Tank Picture", data: [12, 17, 11, 9, 15, 11, 20] },
|
||||
{ name: "Bucket Slope", data: [9, 7, 5, 8, 6, 9, 4] },
|
||||
{ name: "Reborn Kid", data: [25, 12, 19, 32, 25, 24, 10] },
|
||||
],
|
||||
xaxis: { categories: [2008, 2009, 2010, 2011, 2012, 2013, 2014] },
|
||||
colors: colors,
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return e + "K";
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: { opacity: 1 },
|
||||
states: { hover: { filter: "none" } },
|
||||
legend: { position: "top", horizontalAlign: "center", offsetY: 10 },
|
||||
grid: { borderColor: "#f1f3fa", padding: { top: 0 } },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#full-stacked-bar"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#fa5c7c", "#0acf97"];
|
||||
(dataColors = $("#negative-bar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "bar", stacked: !0, toolbar: { show: !1 } },
|
||||
colors: colors,
|
||||
plotOptions: { bar: { horizontal: !0, barHeight: "80%" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 1, colors: ["#fff"] },
|
||||
series: [
|
||||
{
|
||||
name: "Males",
|
||||
data: [
|
||||
0.4, 0.65, 0.76, 0.88, 1.5, 2.1, 2.9, 3.8, 3.9, 4.2, 4, 4.3,
|
||||
4.1, 4.2, 4.5, 3.9, 3.5, 3,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Females",
|
||||
data: [
|
||||
-0.8, -1.05, -1.06, -1.18, -1.4, -2.2, -2.85, -3.7, -3.96,
|
||||
-4.22, -4.3, -4.4, -4.1, -4, -4.1, -3.4, -3.1, -2.8,
|
||||
],
|
||||
},
|
||||
],
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
yaxis: { min: -5, max: 5, title: {} },
|
||||
tooltip: {
|
||||
shared: !1,
|
||||
x: {
|
||||
formatter: function (e) {
|
||||
return e;
|
||||
},
|
||||
},
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return Math.abs(e) + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
xaxis: {
|
||||
categories: [
|
||||
"85+",
|
||||
"80-84",
|
||||
"75-79",
|
||||
"70-74",
|
||||
"65-69",
|
||||
"60-64",
|
||||
"55-59",
|
||||
"50-54",
|
||||
"45-49",
|
||||
"40-44",
|
||||
"35-39",
|
||||
"30-34",
|
||||
"25-29",
|
||||
"20-24",
|
||||
"15-19",
|
||||
"10-14",
|
||||
"5-9",
|
||||
"0-4",
|
||||
],
|
||||
title: { text: "Percent" },
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return Math.abs(Math.round(e)) + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
legend: { offsetY: 7 },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#negative-bar"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#6c757d", "#0acf97"];
|
||||
(dataColors = $("#timeline-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "rangeBar" },
|
||||
plotOptions: { bar: { horizontal: !0 } },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Bob",
|
||||
data: [
|
||||
{
|
||||
x: "Design",
|
||||
y: [
|
||||
new Date("2019-03-02").getTime(),
|
||||
new Date("2019-03-03").getTime(),
|
||||
],
|
||||
},
|
||||
{
|
||||
x: "Code",
|
||||
y: [
|
||||
new Date("2019-03-02").getTime(),
|
||||
new Date("2019-03-04").getTime(),
|
||||
],
|
||||
},
|
||||
{
|
||||
x: "Test",
|
||||
y: [
|
||||
new Date("2019-03-04").getTime(),
|
||||
new Date("2019-03-07").getTime(),
|
||||
],
|
||||
},
|
||||
{
|
||||
x: "Bugs",
|
||||
y: [
|
||||
new Date("2019-03-11").getTime(),
|
||||
new Date("2019-03-12").getTime(),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Joe",
|
||||
data: [
|
||||
{
|
||||
x: "Design",
|
||||
y: [
|
||||
new Date("2019-03-01").getTime(),
|
||||
new Date("2019-03-02").getTime(),
|
||||
],
|
||||
},
|
||||
{
|
||||
x: "Code",
|
||||
y: [
|
||||
new Date("2019-03-03").getTime(),
|
||||
new Date("2019-03-07").getTime(),
|
||||
],
|
||||
},
|
||||
{
|
||||
x: "Test",
|
||||
y: [
|
||||
new Date("2019-03-06").getTime(),
|
||||
new Date("2019-03-09").getTime(),
|
||||
],
|
||||
},
|
||||
{
|
||||
x: "Bugs",
|
||||
y: [
|
||||
new Date("2019-03-10").getTime(),
|
||||
new Date("2019-03-11").getTime(),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
yaxis: {
|
||||
min: new Date("2019-03-01").getTime(),
|
||||
max: new Date("2019-03-14").getTime(),
|
||||
},
|
||||
xaxis: { type: "datetime" },
|
||||
legend: { offsetY: 7 },
|
||||
grid: { padding: { bottom: 5 } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shade: "light",
|
||||
type: "vertical",
|
||||
shadeIntensity: 0.25,
|
||||
gradientToColors: void 0,
|
||||
inverseColors: !0,
|
||||
opacityFrom: 1,
|
||||
opacityTo: 1,
|
||||
stops: [50, 0, 100, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#timeline-chart"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#39afd1"];
|
||||
(dataColors = $("#pattern-bar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "bar",
|
||||
stacked: !0,
|
||||
toolbar: { show: !1 },
|
||||
shadow: { enabled: !0, blur: 1, opacity: 0.5 },
|
||||
},
|
||||
plotOptions: { bar: { horizontal: !0, barHeight: "60%" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 2 },
|
||||
series: [
|
||||
{ name: "Marine Sprite", data: [44, 55, 41, 37, 22, 43, 21] },
|
||||
{ name: "Striking Calf", data: [53, 32, 33, 52, 13, 43, 32] },
|
||||
{ name: "Tank Picture", data: [12, 17, 11, 9, 15, 11, 20] },
|
||||
{ name: "Bucket Slope", data: [9, 7, 5, 8, 6, 9, 4] },
|
||||
],
|
||||
xaxis: { categories: [2008, 2009, 2010, 2011, 2012, 2013, 2014] },
|
||||
yaxis: { title: { text: void 0 } },
|
||||
tooltip: {
|
||||
shared: !1,
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return e + "K";
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
fill: {
|
||||
type: "pattern",
|
||||
opacity: 1,
|
||||
pattern: {
|
||||
style: [
|
||||
"circles",
|
||||
"slantedLines",
|
||||
"verticalLines",
|
||||
"horizontalLines",
|
||||
],
|
||||
},
|
||||
},
|
||||
states: { hover: { filter: "none" } },
|
||||
legend: { position: "right" },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
responsive: [{ breakpoint: 600, options: { legend: { show: !1 } } }],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#pattern-bar"),
|
||||
options
|
||||
)).render();
|
||||
var labels = Array.apply(null, { length: 39 }).map(function (e, t) {
|
||||
return t + 1;
|
||||
}),
|
||||
options = {
|
||||
chart: {
|
||||
height: 450,
|
||||
type: "bar",
|
||||
toolbar: { show: !1 },
|
||||
animations: { enabled: !1 },
|
||||
},
|
||||
plotOptions: { bar: { horizontal: !0, barHeight: "100%" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { colors: ["#fff"], width: 0.2 },
|
||||
series: [
|
||||
{
|
||||
name: "coins",
|
||||
data: [
|
||||
2, 4, 3, 4, 3, 5, 5, 6.5, 6, 5, 4, 5, 8, 7, 7, 8, 8, 10, 9,
|
||||
9, 12, 12, 11, 12, 13, 14, 16, 14, 15, 17, 19, 21,
|
||||
],
|
||||
},
|
||||
],
|
||||
labels: labels,
|
||||
yaxis: {
|
||||
axisBorder: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
labels: { show: !1 },
|
||||
title: { text: "Weight" },
|
||||
},
|
||||
grid: { position: "back", borderColor: "#f1f3fa" },
|
||||
fill: {
|
||||
type: "image",
|
||||
opacity: 0.87,
|
||||
image: {
|
||||
src: ["assets/images/small/small-4.jpg"],
|
||||
width: 466,
|
||||
height: 406,
|
||||
},
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#image-fill-bar"),
|
||||
options
|
||||
)).render();
|
||||
colors = [
|
||||
"#0166D2",
|
||||
"#0acf97",
|
||||
"#fa5c7c",
|
||||
"#6c757d",
|
||||
"#39afd1",
|
||||
"#2b908f",
|
||||
"#ffbc00",
|
||||
"#90ee7e",
|
||||
"#f48024",
|
||||
"#212730",
|
||||
];
|
||||
(dataColors = $("#datalables-bar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 450, type: "bar" },
|
||||
plotOptions: {
|
||||
bar: {
|
||||
barHeight: "100%",
|
||||
distributed: !0,
|
||||
horizontal: !0,
|
||||
dataLabels: { position: "bottom" },
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
dataLabels: {
|
||||
enabled: !0,
|
||||
textAnchor: "start",
|
||||
style: { colors: ["#fff"] },
|
||||
formatter: function (e, t) {
|
||||
return t.w.globals.labels[t.dataPointIndex] + ": " + e;
|
||||
},
|
||||
offsetX: 0,
|
||||
dropShadow: { enabled: !1 },
|
||||
},
|
||||
series: [{ data: [400, 430, 448, 470, 540, 580, 690, 1100, 1200, 1380] }],
|
||||
stroke: { width: 0, colors: ["#fff"] },
|
||||
xaxis: {
|
||||
categories: [
|
||||
"South Korea",
|
||||
"Canada",
|
||||
"United Kingdom",
|
||||
"Netherlands",
|
||||
"Italy",
|
||||
"France",
|
||||
"Japan",
|
||||
"United States",
|
||||
"China",
|
||||
"India",
|
||||
],
|
||||
},
|
||||
yaxis: { labels: { show: !1 } },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
tooltip: {
|
||||
theme: "dark",
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function () {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#datalables-bar"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,102 @@
|
||||
function generateData(a, e, t) {
|
||||
for (var o = 0, r = []; o < e; ) {
|
||||
var n = Math.floor(750 * Math.random()) + 1,
|
||||
l = Math.floor(Math.random() * (t.max - t.min + 1)) + t.min,
|
||||
m = Math.floor(61 * Math.random()) + 15;
|
||||
r.push([n, l, m]), o++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
var colors = ["#0166D2", "#ffbc00", "#fa5c7c"],
|
||||
dataColors = $("#simple-bubble").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "bubble", toolbar: { show: !1 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{
|
||||
name: "Bubble 1",
|
||||
data: generateData(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "Bubble 2",
|
||||
data: generateData(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "Bubble 3",
|
||||
data: generateData(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
],
|
||||
fill: { opacity: 0.8, gradient: { enabled: !1 } },
|
||||
colors: colors,
|
||||
xaxis: { tickAmount: 12, type: "category" },
|
||||
yaxis: { max: 70 },
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
legend: { offsetY: 7 },
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#simple-bubble"), options);
|
||||
function generateData1(a, e, t) {
|
||||
for (var o = 0, r = []; o < e; ) {
|
||||
var n = Math.floor(Math.random() * (t.max - t.min + 1)) + t.min,
|
||||
l = Math.floor(61 * Math.random()) + 15;
|
||||
r.push([a, n, l]), (a += 864e5), o++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
chart.render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#39afd1"];
|
||||
(dataColors = $("#second-bubble").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options2 = {
|
||||
chart: { height: 380, type: "bubble", toolbar: { show: !1 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{
|
||||
name: "Product 1",
|
||||
data: generateData1(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "Product 2",
|
||||
data: generateData1(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "Product 3",
|
||||
data: generateData1(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "Product 4",
|
||||
data: generateData1(new Date("11 Feb 2017 GMT").getTime(), 20, {
|
||||
min: 10,
|
||||
max: 60,
|
||||
}),
|
||||
},
|
||||
],
|
||||
fill: { type: "gradient" },
|
||||
colors: colors,
|
||||
xaxis: { tickAmount: 12, type: "datetime", labels: { rotate: 0 } },
|
||||
yaxis: { max: 70 },
|
||||
legend: { offsetY: 7 },
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#second-bubble"),
|
||||
options2
|
||||
)).render();
|
||||
@@ -0,0 +1,87 @@
|
||||
var colors = ["#0acf97", "#fa5c7c"],
|
||||
dataColors = $("#simple-candlestick").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 400, type: "candlestick" },
|
||||
plotOptions: {
|
||||
candlestick: { colors: { upward: colors[0], downward: colors[1] } },
|
||||
},
|
||||
series: [{ data: seriesData }],
|
||||
stroke: { show: !0, colors: "#f1f3fa", width: 1 },
|
||||
xaxis: { type: "datetime" },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
},
|
||||
chart = new ApexCharts(
|
||||
document.querySelector("#simple-candlestick"),
|
||||
options
|
||||
);
|
||||
chart.render();
|
||||
colors = ["#0acf97", "#fa5c7c"];
|
||||
(dataColors = $("#combo-candlestick").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var optionsCandlestick = {
|
||||
chart: {
|
||||
height: 240,
|
||||
type: "candlestick",
|
||||
toolbar: { show: !1 },
|
||||
zoom: { enabled: !1 },
|
||||
},
|
||||
series: [{ data: seriesData }],
|
||||
plotOptions: {
|
||||
candlestick: { colors: { upward: colors[0], downward: colors[1] } },
|
||||
},
|
||||
xaxis: { type: "datetime" },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
},
|
||||
chartCandlestick = new ApexCharts(
|
||||
document.querySelector("#combo-candlestick"),
|
||||
optionsCandlestick
|
||||
);
|
||||
chartCandlestick.render();
|
||||
colors = ["#0166D2", "#ffbc00"];
|
||||
(dataColors = $("#combo-bar-candlestick").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 160,
|
||||
type: "bar",
|
||||
toolbar: { show: !1, autoSelected: "selection" },
|
||||
selection: {
|
||||
xaxis: {
|
||||
min: new Date("20 Jan 2017").getTime(),
|
||||
max: new Date("10 Dec 2017").getTime(),
|
||||
},
|
||||
fill: { color: "#6c757d", opacity: 0.4 },
|
||||
stroke: { color: "#6c757d" },
|
||||
},
|
||||
events: {
|
||||
selection: function (o, a) {
|
||||
chartCandlestick.updateOptions(
|
||||
{ xaxis: { min: a.xaxis.min, max: a.xaxis.max } },
|
||||
!1,
|
||||
!1
|
||||
);
|
||||
},
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
plotOptions: {
|
||||
bar: {
|
||||
columnWidth: "80%",
|
||||
colors: {
|
||||
ranges: [
|
||||
{ from: -1e3, to: 0, color: colors[0] },
|
||||
{ from: 1, to: 1e4, color: colors[1] },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
series: [{ name: "volume", data: seriesDataLinear }],
|
||||
xaxis: { type: "datetime", axisBorder: { offsetX: 13 } },
|
||||
yaxis: { labels: { show: !1 } },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#combo-bar-candlestick"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,456 @@
|
||||
var colors = ["#0166D2", "#0acf97", "#fa5c7c"],
|
||||
dataColors = $("#basic-column").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 396, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: {
|
||||
bar: { horizontal: !1, endingShape: "rounded", columnWidth: "55%" },
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { show: !0, width: 2, colors: ["transparent"] },
|
||||
colors: colors,
|
||||
series: [
|
||||
{ name: "Net Profit", data: [44, 55, 57, 56, 61, 58, 63, 60, 66] },
|
||||
{ name: "Revenue", data: [76, 85, 101, 98, 87, 105, 91, 114, 94] },
|
||||
{
|
||||
name: "Free Cash Flow",
|
||||
data: [35, 41, 36, 26, 45, 48, 52, 53, 41],
|
||||
},
|
||||
],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
],
|
||||
},
|
||||
legend: { offsetY: 7 },
|
||||
yaxis: { title: { text: "$ (thousands)" } },
|
||||
fill: { opacity: 1 },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
padding: { bottom: 5 },
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (o) {
|
||||
return "$ " + o + " thousands";
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-column"), options);
|
||||
chart.render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#datalabels-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: { bar: { dataLabels: { position: "top" } } },
|
||||
dataLabels: {
|
||||
enabled: !0,
|
||||
formatter: function (o) {
|
||||
return o + "%";
|
||||
},
|
||||
offsetY: 10,
|
||||
style: { fontSize: "12px", colors: ["#304758"] },
|
||||
},
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Inflation",
|
||||
data: [2.3, 3.1, 4, 10.1, 4, 3.6, 3.2, 2.3, 1.4, 0.8, 0.5, 0.2],
|
||||
},
|
||||
],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec",
|
||||
],
|
||||
position: "top",
|
||||
labels: { offsetY: 7 },
|
||||
axisBorder: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
crosshairs: {
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
colorFrom: "#D8E3F0",
|
||||
colorTo: "#BED1E6",
|
||||
stops: [0, 100],
|
||||
opacityFrom: 0.4,
|
||||
opacityTo: 0.5,
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: { enabled: !0, offsetY: -35 },
|
||||
},
|
||||
fill: {
|
||||
gradient: {
|
||||
enabled: !1,
|
||||
shade: "light",
|
||||
type: "horizontal",
|
||||
shadeIntensity: 0.25,
|
||||
gradientToColors: void 0,
|
||||
inverseColors: !0,
|
||||
opacityFrom: 1,
|
||||
opacityTo: 1,
|
||||
stops: [50, 0, 100, 100],
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
axisBorder: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
labels: {
|
||||
show: !1,
|
||||
formatter: function (o) {
|
||||
return o + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
title: {
|
||||
text: "Monthly Inflation in Argentina, 2002",
|
||||
floating: !0,
|
||||
offsetY: 350,
|
||||
align: "center",
|
||||
style: { color: "#444" },
|
||||
},
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#datalabels-column"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#39afd1", "#ffbc00", "#e3eaef"];
|
||||
(dataColors = $("#stacked-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "bar", stacked: !0, toolbar: { show: !1 } },
|
||||
plotOptions: { bar: { horizontal: !1, columnWidth: "50%" } },
|
||||
series: [
|
||||
{ name: "Product A", data: [44, 55, 41, 67, 22, 43, 21, 49] },
|
||||
{ name: "Product B", data: [13, 23, 20, 8, 13, 27, 33, 12] },
|
||||
{ name: "Product C", data: [11, 17, 15, 15, 21, 14, 15, 13] },
|
||||
],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"2011 Q1",
|
||||
"2011 Q2",
|
||||
"2011 Q3",
|
||||
"2011 Q4",
|
||||
"2012 Q1",
|
||||
"2012 Q2",
|
||||
"2012 Q3",
|
||||
"2012 Q4",
|
||||
],
|
||||
},
|
||||
colors: colors,
|
||||
fill: { opacity: 1 },
|
||||
legend: { offsetY: 7 },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
padding: { bottom: 5 },
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#stacked-column"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#39afd1", "#0acf97", "#e3eaef"];
|
||||
(dataColors = $("#full-stacked-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "bar",
|
||||
stacked: !0,
|
||||
stackType: "100%",
|
||||
toolbar: { show: !1 },
|
||||
},
|
||||
plotOptions: { bar: { columnWidth: "50%" } },
|
||||
series: [
|
||||
{ name: "Product A", data: [44, 55, 41, 67, 22, 43, 21, 49] },
|
||||
{ name: "Product B", data: [13, 23, 20, 8, 13, 27, 33, 12] },
|
||||
{ name: "Product C", data: [11, 17, 15, 15, 21, 14, 15, 13] },
|
||||
],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"2011 Q1",
|
||||
"2011 Q2",
|
||||
"2011 Q3",
|
||||
"2011 Q4",
|
||||
"2012 Q1",
|
||||
"2012 Q2",
|
||||
"2012 Q3",
|
||||
"2012 Q4",
|
||||
],
|
||||
},
|
||||
fill: { opacity: 1 },
|
||||
legend: { offsetY: 7 },
|
||||
colors: colors,
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
padding: { bottom: 5 },
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#full-stacked-column"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#fa5c7c"];
|
||||
(dataColors = $("#rotate-labels-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
annotations: {
|
||||
points: [
|
||||
{
|
||||
x: "Bananas",
|
||||
seriesIndex: 0,
|
||||
label: {
|
||||
borderColor: "#0166D2",
|
||||
offsetY: 0,
|
||||
style: { color: "#fff", background: "#0166D2" },
|
||||
text: "Bananas are good",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
chart: { height: 380, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: { bar: { columnWidth: "50%", endingShape: "rounded" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 2 },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Servings",
|
||||
data: [44, 55, 41, 67, 22, 43, 21, 33, 45, 31, 87, 65, 35],
|
||||
},
|
||||
],
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
xaxis: {
|
||||
labels: { rotate: -45 },
|
||||
categories: [
|
||||
"Apples",
|
||||
"Oranges",
|
||||
"Strawberries",
|
||||
"Pineapples",
|
||||
"Mangoes",
|
||||
"Bananas",
|
||||
"Blackberries",
|
||||
"Pears",
|
||||
"Watermelons",
|
||||
"Cherries",
|
||||
"Pomegranates",
|
||||
"Tangerines",
|
||||
"Papayas",
|
||||
],
|
||||
},
|
||||
yaxis: { title: { text: "Servings" } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shade: "light",
|
||||
type: "horizontal",
|
||||
shadeIntensity: 0.25,
|
||||
gradientToColors: void 0,
|
||||
inverseColors: !0,
|
||||
opacityFrom: 0.85,
|
||||
opacityTo: 0.85,
|
||||
stops: [50, 0, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#rotate-labels-column"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#negative-value-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: {
|
||||
bar: {
|
||||
colors: {
|
||||
ranges: [
|
||||
{ from: -100, to: -46, color: "#fa5c7c" },
|
||||
{ from: -45, to: 0, color: "#ffbc00" },
|
||||
],
|
||||
},
|
||||
columnWidth: "80%",
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Cash Flow",
|
||||
data: [
|
||||
1.45, 5.42, 5.9, -0.42, -12.6, -18.1, -18.2, -14.16, -11.1,
|
||||
-6.09, 0.34, 3.88, 13.07, 5.8, 2, 7.37, 8.1, 13.57, 15.75, 17.1,
|
||||
19.8, -27.03, -54.4, -47.2, -43.3, -18.6, -48.6, -41.1, -39.6,
|
||||
-37.6, -29.4, -21.4, -2.4,
|
||||
],
|
||||
},
|
||||
],
|
||||
yaxis: {
|
||||
title: { text: "Growth" },
|
||||
labels: {
|
||||
formatter: function (o) {
|
||||
return o.toFixed(0) + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
xaxis: {
|
||||
categories: [
|
||||
"2011-01-01",
|
||||
"2011-02-01",
|
||||
"2011-03-01",
|
||||
"2011-04-01",
|
||||
"2011-05-01",
|
||||
"2011-06-01",
|
||||
"2011-07-01",
|
||||
"2011-08-01",
|
||||
"2011-09-01",
|
||||
"2011-10-01",
|
||||
"2011-11-01",
|
||||
"2011-12-01",
|
||||
"2012-01-01",
|
||||
"2012-02-01",
|
||||
"2012-03-01",
|
||||
"2012-04-01",
|
||||
"2012-05-01",
|
||||
"2012-06-01",
|
||||
"2012-07-01",
|
||||
"2012-08-01",
|
||||
"2012-09-01",
|
||||
"2012-10-01",
|
||||
"2012-11-01",
|
||||
"2012-12-01",
|
||||
"2013-01-01",
|
||||
"2013-02-01",
|
||||
"2013-03-01",
|
||||
"2013-04-01",
|
||||
"2013-05-01",
|
||||
"2013-06-01",
|
||||
"2013-07-01",
|
||||
"2013-08-01",
|
||||
"2013-09-01",
|
||||
],
|
||||
labels: { rotate: -90 },
|
||||
},
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#negative-value-column"),
|
||||
options
|
||||
)).render();
|
||||
colors = [
|
||||
"#0166D2",
|
||||
"#6c757d",
|
||||
"#0acf97",
|
||||
"#fa5c7c",
|
||||
"#ffbc00",
|
||||
"#39afd1",
|
||||
"#e3eaef",
|
||||
"#313a46",
|
||||
];
|
||||
(dataColors = $("#distributed-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "bar",
|
||||
toolbar: { show: !1 },
|
||||
events: {
|
||||
click: function (o, a, t) {
|
||||
console.log(o, a, t);
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
plotOptions: { bar: { columnWidth: "45%", distributed: !0 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [{ data: [21, 22, 10, 28, 16, 21, 13, 30] }],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"John",
|
||||
"Joe",
|
||||
"Jake",
|
||||
"Amber",
|
||||
"Peter",
|
||||
"Mary",
|
||||
"David",
|
||||
"Lily",
|
||||
],
|
||||
labels: { style: { colors: colors, fontSize: "14px" } },
|
||||
},
|
||||
legend: { offsetY: 7 },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#distributed-column"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0acf97", "#39afd1"];
|
||||
(dataColors = $("#range-column").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "rangeBar" },
|
||||
plotOptions: { bar: { horizontal: !1 } },
|
||||
dataLabels: { enabled: !0 },
|
||||
legend: { offsetY: 7 },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Product A",
|
||||
data: [
|
||||
{ x: "Team A", y: [1, 5] },
|
||||
{ x: "Team B", y: [4, 6] },
|
||||
{ x: "Team C", y: [5, 8] },
|
||||
{ x: "Team D", y: [3, 11] },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Product B",
|
||||
data: [
|
||||
{ x: "Team A", y: [2, 6] },
|
||||
{ x: "Team B", y: [1, 3] },
|
||||
{ x: "Team C", y: [7, 8] },
|
||||
{ x: "Team D", y: [5, 9] },
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#range-column"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,161 @@
|
||||
function generateData(a, e) {
|
||||
for (var t = 0, r = []; t < a; ) {
|
||||
var n = (t + 1).toString(),
|
||||
o = Math.floor(Math.random() * (e.max - e.min + 1)) + e.min;
|
||||
r.push({ x: n, y: o }), t++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
var colors = ["#0166D2"],
|
||||
dataColors = $("#basic-heatmap").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "heatmap" },
|
||||
dataLabels: { enabled: !1 },
|
||||
colors: colors,
|
||||
series: [
|
||||
{ name: "Metric 1", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 2", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 3", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 4", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 5", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 6", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 7", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 8", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 9", data: generateData(20, { min: 0, max: 90 }) },
|
||||
],
|
||||
xaxis: { type: "category" },
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-heatmap"), options);
|
||||
function generateData(a, e) {
|
||||
for (var t = 0, r = []; t < a; ) {
|
||||
var n = (t + 1).toString(),
|
||||
o = Math.floor(Math.random() * (e.max - e.min + 1)) + e.min;
|
||||
r.push({ x: n, y: o }), t++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
chart.render();
|
||||
colors = [
|
||||
"#F3B415",
|
||||
"#F27036",
|
||||
"#663F59",
|
||||
"#6A6E94",
|
||||
"#4E88B4",
|
||||
"#00A7C6",
|
||||
"#18D8D8",
|
||||
"#A9D794",
|
||||
"#46AF78",
|
||||
];
|
||||
(dataColors = $("#multiple-series-heatmap").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "heatmap" },
|
||||
dataLabels: { enabled: !1 },
|
||||
colors: colors,
|
||||
series: [
|
||||
{ name: "Metric 1", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 2", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 3", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 4", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 5", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 6", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 7", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 8", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric 9", data: generateData(20, { min: 0, max: 90 }) },
|
||||
],
|
||||
xaxis: { type: "category" },
|
||||
};
|
||||
function generateData(a, e) {
|
||||
for (var t = 0, r = []; t < a; ) {
|
||||
var n = (t + 1).toString(),
|
||||
o = Math.floor(Math.random() * (e.max - e.min + 1)) + e.min;
|
||||
r.push({ x: n, y: o }), t++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#multiple-series-heatmap"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#fa6767", "#f9bc0d", "#44badc", "#42d29d"];
|
||||
(dataColors = $("#color-range-heatmap").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "heatmap" },
|
||||
plotOptions: {
|
||||
heatmap: {
|
||||
shadeIntensity: 0.5,
|
||||
colorScale: {
|
||||
ranges: [
|
||||
{ from: -30, to: 5, name: "Low", color: colors[0] },
|
||||
{ from: 6, to: 20, name: "Medium", color: colors[1] },
|
||||
{ from: 21, to: 45, name: "High", color: colors[2] },
|
||||
{ from: 46, to: 55, name: "Extreme", color: colors[3] },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{ name: "Jan", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Feb", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Mar", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Apr", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "May", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Jun", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Jul", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Aug", data: generateData(20, { min: -30, max: 55 }) },
|
||||
{ name: "Sep", data: generateData(20, { min: -30, max: 55 }) },
|
||||
],
|
||||
};
|
||||
function generateData(a, e) {
|
||||
for (var t = 0, r = []; t < a; ) {
|
||||
var n = (t + 1).toString(),
|
||||
o = Math.floor(Math.random() * (e.max - e.min + 1)) + e.min;
|
||||
r.push({ x: n, y: o }), t++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#color-range-heatmap"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#39afd1", "#0acf97"];
|
||||
(dataColors = $("#rounded-heatmap").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "heatmap" },
|
||||
stroke: { width: 0 },
|
||||
plotOptions: {
|
||||
heatmap: {
|
||||
radius: 30,
|
||||
enableShades: !1,
|
||||
colorScale: {
|
||||
ranges: [
|
||||
{ from: 0, to: 50, color: colors[0] },
|
||||
{ from: 51, to: 100, color: colors[1] },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
dataLabels: { enabled: !0, style: { colors: ["#fff"] } },
|
||||
series: [
|
||||
{ name: "Metric1", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric2", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric3", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric4", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric5", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric6", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric7", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric8", data: generateData(20, { min: 0, max: 90 }) },
|
||||
{ name: "Metric8", data: generateData(20, { min: 0, max: 90 }) },
|
||||
],
|
||||
xaxis: { type: "category" },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#rounded-heatmap"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,627 @@
|
||||
var colors = ["#ffbc00"],
|
||||
dataColors = $("#line-chart").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "line", zoom: { enabled: !1 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
colors: colors,
|
||||
stroke: { width: [4], curve: "straight" },
|
||||
series: [
|
||||
{ name: "Desktops", data: [30, 41, 35, 51, 49, 62, 69, 91, 126] },
|
||||
],
|
||||
title: { text: "Product Trends by Month", align: "center" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
labels: series.monthDataSeries1.dates,
|
||||
xaxis: {
|
||||
categories: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
],
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: {
|
||||
chart: { toolbar: { show: !1 } },
|
||||
legend: { show: !1 },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#line-chart"), options);
|
||||
chart.render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(dataColors = $("#line-chart-datalabel").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "line",
|
||||
zoom: { enabled: !1 },
|
||||
toolbar: { show: !1 },
|
||||
},
|
||||
colors: colors,
|
||||
dataLabels: { enabled: !0 },
|
||||
stroke: { width: [3, 3], curve: "smooth" },
|
||||
series: [
|
||||
{ name: "High - 2018", data: [28, 29, 33, 36, 32, 32, 33] },
|
||||
{ name: "Low - 2018", data: [12, 11, 14, 18, 17, 13, 13] },
|
||||
],
|
||||
title: { text: "Average High & Low Temperature", align: "left" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
markers: { style: "inverted", size: 6 },
|
||||
xaxis: {
|
||||
categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
|
||||
title: { text: "Month" },
|
||||
},
|
||||
yaxis: { title: { text: "Temperature" }, min: 5, max: 40 },
|
||||
legend: {
|
||||
position: "top",
|
||||
horizontalAlign: "right",
|
||||
floating: !0,
|
||||
offsetY: -25,
|
||||
offsetX: -5,
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { toolbar: { show: !1 } }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-datalabel"),
|
||||
options
|
||||
)).render();
|
||||
for (
|
||||
var ts2 = 14844186e5, dates = [], spikes = [5, -5, 3, -3, 8, -8], i = 0;
|
||||
i < 120;
|
||||
i++
|
||||
) {
|
||||
var innerArr = [(ts2 += 864e5), dataSeries[1][i].value];
|
||||
dates.push(innerArr);
|
||||
}
|
||||
colors = ["#fa5c7c"];
|
||||
(dataColors = $("#line-chart-zoomable").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { type: "area", stacked: !1, height: 380, zoom: { enabled: !0 } },
|
||||
plotOptions: { line: { curve: "smooth" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: [3] },
|
||||
series: [{ name: "XYZ MOTORS", data: dates }],
|
||||
markers: { size: 0, style: "full" },
|
||||
colors: colors,
|
||||
title: { text: "Stock Price Movement", align: "left" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
fill: {
|
||||
gradient: {
|
||||
enabled: !0,
|
||||
shadeIntensity: 1,
|
||||
inverseColors: !1,
|
||||
opacityFrom: 0.5,
|
||||
opacityTo: 0.1,
|
||||
stops: [0, 70, 80, 100],
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
min: 2e7,
|
||||
max: 25e7,
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return (e / 1e6).toFixed(0);
|
||||
},
|
||||
},
|
||||
title: { text: "Price" },
|
||||
},
|
||||
xaxis: { type: "datetime" },
|
||||
tooltip: {
|
||||
shared: !1,
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return (e / 1e6).toFixed(0);
|
||||
},
|
||||
},
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { toolbar: { show: !1 } }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-zoomable"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#39afd1"];
|
||||
(dataColors = $("#line-chart-annotations").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
annotations: {
|
||||
yaxis: [
|
||||
{
|
||||
y: 8200,
|
||||
borderColor: "#0acf97",
|
||||
label: {
|
||||
borderColor: "#0acf97",
|
||||
style: { color: "#fff", background: "#0acf97" },
|
||||
text: "Support",
|
||||
},
|
||||
},
|
||||
],
|
||||
xaxis: [
|
||||
{
|
||||
x: new Date("23 Nov 2017").getTime(),
|
||||
borderColor: "#775DD0",
|
||||
label: {
|
||||
borderColor: "#775DD0",
|
||||
style: { color: "#fff", background: "#775DD0" },
|
||||
text: "Anno Test",
|
||||
},
|
||||
},
|
||||
{
|
||||
x: new Date("03 Dec 2017").getTime(),
|
||||
borderColor: "#ffbc00",
|
||||
label: {
|
||||
borderColor: "#ffbc00",
|
||||
style: { color: "#fff", background: "#ffbc00" },
|
||||
orientation: "horizontal",
|
||||
text: "New Beginning",
|
||||
},
|
||||
},
|
||||
],
|
||||
points: [
|
||||
{
|
||||
x: new Date("27 Nov 2017").getTime(),
|
||||
y: 8506.9,
|
||||
marker: {
|
||||
size: 8,
|
||||
fillColor: "#fff",
|
||||
strokeColor: "#fa5c7c",
|
||||
radius: 2,
|
||||
},
|
||||
label: {
|
||||
borderColor: "#fa5c7c",
|
||||
offsetY: 0,
|
||||
style: { color: "#fff", background: "#fa5c7c" },
|
||||
text: "Point Annotation",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
chart: { height: 380, type: "line", id: "areachart-2" },
|
||||
colors: colors,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: [3], curve: "straight" },
|
||||
series: [{ data: series.monthDataSeries1.prices }],
|
||||
title: { text: "Line with Annotations", align: "left" },
|
||||
labels: series.monthDataSeries1.dates,
|
||||
xaxis: { type: "datetime" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { toolbar: { show: !1 } }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-annotations"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#line-chart-syncing").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var optionsline2 = {
|
||||
chart: { type: "line", height: 160, id: "fb", group: "social" },
|
||||
colors: colors,
|
||||
stroke: { width: [3], curve: "straight" },
|
||||
toolbar: { tools: { selection: !1 } },
|
||||
fill: { opacity: 1 },
|
||||
tooltip: {
|
||||
followCursor: !1,
|
||||
theme: "dark",
|
||||
x: { show: !1 },
|
||||
marker: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function () {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 30 }
|
||||
),
|
||||
},
|
||||
],
|
||||
xaxis: { type: "datetime" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
},
|
||||
chartline2 = new ApexCharts(
|
||||
document.querySelector("#line-chart-syncing"),
|
||||
optionsline2
|
||||
);
|
||||
chartline2.render();
|
||||
colors = ["#6c757d"];
|
||||
(dataColors = $("#line-chart-syncing2").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 200, type: "line", id: "yt", group: "social" },
|
||||
colors: colors,
|
||||
dataLabels: { enabled: !1 },
|
||||
toolbar: { tools: { selection: !1 } },
|
||||
tooltip: {
|
||||
followCursor: !1,
|
||||
theme: "dark",
|
||||
x: { show: !1 },
|
||||
marker: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function () {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
stroke: { width: [3], curve: "smooth" },
|
||||
series: [
|
||||
{
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
],
|
||||
fill: { gradient: { enabled: !0, opacityFrom: 0.6, opacityTo: 0.8 } },
|
||||
legend: { position: "top", horizontalAlign: "left" },
|
||||
xaxis: { type: "datetime" },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
};
|
||||
function generateDayWiseTimeSeries(e, t, a) {
|
||||
for (var o = 0, r = []; o < t; ) {
|
||||
var s = e,
|
||||
n = Math.floor(Math.random() * (a.max - a.min + 1)) + a.min;
|
||||
r.push([s, n]), (e += 864e5), o++;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-syncing2"),
|
||||
options
|
||||
)).render();
|
||||
options = {
|
||||
chart: {
|
||||
height: 374,
|
||||
type: "line",
|
||||
shadow: {
|
||||
enabled: !1,
|
||||
color: "#bbb",
|
||||
top: 3,
|
||||
left: 2,
|
||||
blur: 3,
|
||||
opacity: 1,
|
||||
},
|
||||
},
|
||||
stroke: { width: 5, curve: "smooth" },
|
||||
series: [
|
||||
{
|
||||
name: "Likes",
|
||||
data: [
|
||||
4, 3, 10, 9, 29, 19, 22, 9, 12, 7, 19, 5, 13, 9, 17, 2, 7, 5,
|
||||
],
|
||||
},
|
||||
],
|
||||
xaxis: {
|
||||
type: "datetime",
|
||||
categories: [
|
||||
"1/11/2000",
|
||||
"2/11/2000",
|
||||
"3/11/2000",
|
||||
"4/11/2000",
|
||||
"5/11/2000",
|
||||
"6/11/2000",
|
||||
"7/11/2000",
|
||||
"8/11/2000",
|
||||
"9/11/2000",
|
||||
"10/11/2000",
|
||||
"11/11/2000",
|
||||
"12/11/2000",
|
||||
"1/11/2001",
|
||||
"2/11/2001",
|
||||
"3/11/2001",
|
||||
"4/11/2001",
|
||||
"5/11/2001",
|
||||
"6/11/2001",
|
||||
],
|
||||
},
|
||||
title: {
|
||||
text: "Social Media",
|
||||
align: "left",
|
||||
style: { fontSize: "16px", color: "#666" },
|
||||
},
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shade: "dark",
|
||||
gradientToColors: ["#fa5c7c"],
|
||||
shadeIntensity: 1,
|
||||
type: "horizontal",
|
||||
opacityFrom: 1,
|
||||
opacityTo: 1,
|
||||
stops: [0, 100, 100, 100],
|
||||
},
|
||||
},
|
||||
markers: {
|
||||
size: 4,
|
||||
opacity: 0.9,
|
||||
colors: ["#ffbc00"],
|
||||
strokeColor: "#fff",
|
||||
strokeWidth: 2,
|
||||
style: "inverted",
|
||||
hover: { size: 7 },
|
||||
},
|
||||
yaxis: { min: -10, max: 40, title: { text: "Engagement" } },
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { toolbar: { show: !1 } }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-gradient"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#ffbc00", "#0acf97", "#39afd1"];
|
||||
(dataColors = $("#line-chart-missing").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "line",
|
||||
zoom: { enabled: !1 },
|
||||
animations: { enabled: !1 },
|
||||
},
|
||||
stroke: { width: [5, 5, 4], curve: "straight" },
|
||||
series: [
|
||||
{
|
||||
name: "Peter",
|
||||
data: [5, 5, 10, 8, 7, 5, 4, null, null, null, 10, 10, 7, 8, 6, 9],
|
||||
},
|
||||
{
|
||||
name: "Johnny",
|
||||
data: [
|
||||
10,
|
||||
15,
|
||||
null,
|
||||
12,
|
||||
null,
|
||||
10,
|
||||
12,
|
||||
15,
|
||||
null,
|
||||
null,
|
||||
12,
|
||||
null,
|
||||
14,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "David",
|
||||
data: [
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
3,
|
||||
4,
|
||||
1,
|
||||
3,
|
||||
4,
|
||||
6,
|
||||
7,
|
||||
9,
|
||||
5,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
],
|
||||
},
|
||||
],
|
||||
colors: colors,
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
|
||||
grid: {
|
||||
row: { colors: ["transparent", "transparent"], opacity: 0.2 },
|
||||
borderColor: "#f1f3fa",
|
||||
padding: { bottom: 5 },
|
||||
},
|
||||
legend: { offsetY: 7 },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-missing"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#6c757d", "#0acf97", "#39afd1"];
|
||||
(dataColors = $("#line-chart-dashed").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "line", zoom: { enabled: !1 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: [3, 5, 3], curve: "straight", dashArray: [0, 8, 5] },
|
||||
series: [
|
||||
{
|
||||
name: "Session Duration",
|
||||
data: [45, 52, 38, 24, 33, 26, 21, 20, 6, 8, 15, 10],
|
||||
},
|
||||
{
|
||||
name: "Page Views",
|
||||
data: [35, 41, 62, 42, 13, 18, 29, 37, 36, 51, 32, 35],
|
||||
},
|
||||
{
|
||||
name: "Total Visits",
|
||||
data: [87, 57, 74, 99, 75, 38, 62, 47, 82, 56, 45, 47],
|
||||
},
|
||||
],
|
||||
markers: { size: 0, style: "hollow" },
|
||||
xaxis: {
|
||||
categories: [
|
||||
"01 Jan",
|
||||
"02 Jan",
|
||||
"03 Jan",
|
||||
"04 Jan",
|
||||
"05 Jan",
|
||||
"06 Jan",
|
||||
"07 Jan",
|
||||
"08 Jan",
|
||||
"09 Jan",
|
||||
"10 Jan",
|
||||
"11 Jan",
|
||||
"12 Jan",
|
||||
],
|
||||
},
|
||||
colors: colors,
|
||||
tooltip: {
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (e) {
|
||||
return "Session Duration" === e
|
||||
? e + " (mins)"
|
||||
: "Page Views" === e
|
||||
? e + " per session"
|
||||
: e;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
legend: { offsetY: 7 },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-dashed"),
|
||||
options
|
||||
)).render();
|
||||
for (
|
||||
var ts2 = 14844186e5, data = [], spikes = [5, -5, 3, -3, 8, -8], i = 0;
|
||||
i < 30;
|
||||
i++
|
||||
) {
|
||||
innerArr = [(ts2 += 864e5), dataSeries[1][i].value];
|
||||
data.push(innerArr);
|
||||
}
|
||||
colors = ["#0acf97"];
|
||||
(dataColors = $("#line-chart-stepline").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { type: "line", height: 350 },
|
||||
stroke: { curve: "stepline" },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [{ data: [34, 44, 54, 21, 12, 43, 33, 23, 66, 66, 58] }],
|
||||
colors: colors,
|
||||
title: { text: "Stepline Chart", align: "left" },
|
||||
markers: { hover: { sizeOffset: 4 } },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-stepline"),
|
||||
options
|
||||
)).render();
|
||||
var lastDate = 0,
|
||||
data = [];
|
||||
function getDayWiseTimeSeries(e, t, a) {
|
||||
for (var o = 0; o < t; ) {
|
||||
var r = e,
|
||||
s = Math.floor(Math.random() * (a.max - a.min + 1)) + a.min;
|
||||
data.push({ x: r, y: s }), (lastDate = e), (e += 864e5), o++;
|
||||
}
|
||||
}
|
||||
function getNewSeries(e, t) {
|
||||
var a = e + 864e5;
|
||||
(lastDate = a),
|
||||
data.push({
|
||||
x: a,
|
||||
y: Math.floor(Math.random() * (t.max - t.min + 1)) + t.min,
|
||||
});
|
||||
}
|
||||
function resetData() {
|
||||
data = data.slice(data.length - 10, data.length);
|
||||
}
|
||||
getDayWiseTimeSeries(new Date("11 Feb 2017 GMT").getTime(), 10, {
|
||||
min: 10,
|
||||
max: 90,
|
||||
});
|
||||
colors = ["#39afd1"];
|
||||
(dataColors = $("#line-chart-realtime").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 350,
|
||||
type: "line",
|
||||
animations: {
|
||||
enabled: !0,
|
||||
easing: "linear",
|
||||
dynamicAnimation: { speed: 2e3 },
|
||||
},
|
||||
toolbar: { show: !1 },
|
||||
zoom: { enabled: !1 },
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { curve: "smooth", width: [3] },
|
||||
colors: colors,
|
||||
series: [{ data: data }],
|
||||
markers: { size: 0 },
|
||||
xaxis: { type: "datetime", range: 7776e5 },
|
||||
yaxis: { max: 100 },
|
||||
legend: { show: !1 },
|
||||
grid: { borderColor: "#f1f3fa" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-chart-realtime"),
|
||||
options
|
||||
)).render();
|
||||
var dataPointsLength = 10;
|
||||
window.setInterval(function () {
|
||||
getNewSeries(lastDate, { min: 10, max: 90 }),
|
||||
chart.updateSeries([{ data: data }]);
|
||||
}, 2e3),
|
||||
window.setInterval(function () {
|
||||
resetData(), chart.updateSeries([{ data: data }], !1, !0);
|
||||
}, 6e4);
|
||||
@@ -0,0 +1,244 @@
|
||||
var colors = ["#0166D2", "#0acf97"],
|
||||
dataColors = $("#line-column-mixed").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "line", toolbar: { show: !1 } },
|
||||
series: [
|
||||
{
|
||||
name: "Website Blog",
|
||||
type: "column",
|
||||
data: [
|
||||
440, 505, 414, 671, 227, 413, 201, 352, 752, 320, 257, 160,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Social Media",
|
||||
type: "line",
|
||||
data: [23, 42, 35, 27, 43, 22, 17, 31, 22, 22, 12, 16],
|
||||
},
|
||||
],
|
||||
stroke: { width: [0, 4] },
|
||||
labels: [
|
||||
"01 Jan 2001",
|
||||
"02 Jan 2001",
|
||||
"03 Jan 2001",
|
||||
"04 Jan 2001",
|
||||
"05 Jan 2001",
|
||||
"06 Jan 2001",
|
||||
"07 Jan 2001",
|
||||
"08 Jan 2001",
|
||||
"09 Jan 2001",
|
||||
"10 Jan 2001",
|
||||
"11 Jan 2001",
|
||||
"12 Jan 2001",
|
||||
],
|
||||
xaxis: { type: "datetime" },
|
||||
colors: colors,
|
||||
yaxis: [
|
||||
{ title: { text: "Website Blog" } },
|
||||
{ opposite: !0, title: { text: "Social Media" } },
|
||||
],
|
||||
legend: { offsetY: 7 },
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
},
|
||||
chart = new ApexCharts(
|
||||
document.querySelector("#line-column-mixed"),
|
||||
options
|
||||
);
|
||||
chart.render();
|
||||
colors = ["#0166D2", "#39afd1", "#fa5c7c"];
|
||||
(dataColors = $("#multiple-yaxis-mixed").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "line", stacked: !1, toolbar: { show: !1 } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: [0, 0, 3] },
|
||||
series: [
|
||||
{
|
||||
name: "Income",
|
||||
type: "column",
|
||||
data: [1.4, 2, 2.5, 1.5, 2.5, 2.8, 3.8, 4.6],
|
||||
},
|
||||
{
|
||||
name: "Cashflow",
|
||||
type: "column",
|
||||
data: [1.1, 3, 3.1, 4, 4.1, 4.9, 6.5, 8.5],
|
||||
},
|
||||
{
|
||||
name: "Revenue",
|
||||
type: "line",
|
||||
data: [20, 29, 37, 36, 44, 45, 50, 58],
|
||||
},
|
||||
],
|
||||
colors: colors,
|
||||
xaxis: { categories: [2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016] },
|
||||
yaxis: [
|
||||
{
|
||||
axisTicks: { show: !0 },
|
||||
axisBorder: { show: !0, color: colors[0] },
|
||||
labels: { style: { color: colors[0] } },
|
||||
title: { text: "Income (thousand crores)" },
|
||||
},
|
||||
{
|
||||
axisTicks: { show: !0 },
|
||||
axisBorder: { show: !0, color: colors[1] },
|
||||
labels: { style: { color: colors[1] }, offsetX: 10 },
|
||||
title: { text: "Operating Cashflow (thousand crores)" },
|
||||
},
|
||||
{
|
||||
opposite: !0,
|
||||
axisTicks: { show: !0 },
|
||||
axisBorder: { show: !0, color: colors[2] },
|
||||
labels: { style: { color: colors[2] } },
|
||||
title: { text: "Revenue (thousand crores)" },
|
||||
},
|
||||
],
|
||||
tooltip: {
|
||||
followCursor: !0,
|
||||
y: {
|
||||
formatter: function (o) {
|
||||
return void 0 !== o ? o + " thousand crores" : o;
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
legend: { offsetY: 7 },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { yaxis: { show: !1 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#multiple-yaxis-mixed"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0acf97", "#fa5c7c"];
|
||||
(dataColors = $("#line-area-mixed").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "line", toolbar: { show: !1 } },
|
||||
stroke: { curve: "smooth", width: 2 },
|
||||
series: [
|
||||
{
|
||||
name: "Team A",
|
||||
type: "area",
|
||||
data: [44, 55, 31, 47, 31, 43, 26, 41, 31, 47, 33],
|
||||
},
|
||||
{
|
||||
name: "Team B",
|
||||
type: "line",
|
||||
data: [55, 69, 45, 61, 43, 54, 37, 52, 44, 61, 43],
|
||||
},
|
||||
],
|
||||
fill: { type: "solid", opacity: [0.35, 1] },
|
||||
labels: [
|
||||
"Dec 01",
|
||||
"Dec 02",
|
||||
"Dec 03",
|
||||
"Dec 04",
|
||||
"Dec 05",
|
||||
"Dec 06",
|
||||
"Dec 07",
|
||||
"Dec 08",
|
||||
"Dec 09 ",
|
||||
"Dec 10",
|
||||
"Dec 11",
|
||||
],
|
||||
markers: { size: 0 },
|
||||
legend: { offsetY: 7 },
|
||||
colors: colors,
|
||||
yaxis: [
|
||||
{ title: { text: "Series A" } },
|
||||
{ opposite: !0, title: { text: "Series B" } },
|
||||
],
|
||||
tooltip: {
|
||||
shared: !0,
|
||||
intersect: !1,
|
||||
y: {
|
||||
formatter: function (o) {
|
||||
return void 0 !== o ? o.toFixed(0) + " points" : o;
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { yaxis: { show: !1 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#line-area-mixed"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#39afd1", "#fa5c7c"];
|
||||
(dataColors = $("#all-mixed").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "line", stacked: !1, toolbar: { show: !1 } },
|
||||
stroke: { width: [0, 2, 4], curve: "smooth" },
|
||||
plotOptions: { bar: { columnWidth: "50%" } },
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Team A",
|
||||
type: "column",
|
||||
data: [23, 11, 22, 27, 13, 22, 37, 21, 44, 22, 30],
|
||||
},
|
||||
{
|
||||
name: "Team B",
|
||||
type: "area",
|
||||
data: [44, 55, 41, 67, 22, 43, 21, 41, 56, 27, 43],
|
||||
},
|
||||
{
|
||||
name: "Team C",
|
||||
type: "line",
|
||||
data: [30, 25, 36, 30, 45, 35, 64, 52, 59, 36, 39],
|
||||
},
|
||||
],
|
||||
fill: {
|
||||
opacity: [0.85, 0.25, 1],
|
||||
gradient: {
|
||||
inverseColors: !1,
|
||||
shade: "light",
|
||||
type: "vertical",
|
||||
opacityFrom: 0.85,
|
||||
opacityTo: 0.55,
|
||||
stops: [0, 100, 100, 100],
|
||||
},
|
||||
},
|
||||
labels: [
|
||||
"01/01/2003",
|
||||
"02/01/2003",
|
||||
"03/01/2003",
|
||||
"04/01/2003",
|
||||
"05/01/2003",
|
||||
"06/01/2003",
|
||||
"07/01/2003",
|
||||
"08/01/2003",
|
||||
"09/01/2003",
|
||||
"10/01/2003",
|
||||
"11/01/2003",
|
||||
],
|
||||
markers: { size: 0 },
|
||||
legend: { offsetY: 7 },
|
||||
xaxis: { type: "datetime" },
|
||||
yaxis: { title: { text: "Points" } },
|
||||
tooltip: {
|
||||
shared: !0,
|
||||
intersect: !1,
|
||||
y: {
|
||||
formatter: function (o) {
|
||||
return void 0 !== o ? o.toFixed(0) + " points" : o;
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#all-mixed"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,282 @@
|
||||
var colors = ["#0166D2", "#6c757d", "#0acf97", "#fa5c7c", "#e3eaef"],
|
||||
dataColors = $("#simple-pie").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 320, type: "pie" },
|
||||
series: [44, 55, 41, 17, 15],
|
||||
labels: ["Series 1", "Series 2", "Series 3", "Series 4", "Series 5"],
|
||||
colors: colors,
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#simple-pie"), options);
|
||||
chart.render();
|
||||
colors = ["#39afd1", "#ffbc00", "#313a46", "#fa5c7c", "#0acf97"];
|
||||
(dataColors = $("#simple-donut").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 320, type: "donut" },
|
||||
series: [44, 55, 41, 17, 15],
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
labels: ["Series 1", "Series 2", "Series 3", "Series 4", "Series 5"],
|
||||
colors: colors,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#simple-donut"),
|
||||
options
|
||||
)).render();
|
||||
options = {
|
||||
chart: { height: 320, type: "pie" },
|
||||
series: [25, 15, 44, 55, 41, 17],
|
||||
labels: [
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday",
|
||||
],
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
theme: { monochrome: { enabled: !0 } },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#monochrome-pie"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#6c757d", "#0acf97", "#fa5c7c", "#e3eaef"];
|
||||
(dataColors = $("#gradient-donut").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 320, type: "donut" },
|
||||
series: [44, 55, 41, 17, 15],
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
labels: ["Series 1", "Series 2", "Series 3", "Series 4", "Series 5"],
|
||||
colors: colors,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
fill: { type: "gradient" },
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#gradient-donut"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#39afd1", "#ffbc00", "#313a46", "#fa5c7c", "#0acf97"];
|
||||
(dataColors = $("#patterned-donut").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 320,
|
||||
type: "donut",
|
||||
dropShadow: {
|
||||
enabled: !0,
|
||||
color: "#111",
|
||||
top: -1,
|
||||
left: 3,
|
||||
blur: 3,
|
||||
opacity: 0.2,
|
||||
},
|
||||
},
|
||||
stroke: { show: !0, width: 2 },
|
||||
series: [44, 55, 41, 17, 15],
|
||||
colors: colors,
|
||||
labels: ["Comedy", "Action", "SciFi", "Drama", "Horror"],
|
||||
dataLabels: { dropShadow: { blur: 3, opacity: 0.8 } },
|
||||
fill: {
|
||||
type: "pattern",
|
||||
opacity: 1,
|
||||
pattern: {
|
||||
enabled: !0,
|
||||
style: [
|
||||
"verticalLines",
|
||||
"squares",
|
||||
"horizontalLines",
|
||||
"circles",
|
||||
"slantedLines",
|
||||
],
|
||||
},
|
||||
},
|
||||
states: { hover: { enabled: !1 } },
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#patterned-donut"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#39afd1", "#ffbc00", "#0166D2", "#0acf97"];
|
||||
(dataColors = $("#image-pie").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 320, type: "pie" },
|
||||
labels: ["Series 1", "Series 2", "Series 3", "Series 4"],
|
||||
colors: colors,
|
||||
series: [44, 33, 54, 45],
|
||||
fill: {
|
||||
type: "image",
|
||||
opacity: 0.85,
|
||||
image: {
|
||||
src: [
|
||||
"assets/images/small/small-1.jpg",
|
||||
"assets/images/small/small-2.jpg",
|
||||
"assets/images/small/small-3.jpg",
|
||||
"assets/images/small/small-4.jpg",
|
||||
],
|
||||
width: 25,
|
||||
imagedHeight: 25,
|
||||
},
|
||||
},
|
||||
stroke: { width: 4 },
|
||||
dataLabels: { enabled: !1 },
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#image-pie"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#6c757d", "#0acf97", "#fa5c7c"];
|
||||
(dataColors = $("#update-donut").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 320, type: "donut" },
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [44, 55, 13, 33],
|
||||
colors: colors,
|
||||
legend: {
|
||||
show: !0,
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
verticalAlign: "middle",
|
||||
floating: !1,
|
||||
fontSize: "14px",
|
||||
offsetX: 0,
|
||||
offsetY: 7,
|
||||
},
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { height: 240 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
function appendData() {
|
||||
var e = chart.w.globals.series.map(function () {
|
||||
return Math.floor(100 * Math.random()) + 1;
|
||||
});
|
||||
return e.push(Math.floor(100 * Math.random()) + 1), e;
|
||||
}
|
||||
function removeData() {
|
||||
var e = chart.w.globals.series.map(function () {
|
||||
return Math.floor(100 * Math.random()) + 1;
|
||||
});
|
||||
return e.pop(), e;
|
||||
}
|
||||
function randomize() {
|
||||
return chart.w.globals.series.map(function () {
|
||||
return Math.floor(100 * Math.random()) + 1;
|
||||
});
|
||||
}
|
||||
function reset() {
|
||||
return options.series;
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#update-donut"),
|
||||
options
|
||||
)).render(),
|
||||
document.querySelector("#randomize").addEventListener("click", function () {
|
||||
chart.updateSeries(randomize());
|
||||
}),
|
||||
document.querySelector("#add").addEventListener("click", function () {
|
||||
chart.updateSeries(appendData());
|
||||
}),
|
||||
document.querySelector("#remove").addEventListener("click", function () {
|
||||
chart.updateSeries(removeData());
|
||||
}),
|
||||
document.querySelector("#reset").addEventListener("click", function () {
|
||||
chart.updateSeries(reset());
|
||||
});
|
||||
@@ -0,0 +1,82 @@
|
||||
var colors = ["#0166D2"],
|
||||
dataColors = $("#basic-radar").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 350, type: "radar" },
|
||||
series: [{ name: "Series 1", data: [80, 50, 30, 40, 100, 20] }],
|
||||
colors: colors,
|
||||
labels: ["January", "February", "March", "April", "May", "June"],
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-radar"), options);
|
||||
chart.render();
|
||||
colors = ["#FF4560"];
|
||||
(dataColors = $("#radar-polygon").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 350, type: "radar" },
|
||||
series: [{ name: "Series 1", data: [20, 100, 40, 30, 50, 80, 33] }],
|
||||
labels: [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday",
|
||||
],
|
||||
plotOptions: { radar: { size: 140 } },
|
||||
colors: colors,
|
||||
markers: { size: 4, colors: ["#fff"], strokeColor: colors, strokeWidth: 2 },
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (r) {
|
||||
return r;
|
||||
},
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
tickAmount: 7,
|
||||
labels: {
|
||||
formatter: function (r, a) {
|
||||
return a % 2 == 0 ? r : "";
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#radar-polygon"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2", "#02a8b5", "#fd7e14"];
|
||||
(dataColors = $("#radar-multiple-series").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 350, type: "radar" },
|
||||
series: [
|
||||
{ name: "Series 1", data: [80, 50, 30, 40, 100, 20] },
|
||||
{ name: "Series 2", data: [20, 30, 40, 80, 20, 80] },
|
||||
{ name: "Series 3", data: [44, 76, 78, 13, 43, 10] },
|
||||
],
|
||||
stroke: { width: 0 },
|
||||
fill: { opacity: 0.4 },
|
||||
markers: { size: 0 },
|
||||
legend: { offsetY: -10 },
|
||||
colors: colors,
|
||||
labels: ["2011", "2012", "2013", "2014", "2015", "2016"],
|
||||
};
|
||||
function update() {
|
||||
function r() {
|
||||
for (var r = [], a = 0; a < 6; a++)
|
||||
r.push(Math.floor(100 * Math.random()));
|
||||
return r;
|
||||
}
|
||||
chart.updateSeries([
|
||||
{ name: "Series 1", data: r() },
|
||||
{ name: "Series 2", data: r() },
|
||||
{ name: "Series 3", data: r() },
|
||||
]);
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#radar-multiple-series"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,205 @@
|
||||
var colors = ["#39afd1"],
|
||||
dataColors = $("#basic-radialbar").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 320, type: "radialBar" },
|
||||
plotOptions: { radialBar: { hollow: { size: "70%" } } },
|
||||
colors: colors,
|
||||
series: [70],
|
||||
labels: ["CRICKET"],
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-radialbar"), options);
|
||||
chart.render();
|
||||
colors = ["#6c757d", "#ffbc00", "#0166D2", "#0acf97"];
|
||||
(dataColors = $("#multiple-radialbar").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 320, type: "radialBar" },
|
||||
plotOptions: { circle: { dataLabels: { showOn: "hover" } } },
|
||||
colors: colors,
|
||||
series: [44, 55, 67, 83],
|
||||
labels: ["Apples", "Oranges", "Bananas", "Berries"],
|
||||
responsive: [{ breakpoint: 380, options: { chart: { height: 260 } } }],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#multiple-radialbar"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0acf97", "#0166D2"];
|
||||
(dataColors = $("#circle-angle-radial").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "radialBar" },
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
offsetY: -30,
|
||||
startAngle: 0,
|
||||
endAngle: 270,
|
||||
hollow: {
|
||||
margin: 5,
|
||||
size: "30%",
|
||||
background: "transparent",
|
||||
image: void 0,
|
||||
},
|
||||
dataLabels: { name: { show: !1 }, value: { show: !1 } },
|
||||
},
|
||||
},
|
||||
colors: colors,
|
||||
series: [76, 67, 61, 90],
|
||||
labels: ["Vimeo", "Messenger", "Facebook", "LinkedIn"],
|
||||
legend: {
|
||||
show: !0,
|
||||
floating: !0,
|
||||
fontSize: "13px",
|
||||
position: "left",
|
||||
offsetX: 10,
|
||||
offsetY: 10,
|
||||
labels: { useSeriesColors: !0 },
|
||||
markers: { size: 0 },
|
||||
formatter: function (o, a) {
|
||||
return o + ": " + a.w.globals.series[a.seriesIndex];
|
||||
},
|
||||
itemMargin: { horizontal: 1 },
|
||||
},
|
||||
responsive: [{ breakpoint: 480, options: { legend: { show: !1 } } }],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#circle-angle-radial"),
|
||||
options
|
||||
)).render();
|
||||
options = {
|
||||
chart: { height: 360, type: "radialBar" },
|
||||
fill: {
|
||||
type: "image",
|
||||
image: { src: ["assets/images/small/small-2.jpg"] },
|
||||
},
|
||||
plotOptions: { radialBar: { hollow: { size: "70%" } } },
|
||||
series: [70],
|
||||
stroke: { lineCap: "round" },
|
||||
labels: ["Volatility"],
|
||||
responsive: [{ breakpoint: 380, options: { chart: { height: 280 } } }],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#image-radial"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#stroked-guage-radial").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "radialBar" },
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
startAngle: -135,
|
||||
endAngle: 135,
|
||||
dataLabels: {
|
||||
name: { fontSize: "16px", color: void 0, offsetY: 120 },
|
||||
value: {
|
||||
offsetY: 76,
|
||||
fontSize: "22px",
|
||||
color: void 0,
|
||||
formatter: function (o) {
|
||||
return o + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
gradient: {
|
||||
enabled: !0,
|
||||
shade: "dark",
|
||||
shadeIntensity: 0.15,
|
||||
inverseColors: !1,
|
||||
opacityFrom: 1,
|
||||
opacityTo: 1,
|
||||
stops: [0, 50, 65, 91],
|
||||
},
|
||||
},
|
||||
stroke: { dashArray: 4 },
|
||||
colors: colors,
|
||||
series: [67],
|
||||
labels: ["Median Ratio"],
|
||||
responsive: [{ breakpoint: 380, options: { chart: { height: 280 } } }],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#stroked-guage-radial"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#8f75da", "#0166D2"];
|
||||
(dataColors = $("#gradient-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 330, type: "radialBar", toolbar: { show: !0 } },
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
startAngle: -135,
|
||||
endAngle: 225,
|
||||
hollow: {
|
||||
margin: 0,
|
||||
size: "70%",
|
||||
background: "#fff",
|
||||
image: void 0,
|
||||
imageOffsetX: 0,
|
||||
imageOffsetY: 0,
|
||||
position: "front",
|
||||
dropShadow: {
|
||||
enabled: !0,
|
||||
top: 3,
|
||||
left: 0,
|
||||
blur: 4,
|
||||
opacity: 0.24,
|
||||
},
|
||||
},
|
||||
track: {
|
||||
background: "#fff",
|
||||
strokeWidth: "67%",
|
||||
margin: 0,
|
||||
dropShadow: {
|
||||
enabled: !0,
|
||||
top: -3,
|
||||
left: 0,
|
||||
blur: 4,
|
||||
opacity: 0.35,
|
||||
},
|
||||
},
|
||||
dataLabels: {
|
||||
showOn: "always",
|
||||
name: {
|
||||
offsetY: -10,
|
||||
show: !0,
|
||||
color: "#888",
|
||||
fontSize: "17px",
|
||||
},
|
||||
value: {
|
||||
formatter: function (o) {
|
||||
return parseInt(o);
|
||||
},
|
||||
color: "#111",
|
||||
fontSize: "36px",
|
||||
show: !0,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shade: "dark",
|
||||
type: "horizontal",
|
||||
shadeIntensity: 0.5,
|
||||
gradientToColors: colors,
|
||||
inverseColors: !0,
|
||||
opacityFrom: 1,
|
||||
opacityTo: 1,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
series: [75],
|
||||
stroke: { lineCap: "round" },
|
||||
labels: ["Percent"],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#gradient-chart"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,300 @@
|
||||
var colors = ["#0166D2", "#0acf97", "#fa5c7c"],
|
||||
dataColors = $("#basic-scatter").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 380, type: "scatter", zoom: { enabled: !1 } },
|
||||
series: [
|
||||
{
|
||||
name: "Sample A",
|
||||
data: [
|
||||
[16.4, 5.4],
|
||||
[21.7, 2],
|
||||
[25.4, 3],
|
||||
[19, 2],
|
||||
[10.9, 1],
|
||||
[13.6, 3.2],
|
||||
[10.9, 7.4],
|
||||
[10.9, 0],
|
||||
[10.9, 8.2],
|
||||
[16.4, 0],
|
||||
[16.4, 1.8],
|
||||
[13.6, 0.3],
|
||||
[13.6, 0],
|
||||
[29.9, 0],
|
||||
[27.1, 2.3],
|
||||
[16.4, 0],
|
||||
[13.6, 3.7],
|
||||
[10.9, 5.2],
|
||||
[16.4, 6.5],
|
||||
[10.9, 0],
|
||||
[24.5, 7.1],
|
||||
[10.9, 0],
|
||||
[8.1, 4.7],
|
||||
[19, 0],
|
||||
[21.7, 1.8],
|
||||
[27.1, 0],
|
||||
[24.5, 0],
|
||||
[27.1, 0],
|
||||
[29.9, 1.5],
|
||||
[27.1, 0.8],
|
||||
[22.1, 2],
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Sample B",
|
||||
data: [
|
||||
[6.4, 13.4],
|
||||
[1.7, 11],
|
||||
[5.4, 8],
|
||||
[9, 17],
|
||||
[1.9, 4],
|
||||
[3.6, 12.2],
|
||||
[1.9, 14.4],
|
||||
[1.9, 9],
|
||||
[1.9, 13.2],
|
||||
[1.4, 7],
|
||||
[6.4, 8.8],
|
||||
[3.6, 4.3],
|
||||
[1.6, 10],
|
||||
[9.9, 2],
|
||||
[7.1, 15],
|
||||
[1.4, 0],
|
||||
[3.6, 13.7],
|
||||
[1.9, 15.2],
|
||||
[6.4, 16.5],
|
||||
[0.9, 10],
|
||||
[4.5, 17.1],
|
||||
[10.9, 10],
|
||||
[0.1, 14.7],
|
||||
[9, 10],
|
||||
[12.7, 11.8],
|
||||
[2.1, 10],
|
||||
[2.5, 10],
|
||||
[27.1, 10],
|
||||
[2.9, 11.5],
|
||||
[7.1, 10.8],
|
||||
[2.1, 12],
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Sample C",
|
||||
data: [
|
||||
[21.7, 3],
|
||||
[23.6, 3.5],
|
||||
[24.6, 3],
|
||||
[29.9, 3],
|
||||
[21.7, 20],
|
||||
[23, 2],
|
||||
[10.9, 3],
|
||||
[28, 4],
|
||||
[27.1, 0.3],
|
||||
[16.4, 4],
|
||||
[13.6, 0],
|
||||
[19, 5],
|
||||
[22.4, 3],
|
||||
[24.5, 3],
|
||||
[32.6, 3],
|
||||
[27.1, 4],
|
||||
[29.6, 6],
|
||||
[31.6, 8],
|
||||
[21.6, 5],
|
||||
[20.9, 4],
|
||||
[22.4, 0],
|
||||
[32.6, 10.3],
|
||||
[29.7, 20.8],
|
||||
[24.5, 0.8],
|
||||
[21.4, 0],
|
||||
[21.7, 6.9],
|
||||
[28.6, 7.7],
|
||||
[15.4, 0],
|
||||
[18.1, 0],
|
||||
[33.4, 0],
|
||||
[16.4, 0],
|
||||
],
|
||||
},
|
||||
],
|
||||
xaxis: { tickAmount: 10 },
|
||||
yaxis: { tickAmount: 7 },
|
||||
colors: colors,
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
legend: { offsetY: 7 },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: {
|
||||
chart: { toolbar: { show: !1 } },
|
||||
legend: { show: !1 },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
chart = new ApexCharts(document.querySelector("#basic-scatter"), options);
|
||||
chart.render();
|
||||
colors = ["#39afd1", "#0acf97", "#e3eaef", "#6c757d", "#ffbc00"];
|
||||
(dataColors = $("#datetime-scatter").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 380, type: "scatter", zoom: { type: "xy" } },
|
||||
series: [
|
||||
{
|
||||
name: "Team 1",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017 GMT").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "Team 2",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017 GMT").getTime(),
|
||||
20,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "Team 3",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017 GMT").getTime(),
|
||||
30,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "Team 4",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017 GMT").getTime(),
|
||||
10,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "Team 5",
|
||||
data: generateDayWiseTimeSeries(
|
||||
new Date("11 Feb 2017 GMT").getTime(),
|
||||
30,
|
||||
{ min: 10, max: 60 }
|
||||
),
|
||||
},
|
||||
],
|
||||
dataLabels: { enabled: !1 },
|
||||
colors: colors,
|
||||
grid: {
|
||||
borderColor: "#f1f3fa",
|
||||
padding: { bottom: 5 },
|
||||
xaxis: { showLines: !0 },
|
||||
yaxis: { showLines: !0 },
|
||||
},
|
||||
legend: { offsetY: 7 },
|
||||
xaxis: { type: "datetime" },
|
||||
yaxis: { max: 70 },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { chart: { toolbar: { show: !1 } }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
function generateDayWiseTimeSeries(e, a, t) {
|
||||
for (var s = 0, o = []; s < a; ) {
|
||||
var r = Math.floor(Math.random() * (t.max - t.min + 1)) + t.min;
|
||||
o.push([e, r]), (e += 864e5), s++;
|
||||
}
|
||||
return o;
|
||||
}
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#datetime-scatter"),
|
||||
options
|
||||
)).render();
|
||||
colors = ["#056BF6", "#D2376A"];
|
||||
(dataColors = $("#scatter-images").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: {
|
||||
height: 380,
|
||||
type: "scatter",
|
||||
animations: { enabled: !1 },
|
||||
zoom: { enabled: !1 },
|
||||
toolbar: { show: !1 },
|
||||
},
|
||||
colors: colors,
|
||||
series: [
|
||||
{
|
||||
name: "Messenger",
|
||||
data: [
|
||||
[16.4, 5.4],
|
||||
[21.7, 4],
|
||||
[25.4, 3],
|
||||
[19, 2],
|
||||
[10.9, 1],
|
||||
[13.6, 3.2],
|
||||
[10.9, 7],
|
||||
[10.9, 8.2],
|
||||
[16.4, 4],
|
||||
[13.6, 4.3],
|
||||
[13.6, 12],
|
||||
[29.9, 3],
|
||||
[10.9, 5.2],
|
||||
[16.4, 6.5],
|
||||
[10.9, 8],
|
||||
[24.5, 7.1],
|
||||
[10.9, 7],
|
||||
[8.1, 4.7],
|
||||
[19, 10],
|
||||
[27.1, 10],
|
||||
[24.5, 8],
|
||||
[27.1, 3],
|
||||
[29.9, 11.5],
|
||||
[27.1, 0.8],
|
||||
[22.1, 2],
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Instagram",
|
||||
data: [
|
||||
[6.4, 5.4],
|
||||
[11.7, 4],
|
||||
[15.4, 3],
|
||||
[9, 2],
|
||||
[10.9, 11],
|
||||
[20.9, 7],
|
||||
[12.9, 8.2],
|
||||
[6.4, 14],
|
||||
[11.6, 12],
|
||||
],
|
||||
},
|
||||
],
|
||||
xaxis: { tickAmount: 10, min: 0, max: 40 },
|
||||
yaxis: { tickAmount: 7 },
|
||||
markers: { size: 20 },
|
||||
fill: {
|
||||
type: "image",
|
||||
opacity: 1,
|
||||
image: {
|
||||
src: [
|
||||
"assets/images/ico-messenger.png",
|
||||
"assets/images/ico-instagram.png",
|
||||
],
|
||||
width: 40,
|
||||
height: 40,
|
||||
},
|
||||
},
|
||||
legend: {
|
||||
labels: { useSeriesColors: !0 },
|
||||
offsetY: 7,
|
||||
markers: {
|
||||
customHTML: [
|
||||
function () {
|
||||
return '<span><i class="mdi mdi-facebook"></i></span>';
|
||||
},
|
||||
function () {
|
||||
return '<span><i class="mdi mdi-instagram"></i></span>';
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#scatter-images"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,271 @@
|
||||
(Apex.grid = { padding: { right: 0, left: 0 } }),
|
||||
(Apex.dataLabels = { enabled: !1 });
|
||||
var randomizeArray = function (r) {
|
||||
for (var t, o, e = r.slice(), a = e.length; 0 !== a; )
|
||||
(o = Math.floor(Math.random() * a)),
|
||||
(t = e[--a]),
|
||||
(e[a] = e[o]),
|
||||
(e[o] = t);
|
||||
return e;
|
||||
},
|
||||
sparklineData = [
|
||||
47, 45, 54, 38, 56, 24, 65, 31, 37, 39, 62, 51, 35, 41, 35, 27, 93, 53,
|
||||
61, 27, 54, 43, 19, 46,
|
||||
],
|
||||
colorPalette = ["#00D8B6", "#008FFB", "#FEB019", "#FF4560", "#775DD0"],
|
||||
colors = ["#DCE6EC"],
|
||||
dataColors = $("#spark1").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var spark1 = {
|
||||
chart: { type: "area", height: 160, sparkline: { enabled: !0 } },
|
||||
stroke: { width: 2, curve: "straight" },
|
||||
fill: { opacity: 0.2 },
|
||||
series: [{ name: "Hyper Sales ", data: randomizeArray(sparklineData) }],
|
||||
yaxis: { min: 0 },
|
||||
colors: colors,
|
||||
title: { text: "$424,652", offsetX: 20, style: { fontSize: "24px" } },
|
||||
subtitle: { text: "Sales", offsetX: 20, style: { fontSize: "14px" } },
|
||||
};
|
||||
new ApexCharts(document.querySelector("#spark1"), spark1).render();
|
||||
colors = ["#DCE6EC"];
|
||||
(dataColors = $("#spark2").data("colors")) && (colors = dataColors.split(","));
|
||||
var spark2 = {
|
||||
chart: { type: "area", height: 160, sparkline: { enabled: !0 } },
|
||||
stroke: { width: 2, curve: "straight" },
|
||||
fill: { opacity: 0.2 },
|
||||
series: [{ name: "Hyper Expenses ", data: randomizeArray(sparklineData) }],
|
||||
yaxis: { min: 0 },
|
||||
colors: colors,
|
||||
title: { text: "$235,312", offsetX: 20, style: { fontSize: "24px" } },
|
||||
subtitle: { text: "Expenses", offsetX: 20, style: { fontSize: "14px" } },
|
||||
};
|
||||
new ApexCharts(document.querySelector("#spark2"), spark2).render();
|
||||
colors = ["#0acf97"];
|
||||
(dataColors = $("#spark3").data("colors")) && (colors = dataColors.split(","));
|
||||
var spark3 = {
|
||||
chart: { type: "area", height: 160, sparkline: { enabled: !0 } },
|
||||
stroke: { width: 2, curve: "straight" },
|
||||
fill: { opacity: 0.2 },
|
||||
series: [{ name: "Net Profits ", data: randomizeArray(sparklineData) }],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
yaxis: { min: 0 },
|
||||
colors: colors,
|
||||
title: { text: "$135,965", offsetX: 20, style: { fontSize: "24px" } },
|
||||
subtitle: { text: "Profits", offsetX: 20, style: { fontSize: "14px" } },
|
||||
};
|
||||
new ApexCharts(document.querySelector("#spark3"), spark3).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#chart1").data("colors")) && (colors = dataColors.split(","));
|
||||
var options1 = {
|
||||
chart: {
|
||||
type: "line",
|
||||
width: 140,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: colors,
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#0acf97"];
|
||||
(dataColors = $("#chart2").data("colors")) && (colors = dataColors.split(","));
|
||||
var options2 = {
|
||||
chart: {
|
||||
type: "line",
|
||||
width: 140,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
colors: colors,
|
||||
series: [{ data: [12, 14, 2, 47, 42, 15, 47, 75, 65, 19, 14] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#ffbc00"];
|
||||
(dataColors = $("#chart3").data("colors")) && (colors = dataColors.split(","));
|
||||
var options3 = {
|
||||
chart: {
|
||||
type: "line",
|
||||
width: 140,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
colors: colors,
|
||||
series: [{ data: [47, 45, 74, 14, 56, 74, 14, 11, 7, 39, 82] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#fa5c7c"];
|
||||
(dataColors = $("#chart4").data("colors")) && (colors = dataColors.split(","));
|
||||
var options4 = {
|
||||
chart: {
|
||||
type: "line",
|
||||
width: 140,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
colors: colors,
|
||||
series: [{ data: [15, 75, 47, 65, 14, 2, 41, 54, 4, 27, 15] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#chart5").data("colors")) && (colors = dataColors.split(","));
|
||||
var options5 = {
|
||||
chart: {
|
||||
type: "bar",
|
||||
width: 100,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
plotOptions: { bar: { columnWidth: "80%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#0acf97"];
|
||||
(dataColors = $("#chart6").data("colors")) && (colors = dataColors.split(","));
|
||||
var options6 = {
|
||||
chart: {
|
||||
type: "bar",
|
||||
width: 100,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
plotOptions: { bar: { columnWidth: "80%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [12, 14, 2, 47, 42, 15, 47, 75, 65, 19, 14] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#ffbc00"];
|
||||
(dataColors = $("#chart7").data("colors")) && (colors = dataColors.split(","));
|
||||
var options7 = {
|
||||
chart: {
|
||||
type: "bar",
|
||||
width: 100,
|
||||
height: 60,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
plotOptions: { bar: { columnWidth: "80%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [47, 45, 74, 14, 56, 74, 14, 11, 7, 39, 82] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
colors = ["#fa5c7c"];
|
||||
(dataColors = $("#chart8").data("colors")) && (colors = dataColors.split(","));
|
||||
var options8 = {
|
||||
chart: { type: "bar", width: 100, height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "80%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (r) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#chart1"), options1).render(),
|
||||
new ApexCharts(document.querySelector("#chart2"), options2).render(),
|
||||
new ApexCharts(document.querySelector("#chart3"), options3).render(),
|
||||
new ApexCharts(document.querySelector("#chart4"), options4).render(),
|
||||
new ApexCharts(document.querySelector("#chart5"), options5).render(),
|
||||
new ApexCharts(document.querySelector("#chart6"), options6).render(),
|
||||
new ApexCharts(document.querySelector("#chart7"), options7).render(),
|
||||
new ApexCharts(document.querySelector("#chart8"), options8).render();
|
||||
@@ -0,0 +1,336 @@
|
||||
var briteChartApp = window.briteChartApp || {};
|
||||
!(function (i, e) {
|
||||
"use strict";
|
||||
var c = [
|
||||
"#0166D2",
|
||||
"#0acf97",
|
||||
"#6c757d",
|
||||
"#fa5c7c",
|
||||
"#ffbc00",
|
||||
"#39afd1",
|
||||
"#e3eaef",
|
||||
];
|
||||
(e.createBarChart = function (e, t) {
|
||||
var a = i(e).data("colors"),
|
||||
l = a ? a.split(",") : c.concat(),
|
||||
n = new britecharts.miniTooltip(),
|
||||
u = new britecharts.bar(),
|
||||
o = d3.select(e),
|
||||
r = !!o.node() && o.node().getBoundingClientRect().width,
|
||||
d = !!o.node() && o.node().getBoundingClientRect().height;
|
||||
u
|
||||
.isAnimated(!0)
|
||||
.width(r)
|
||||
.height(d)
|
||||
.margin({ top: 10, left: 55, bottom: 20, right: 10 })
|
||||
.betweenBarsPadding(0.5)
|
||||
.colorSchema(l)
|
||||
.on("customMouseOver", n.show)
|
||||
.on("customMouseMove", n.update)
|
||||
.on("customMouseOut", n.hide),
|
||||
o.datum(t).call(u),
|
||||
d3
|
||||
.select(e + " .metadata-group")
|
||||
.datum([])
|
||||
.call(n);
|
||||
}),
|
||||
(e.createHorizontalBarChart = function (e, t) {
|
||||
var a = i(e).data("colors"),
|
||||
l = a ? a.split(",") : c.concat(),
|
||||
n = new britecharts.bar(),
|
||||
u = d3.select(e),
|
||||
o = !!u.node() && u.node().getBoundingClientRect().width,
|
||||
r = !!u.node() && u.node().getBoundingClientRect().height;
|
||||
n
|
||||
.colorSchema(l)
|
||||
.isAnimated(!0)
|
||||
.isHorizontal(!0)
|
||||
.width(o)
|
||||
.margin({ top: 10, left: 50, bottom: 20, right: 10 })
|
||||
.enableLabels(!0)
|
||||
.percentageAxisToMaxRatio(1.3)
|
||||
.labelsNumberFormat(1)
|
||||
.height(r),
|
||||
u.datum(t).call(n);
|
||||
}),
|
||||
(e.createLineChart = function (e, t) {
|
||||
var a = new britecharts.line(),
|
||||
l = new britecharts.tooltip(),
|
||||
n = d3.select(e),
|
||||
u = !!n.node() && n.node().getBoundingClientRect().width;
|
||||
a
|
||||
.isAnimated(!0)
|
||||
.aspectRatio(0.7)
|
||||
.tooltipThreshold(100)
|
||||
.grid("horizontal")
|
||||
.width(u)
|
||||
.dateLabel("date")
|
||||
.valueLabel("value")
|
||||
.on("customMouseOver", l.show)
|
||||
.on("customMouseMove", l.update)
|
||||
.on("customMouseOut", l.hide),
|
||||
l.title("Sample Data"),
|
||||
n.datum(t).call(a),
|
||||
d3
|
||||
.select(e + " .metadata-group .hover-marker")
|
||||
.datum([])
|
||||
.call(l);
|
||||
}),
|
||||
(e.createDonutChart = function (e, t) {
|
||||
var a = i(e).data("colors"),
|
||||
l = a ? a.split(",") : c.concat(),
|
||||
n = britecharts.donut(),
|
||||
u = britecharts.legend();
|
||||
u.width(250).height(200).colorSchema(l).numberFormat("s"),
|
||||
n
|
||||
.height(300)
|
||||
.highlightSliceById(3)
|
||||
.colorSchema(l)
|
||||
.hasFixedHighlightedSlice(!0)
|
||||
.internalRadius(80)
|
||||
.on("customMouseOver", function (e) {
|
||||
u.highlight(e.data.id);
|
||||
})
|
||||
.on("customMouseOut", function () {
|
||||
u.clearHighlight();
|
||||
}),
|
||||
d3.select(e).datum(t).call(n),
|
||||
d3.select(".legend-chart-container").datum(t).call(u);
|
||||
}),
|
||||
(e.createBrushChart = function (e, t) {
|
||||
var a = d3.select(e),
|
||||
l = britecharts.brush(),
|
||||
n = !!a.node() && a.node().getBoundingClientRect().width;
|
||||
l
|
||||
.height(320)
|
||||
.width(n)
|
||||
.on("customBrushStart", function (e) {
|
||||
var t = d3.timeFormat("%m/%d/%Y");
|
||||
console.log("Start date = " + t(e[0])),
|
||||
console.log("End date = " + t(e[1]));
|
||||
})
|
||||
.on("customBrushEnd", function (e) {
|
||||
console.log("rounded extent", e);
|
||||
}),
|
||||
a.datum(t).call(l),
|
||||
l.dateRange(["9/15/2015", "1/25/2016"]);
|
||||
}),
|
||||
(e.createStepChart = function (e, t) {
|
||||
var a = britecharts.step(),
|
||||
l = britecharts.miniTooltip(),
|
||||
n = d3.select(e),
|
||||
u = !!n.node() && n.node().getBoundingClientRect().width;
|
||||
a
|
||||
.width(u)
|
||||
.height(320)
|
||||
.margin({ top: 40, right: 40, bottom: 80, left: 50 })
|
||||
.on("customMouseOver", l.show)
|
||||
.on("customMouseMove", l.update)
|
||||
.on("customMouseOut", l.hide),
|
||||
n.datum(t).call(a),
|
||||
l.nameLabel("key"),
|
||||
d3
|
||||
.select(e + " .step-chart .metadata-group")
|
||||
.datum([])
|
||||
.call(l);
|
||||
}),
|
||||
i(function () {
|
||||
var e = [
|
||||
{ name: "Mon", value: 2100 },
|
||||
{ name: "Tue", value: 5e3 },
|
||||
{ name: "Wed", value: 4e3 },
|
||||
{ name: "Thu", value: 5500 },
|
||||
{ name: "Fri", value: 6500 },
|
||||
{ name: "Sat", value: 4500 },
|
||||
{ name: "Sun", value: 3500 },
|
||||
],
|
||||
t = {
|
||||
dataByTopic: [
|
||||
{
|
||||
topic: 103,
|
||||
topicName: "San Francisco",
|
||||
dates: [
|
||||
{
|
||||
date: "2018-06-27T07:00:00.000Z",
|
||||
value: 1,
|
||||
fullDate: "2018-06-27T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-06-28T07:00:00.000Z",
|
||||
value: 1,
|
||||
fullDate: "2018-06-28T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-06-29T07:00:00.000Z",
|
||||
value: 4,
|
||||
fullDate: "2018-06-29T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-06-30T07:00:00.000Z",
|
||||
value: 2,
|
||||
fullDate: "2018-06-30T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-01T07:00:00.000Z",
|
||||
value: 3,
|
||||
fullDate: "2018-07-01T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-02T07:00:00.000Z",
|
||||
value: 3,
|
||||
fullDate: "2018-07-02T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-03T07:00:00.000Z",
|
||||
value: 0,
|
||||
fullDate: "2018-07-03T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-04T07:00:00.000Z",
|
||||
value: 3,
|
||||
fullDate: "2018-07-04T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-05T07:00:00.000",
|
||||
value: 1,
|
||||
fullDate: "2018-07-05T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-06T07:00:00.000Z",
|
||||
value: 2,
|
||||
fullDate: "2018-07-06T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-07T07:00:00.000Z",
|
||||
value: 0,
|
||||
fullDate: "2018-07-07T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-08T07:00:00.000Z",
|
||||
value: 2,
|
||||
fullDate: "2018-07-08T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-09T07:00:00.000Z",
|
||||
value: 1,
|
||||
fullDate: "2018-07-09T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-10T07:00:00.000Z",
|
||||
value: 4,
|
||||
fullDate: "2018-07-10T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-11T07:00:00.000Z",
|
||||
value: 2,
|
||||
fullDate: "2018-07-11T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-12T07:00:00.000Z",
|
||||
value: 1,
|
||||
fullDate: "2018-07-12T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-13T07:00:00.000Z",
|
||||
value: 6,
|
||||
fullDate: "2018-07-13T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-14T07:00:00.000Z",
|
||||
value: 5,
|
||||
fullDate: "2018-07-14T07:00:00.000Z",
|
||||
},
|
||||
{
|
||||
date: "2018-07-15T07:00:00.000Z",
|
||||
value: 2,
|
||||
fullDate: "2018-07-15T07:00:00.000Z",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
a = [
|
||||
{ name: "Shiny", id: 1, quantity: 86, percentage: 5 },
|
||||
{ name: "Blazing", id: 2, quantity: 300, percentage: 18 },
|
||||
{ name: "Dazzling", id: 3, quantity: 276, percentage: 16 },
|
||||
{ name: "Radiant", id: 4, quantity: 195, percentage: 11 },
|
||||
{ name: "Sparkling", id: 5, quantity: 36, percentage: 2 },
|
||||
{ name: "Other", id: 0, quantity: 814, percentage: 48 },
|
||||
],
|
||||
l = [
|
||||
{ date: "2018-06-27T07:00:00.000Z", value: 4 },
|
||||
{ date: "2018-06-28T07:00:00.000Z", value: 12 },
|
||||
{ date: "2018-06-29T07:00:00.000Z", value: 33 },
|
||||
{ date: "2018-06-30T07:00:00.000Z", value: 17 },
|
||||
{ date: "2018-07-01T07:00:00.000Z", value: 17 },
|
||||
{ date: "2018-07-02T07:00:00.000Z", value: 16 },
|
||||
{ date: "2018-07-03T07:00:00.000Z", value: 8 },
|
||||
{ date: "2018-07-04T07:00:00.000Z", value: 14 },
|
||||
{ date: "2018-07-05T07:00:00.000Z", value: 11 },
|
||||
{ date: "2018-07-06T07:00:00.000Z", value: 14 },
|
||||
{ date: "2018-07-07T07:00:00.000Z", value: 25 },
|
||||
{ date: "2018-07-08T07:00:00.000Z", value: 55 },
|
||||
{ date: "2018-07-09T07:00:00.000Z", value: 15 },
|
||||
{ date: "2018-07-10T07:00:00.000Z", value: 26 },
|
||||
{ date: "2018-07-11T07:00:00.000Z", value: 21 },
|
||||
{ date: "2018-07-12T07:00:00.000Z", value: 16 },
|
||||
{ date: "2018-07-13T07:00:00.000Z", value: 20 },
|
||||
{ date: "2018-07-14T07:00:00.000Z", value: 26 },
|
||||
{ date: "2018-07-15T07:00:00.000Z", value: 24 },
|
||||
{ date: "2018-07-16T07:00:00.000Z", value: 29 },
|
||||
{ date: "2018-07-17T07:00:00.000Z", value: 12 },
|
||||
{ date: "2018-07-18T07:00:00.000Z", value: 16 },
|
||||
{ date: "2018-07-19T07:00:00.000Z", value: 11 },
|
||||
{ date: "2018-07-20T07:00:00.000Z", value: 29 },
|
||||
{ date: "2018-07-21T07:00:00.000Z", value: 9 },
|
||||
{ date: "2018-07-22T07:00:00.000Z", value: 26 },
|
||||
{ date: "2018-07-23T07:00:00.000Z", value: 21 },
|
||||
{ date: "2018-07-24T07:00:00.000Z", value: 18 },
|
||||
{ date: "2018-07-25T07:00:00.000Z", value: 15 },
|
||||
{ date: "2018-07-26T07:00:00.000Z", value: 23 },
|
||||
{ date: "2018-07-27T07:00:00.000Z", value: 43 },
|
||||
{ date: "2018-07-28T07:00:00.000Z", value: 44 },
|
||||
{ date: "2018-07-29T07:00:00.000Z", value: 67 },
|
||||
{ date: "2018-07-30T07:00:00.000Z", value: 67 },
|
||||
{ date: "2018-07-31T07:00:00.000Z", value: 0 },
|
||||
{ date: "2018-08-01T07:00:00.000Z", value: 0 },
|
||||
{ date: "2018-08-02T07:00:00.000Z", value: 0 },
|
||||
],
|
||||
n = [
|
||||
{ key: "Appetizer", value: 400 },
|
||||
{ key: "Soup", value: 300 },
|
||||
{ key: "Salad", value: 300 },
|
||||
{ key: "Lunch", value: 250 },
|
||||
{ key: "Dinner", value: 220 },
|
||||
{ key: "Dessert", value: 100 },
|
||||
{ key: "Midnight snack", value: 20 },
|
||||
];
|
||||
function u() {
|
||||
d3.selectAll(".bar-chart").remove(),
|
||||
d3.selectAll(".line-chart").remove(),
|
||||
d3.selectAll(".donut-chart").remove(),
|
||||
d3.selectAll(".britechart-legend").remove(),
|
||||
d3.selectAll(".brush-chart").remove(),
|
||||
d3.selectAll(".step-chart").remove(),
|
||||
0 < i(".bar-container").length &&
|
||||
briteChartApp.createBarChart(".bar-container", e),
|
||||
0 < i(".bar-container-horizontal").length &&
|
||||
briteChartApp.createHorizontalBarChart(
|
||||
".bar-container-horizontal",
|
||||
e
|
||||
),
|
||||
0 < i(".line-container").length &&
|
||||
briteChartApp.createLineChart(".line-container", t),
|
||||
0 < i(".donut-container").length &&
|
||||
briteChartApp.createDonutChart(".donut-container", a),
|
||||
0 < i(".brush-container").length &&
|
||||
briteChartApp.createBrushChart(".brush-container", l),
|
||||
0 < i(".step-container").length &&
|
||||
briteChartApp.createStepChart(".step-container", n);
|
||||
}
|
||||
i(window).on("resize", function (e) {
|
||||
e.preventDefault(), setTimeout(u, 200);
|
||||
}),
|
||||
u();
|
||||
});
|
||||
})(jQuery, briteChartApp);
|
||||
@@ -0,0 +1 @@
|
||||
!function(l){"use strict";function e(){this.$body=l("body"),this.$modal=new bootstrap.Modal(document.getElementById("event-modal"),{backdrop:"static"}),this.$calendar=l("#calendar"),this.$formEvent=l("#form-event"),this.$btnNewEvent=l("#btn-new-event"),this.$btnDeleteEvent=l("#btn-delete-event"),this.$btnSaveEvent=l("#btn-save-event"),this.$modalTitle=l("#modal-title"),this.$calendarObj=null,this.$selectedEvent=null,this.$newEventData=null}e.prototype.onEventClick=function(e){this.$formEvent[0].reset(),this.$formEvent.removeClass("was-validated"),this.$newEventData=null,this.$btnDeleteEvent.show(),this.$modalTitle.text("Edit Event"),this.$modal.show(),this.$selectedEvent=e.event,l("#event-title").val(this.$selectedEvent.title),l("#event-category").val(this.$selectedEvent.classNames[0])},e.prototype.onSelect=function(e){this.$formEvent[0].reset(),this.$formEvent.removeClass("was-validated"),this.$selectedEvent=null,this.$newEventData=e,this.$btnDeleteEvent.hide(),this.$modalTitle.text("Add New Event"),this.$modal.show(),this.$calendarObj.unselect()},e.prototype.init=function(){var e=new Date(l.now());new FullCalendar.Draggable(document.getElementById("external-events"),{itemSelector:".external-event",eventData:function(e){return{title:e.innerText,className:l(e).data("class")}}});var t=[{title:"Meeting with Mr. Shreyu",start:new Date(l.now()+158e6),end:new Date(l.now()+338e6),className:"bg-warning"},{title:"Interview - Backend Engineer",start:e,end:e,className:"bg-success"},{title:"Phone Screen - Frontend Engineer",start:new Date(l.now()+168e6),className:"bg-info"},{title:"Buy Design Assets",start:new Date(l.now()+338e6),end:new Date(l.now()+4056e5),className:"bg-primary"}],a=this;a.$calendarObj=new FullCalendar.Calendar(a.$calendar[0],{slotDuration:"00:15:00",slotMinTime:"08:00:00",slotMaxTime:"19:00:00",themeSystem:"bootstrap",bootstrapFontAwesome:!1,buttonText:{today:"Today",month:"Month",week:"Week",day:"Day",list:"List",prev:"Prev",next:"Next"},initialView:"dayGridMonth",handleWindowResize:!0,height:l(window).height()-200,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},initialEvents:t,editable:!0,droppable:!0,selectable:!0,dateClick:function(e){a.onSelect(e)},eventClick:function(e){a.onEventClick(e)}}),a.$calendarObj.render(),a.$btnNewEvent.on("click",function(e){a.onSelect({date:new Date,allDay:!0})}),a.$formEvent.on("submit",function(e){e.preventDefault();var t,n=a.$formEvent[0];n.checkValidity()?(a.$selectedEvent?(a.$selectedEvent.setProp("title",l("#event-title").val()),a.$selectedEvent.setProp("classNames",[l("#event-category").val()])):(t={title:l("#event-title").val(),start:a.$newEventData.date,allDay:a.$newEventData.allDay,className:l("#event-category").val()},a.$calendarObj.addEvent(t)),a.$modal.hide()):(e.stopPropagation(),n.classList.add("was-validated"))}),l(a.$btnDeleteEvent.on("click",function(e){a.$selectedEvent&&(a.$selectedEvent.remove(),a.$selectedEvent=null,a.$modal.hide())}))},l.CalendarApp=new e,l.CalendarApp.Constructor=e}(window.jQuery),function(){"use strict";window.jQuery.CalendarApp.init()}();
|
||||
@@ -0,0 +1,347 @@
|
||||
function hexToRGB(r, t) {
|
||||
var a = parseInt(r.slice(1, 3), 16),
|
||||
e = parseInt(r.slice(3, 5), 16),
|
||||
o = parseInt(r.slice(5, 7), 16);
|
||||
return t
|
||||
? "rgba(" + a + ", " + e + ", " + o + ", " + t + ")"
|
||||
: "rgb(" + a + ", " + e + ", " + o + ")";
|
||||
}
|
||||
!(function (d) {
|
||||
"use strict";
|
||||
function r() {
|
||||
(this.$body = d("body")), (this.charts = []);
|
||||
}
|
||||
(r.prototype.respChart = function (t, a, e, o) {
|
||||
var n = Chart.controllers.line.prototype.draw;
|
||||
Chart.controllers.line.prototype.draw = function () {
|
||||
n.apply(this, arguments);
|
||||
var r = this.chart.ctx,
|
||||
t = r.stroke;
|
||||
r.stroke = function () {
|
||||
r.save(),
|
||||
(r.shadowColor = "rgba(0,0,0,0.01)"),
|
||||
(r.shadowBlur = 20),
|
||||
(r.shadowOffsetX = 0),
|
||||
(r.shadowOffsetY = 5),
|
||||
t.apply(this, arguments),
|
||||
r.restore();
|
||||
};
|
||||
};
|
||||
var s = Chart.controllers.doughnut.prototype.draw;
|
||||
Chart.controllers.doughnut.prototype.draw = function () {
|
||||
s.apply(this, arguments);
|
||||
var r = this.chart.ctx,
|
||||
t = r.fill;
|
||||
r.fill = function () {
|
||||
r.save(),
|
||||
(r.shadowColor = "rgba(0,0,0,0.03)"),
|
||||
(r.shadowBlur = 4),
|
||||
(r.shadowOffsetX = 0),
|
||||
(r.shadowOffsetY = 3),
|
||||
t.apply(this, arguments),
|
||||
r.restore();
|
||||
};
|
||||
};
|
||||
var l = Chart.controllers.bar.prototype.draw;
|
||||
(Chart.controllers.bar.prototype.draw = function () {
|
||||
l.apply(this, arguments);
|
||||
var r = this.chart.ctx,
|
||||
t = r.fill;
|
||||
r.fill = function () {
|
||||
r.save(),
|
||||
(r.shadowColor = "rgba(0,0,0,0.01)"),
|
||||
(r.shadowBlur = 20),
|
||||
(r.shadowOffsetX = 4),
|
||||
(r.shadowOffsetY = 5),
|
||||
t.apply(this, arguments),
|
||||
r.restore();
|
||||
};
|
||||
}),
|
||||
(Chart.defaults.color = "#8391a2"),
|
||||
(Chart.defaults.scale.grid.color = "#8391a2");
|
||||
var i = t.get(0).getContext("2d"),
|
||||
c = d(t).parent();
|
||||
return (function () {
|
||||
var r;
|
||||
switch ((t.attr("width", d(c).width()), a)) {
|
||||
case "Line":
|
||||
r = new Chart(i, { type: "line", data: e, options: o });
|
||||
break;
|
||||
case "Doughnut":
|
||||
r = new Chart(i, { type: "doughnut", data: e, options: o });
|
||||
break;
|
||||
case "Pie":
|
||||
r = new Chart(i, { type: "pie", data: e, options: o });
|
||||
break;
|
||||
case "Bar":
|
||||
r = new Chart(i, { type: "bar", data: e, options: o });
|
||||
break;
|
||||
case "Radar":
|
||||
r = new Chart(i, { type: "radar", data: e, options: o });
|
||||
break;
|
||||
case "PolarArea":
|
||||
r = new Chart(i, {
|
||||
data: e,
|
||||
type: "polarArea",
|
||||
options: o,
|
||||
});
|
||||
}
|
||||
return r;
|
||||
})();
|
||||
}),
|
||||
(r.prototype.initCharts = function () {
|
||||
var r,
|
||||
t,
|
||||
a,
|
||||
e,
|
||||
o,
|
||||
n,
|
||||
s,
|
||||
l = [],
|
||||
i = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
return (
|
||||
0 < d("#line-chart-example").length &&
|
||||
((r = {
|
||||
labels: [
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat",
|
||||
"Sun",
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: "Current Week",
|
||||
backgroundColor: hexToRGB(
|
||||
(n = (o = d("#line-chart-example").data(
|
||||
"colors"
|
||||
))
|
||||
? o.split(",")
|
||||
: i.concat())[0],
|
||||
0.3
|
||||
),
|
||||
fill: !0,
|
||||
borderColor: n[0],
|
||||
data: [32, 42, 42, 62, 52, 75, 62],
|
||||
},
|
||||
{
|
||||
label: "Previous Week",
|
||||
fill: !0,
|
||||
backgroundColor: "transparent",
|
||||
borderColor: n[1],
|
||||
borderDash: [5, 5],
|
||||
data: [42, 58, 66, 93, 82, 105, 92],
|
||||
},
|
||||
],
|
||||
}),
|
||||
l.push(
|
||||
this.respChart(d("#line-chart-example"), "Line", r, {
|
||||
maintainAspectRatio: !1,
|
||||
plugins: {
|
||||
legend: { display: !1 },
|
||||
filler: { propagate: !1 },
|
||||
tooltip: { mode: "nearest" },
|
||||
interaction: { mode: "nearest" },
|
||||
hover: {
|
||||
enabled: !0,
|
||||
intersect: !0,
|
||||
mode: "nearest",
|
||||
},
|
||||
},
|
||||
tension: 0.3,
|
||||
scales: {
|
||||
x: { grid: { color: "rgba(0,0,0,0.05)" } },
|
||||
y: {
|
||||
ticks: { stepSize: 20 },
|
||||
display: !0,
|
||||
borderDash: [5, 5],
|
||||
grid: {
|
||||
color: "rgba(0,0,0,0)",
|
||||
fontColor: "#fff",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
)),
|
||||
0 < d("#bar-chart-example").length &&
|
||||
((n = (o = d("#bar-chart-example").data("colors"))
|
||||
? o.split(",")
|
||||
: i.concat()),
|
||||
(t = document
|
||||
.getElementById("bar-chart-example")
|
||||
.getContext("2d")
|
||||
.createLinearGradient(0, 500, 0, 150)).addColorStop(
|
||||
0,
|
||||
n[0]
|
||||
),
|
||||
t.addColorStop(1, n[1]),
|
||||
(a = {
|
||||
labels: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec",
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: "Sales Analytics",
|
||||
backgroundColor: t,
|
||||
borderColor: t,
|
||||
hoverBackgroundColor: t,
|
||||
hoverBorderColor: t,
|
||||
data: [
|
||||
65, 59, 80, 81, 56, 89, 40, 32, 65, 59, 80,
|
||||
81,
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Dollar Rate",
|
||||
backgroundColor: "#e3eaef",
|
||||
borderColor: "#e3eaef",
|
||||
hoverBackgroundColor: "#e3eaef",
|
||||
hoverBorderColor: "#e3eaef",
|
||||
data: [
|
||||
89, 40, 32, 65, 59, 80, 81, 56, 89, 40, 65,
|
||||
59,
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
l.push(
|
||||
this.respChart(d("#bar-chart-example"), "Bar", a, {
|
||||
maintainAspectRatio: !1,
|
||||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.4,
|
||||
plugins: { legend: { display: !1 } },
|
||||
scales: {
|
||||
y: {
|
||||
grid: {
|
||||
display: !1,
|
||||
color: "rgba(0,0,0,0.05)",
|
||||
offset: !0,
|
||||
},
|
||||
stacked: !1,
|
||||
ticks: { stepSize: 20 },
|
||||
},
|
||||
x: {
|
||||
dataset: {},
|
||||
stacked: !1,
|
||||
grid: { color: "rgba(0,0,0,0.01)" },
|
||||
},
|
||||
},
|
||||
})
|
||||
)),
|
||||
0 < d("#donut-chart-example").length &&
|
||||
((e = {
|
||||
labels: ["Direct", "Affilliate", "Sponsored", "E-mail"],
|
||||
datasets: [
|
||||
{
|
||||
data: [300, 135, 48, 154],
|
||||
backgroundColor: (n = (o = d(
|
||||
"#donut-chart-example"
|
||||
).data("colors"))
|
||||
? o.split(",")
|
||||
: i.concat()),
|
||||
borderColor: "transparent",
|
||||
borderWidth: "3",
|
||||
},
|
||||
],
|
||||
}),
|
||||
l.push(
|
||||
this.respChart(
|
||||
d("#donut-chart-example"),
|
||||
"Doughnut",
|
||||
e,
|
||||
{
|
||||
maintainAspectRatio: !1,
|
||||
cutoutPercentage: 60,
|
||||
plugins: { legend: { display: !1 } },
|
||||
}
|
||||
)
|
||||
)),
|
||||
0 < d("#radar-chart-example").length &&
|
||||
((s = {
|
||||
labels: [
|
||||
"Eating",
|
||||
"Drinking",
|
||||
"Sleeping",
|
||||
"Designing",
|
||||
"Coding",
|
||||
"Cycling",
|
||||
"Running",
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: "Desktops",
|
||||
backgroundColor: hexToRGB(
|
||||
(n = (o = d("#radar-chart-example").data(
|
||||
"colors"
|
||||
))
|
||||
? o.split(",")
|
||||
: i.concat())[0],
|
||||
0.2
|
||||
),
|
||||
borderColor: n[0],
|
||||
pointBackgroundColor: n[0],
|
||||
pointBorderColor: "#fff",
|
||||
pointHoverBackgroundColor: "#fff",
|
||||
pointHoverBorderColor: n[0],
|
||||
data: [65, 59, 90, 81, 56, 55, 40],
|
||||
},
|
||||
{
|
||||
label: "Tablets",
|
||||
backgroundColor: hexToRGB(n[1], 0.2),
|
||||
borderColor: n[1],
|
||||
pointBackgroundColor: n[1],
|
||||
pointBorderColor: "#fff",
|
||||
pointHoverBackgroundColor: "#fff",
|
||||
pointHoverBorderColor: n[1],
|
||||
data: [28, 48, 40, 19, 96, 27, 100],
|
||||
},
|
||||
],
|
||||
}),
|
||||
l.push(
|
||||
this.respChart(d("#radar-chart-example"), "Radar", s, {
|
||||
maintainAspectRatio: !1,
|
||||
})
|
||||
)),
|
||||
l
|
||||
);
|
||||
}),
|
||||
(r.prototype.init = function () {
|
||||
var t = this;
|
||||
(Chart.defaults.font.family =
|
||||
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif'),
|
||||
(t.charts = this.initCharts()),
|
||||
d(window).on("resizeEnd", function (r) {
|
||||
d.each(t.charts, function (r, t) {
|
||||
try {
|
||||
t.destroy();
|
||||
} catch (r) {}
|
||||
}),
|
||||
(t.charts = t.initCharts());
|
||||
}),
|
||||
d(window).resize(function () {
|
||||
this.resizeTO && clearTimeout(this.resizeTO),
|
||||
(this.resizeTO = setTimeout(function () {
|
||||
d(this).trigger("resizeEnd");
|
||||
}, 500));
|
||||
});
|
||||
}),
|
||||
(d.ChartJs = new r()),
|
||||
(d.ChartJs.Constructor = r);
|
||||
})(window.jQuery),
|
||||
(function () {
|
||||
"use strict";
|
||||
window.jQuery.ChartJs.init();
|
||||
})();
|
||||
@@ -0,0 +1,174 @@
|
||||
var colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
dataColors = $("#campaign-sent-chart").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options1 = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (o) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#campaign-sent-chart"),
|
||||
options1
|
||||
).render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(dataColors = $("#new-leads-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options2 = {
|
||||
chart: { type: "line", height: 60, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: colors,
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (o) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#new-leads-chart"), options2).render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(dataColors = $("#deals-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options3 = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [12, 14, 2, 47, 42, 15, 47, 75, 65, 19, 14] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (o) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#deals-chart"), options3).render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(dataColors = $("#booked-revenue-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options4 = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [47, 45, 74, 14, 56, 74, 14, 11, 7, 39, 82] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (o) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#booked-revenue-chart"),
|
||||
options4
|
||||
).render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(dataColors = $("#dash-campaigns-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 314, type: "radialBar" },
|
||||
colors: colors,
|
||||
series: [86, 36, 50],
|
||||
labels: ["Total Sent", "Reached", "Opened"],
|
||||
plotOptions: { radialBar: { track: { margin: 8 } } },
|
||||
},
|
||||
chart = new ApexCharts(
|
||||
document.querySelector("#dash-campaigns-chart"),
|
||||
options
|
||||
);
|
||||
chart.render();
|
||||
colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(dataColors = $("#dash-revenue-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
options = {
|
||||
chart: { height: 321, type: "line", toolbar: { show: !1 } },
|
||||
stroke: { curve: "smooth", width: 2 },
|
||||
series: [
|
||||
{
|
||||
name: "Total Revenue",
|
||||
type: "area",
|
||||
data: [44, 55, 31, 47, 31, 43, 26, 41, 31, 47, 33, 43],
|
||||
},
|
||||
{
|
||||
name: "Total Pipeline",
|
||||
type: "line",
|
||||
data: [55, 69, 45, 61, 43, 54, 37, 52, 44, 61, 43, 56],
|
||||
},
|
||||
],
|
||||
fill: { type: "solid", opacity: [0.35, 1] },
|
||||
labels: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec",
|
||||
],
|
||||
markers: { size: 0 },
|
||||
colors: colors,
|
||||
yaxis: [{ title: { text: "Revenue (USD)" }, min: 0 }],
|
||||
tooltip: {
|
||||
shared: !0,
|
||||
intersect: !1,
|
||||
y: {
|
||||
formatter: function (o) {
|
||||
return void 0 !== o ? o.toFixed(0) + "k" : o;
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { borderColor: "#f1f3fa", padding: { bottom: 5 } },
|
||||
legend: { fontSize: "14px", fontFamily: "14px", offsetY: 5 },
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 600,
|
||||
options: { yaxis: { show: !1 }, legend: { show: !1 } },
|
||||
},
|
||||
],
|
||||
};
|
||||
(chart = new ApexCharts(
|
||||
document.querySelector("#dash-revenue-chart"),
|
||||
options
|
||||
)).render();
|
||||
@@ -0,0 +1,74 @@
|
||||
!(function (a) {
|
||||
"use strict";
|
||||
function t() {
|
||||
this.charts = [];
|
||||
}
|
||||
(t.prototype.init = function () {
|
||||
this.initCharts();
|
||||
}),
|
||||
(t.prototype.initCharts = function () {
|
||||
var t = ["#0166D2", "#0acf97"],
|
||||
e = a("#revenue-statistics-chart").data("colors");
|
||||
e && (t = e.split(","));
|
||||
var n = {
|
||||
chart: {
|
||||
height: 361,
|
||||
type: "line",
|
||||
dropShadow: {
|
||||
enabled: !0,
|
||||
opacity: 0.2,
|
||||
blur: 7,
|
||||
left: -7,
|
||||
top: 7,
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { curve: "smooth", width: 4 },
|
||||
series: [
|
||||
{ name: "Budget", data: [10, 20, 15, 28, 22, 34] },
|
||||
{ name: "Revenue", data: [2, 26, 10, 38, 30, 48] },
|
||||
],
|
||||
colors: t,
|
||||
zoom: { enabled: !1 },
|
||||
xaxis: {
|
||||
type: "string",
|
||||
categories: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec",
|
||||
],
|
||||
tooltip: { enabled: !1 },
|
||||
axisBorder: { show: !1 },
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (t) {
|
||||
return t + "k";
|
||||
},
|
||||
offsetX: -15,
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#revenue-statistics-chart"),
|
||||
n
|
||||
).render();
|
||||
}),
|
||||
(a.CrmManagement = new t()),
|
||||
(a.CrmManagement.Constructor = t);
|
||||
})(window.jQuery),
|
||||
(function (e) {
|
||||
"use strict";
|
||||
e(document).ready(function (t) {
|
||||
e.CrmManagement.init();
|
||||
});
|
||||
})(window.jQuery);
|
||||
@@ -0,0 +1,123 @@
|
||||
!(function (e) {
|
||||
"use strict";
|
||||
function t() {
|
||||
(this.$body = e("body")), (this.charts = []);
|
||||
}
|
||||
(t.prototype.init = function () {
|
||||
this.initCharts();
|
||||
}),
|
||||
(t.prototype.initCharts = function () {
|
||||
var t = ["#0166D2", "#0acf97"],
|
||||
o = e("#crm-project-statistics").data("colors");
|
||||
o && (t = o.split(","));
|
||||
var r = {
|
||||
chart: { height: 327, type: "bar", toolbar: { show: !1 } },
|
||||
plotOptions: {
|
||||
bar: {
|
||||
horizontal: !1,
|
||||
endingShape: "rounded",
|
||||
columnWidth: "25%",
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { show: !0, width: 3, colors: ["transparent"] },
|
||||
colors: t,
|
||||
series: [
|
||||
{
|
||||
name: "Previous Week Sale",
|
||||
data: [44, 55, 57, 56, 61, 58, 63, 60, 66],
|
||||
},
|
||||
{
|
||||
name: "This Week Sale",
|
||||
data: [76, 85, 101, 98, 87, 105, 91, 114, 94],
|
||||
},
|
||||
],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
],
|
||||
},
|
||||
legend: { offsetY: 7 },
|
||||
yaxis: { title: { text: "$ (thousands)" } },
|
||||
fill: { opacity: 1 },
|
||||
grid: {
|
||||
row: {
|
||||
colors: ["transparent", "transparent"],
|
||||
opacity: 0.2,
|
||||
},
|
||||
borderColor: "#f1f3fa",
|
||||
padding: { bottom: 5 },
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (t) {
|
||||
return "$ " + t + "K";
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#crm-project-statistics"),
|
||||
r
|
||||
).render();
|
||||
t = ["#0166D2", "#0acf97"];
|
||||
(o = e("#monthly-target").data("colors")) && (t = o.split(","));
|
||||
r = {
|
||||
chart: { height: 255, type: "donut" },
|
||||
legend: { show: !1 },
|
||||
stroke: { colors: ["transparent"] },
|
||||
series: [60, 40],
|
||||
labels: ["Panding Projects", "Done Projects"],
|
||||
colors: t,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
chart: { width: 200 },
|
||||
legend: { position: "bottom" },
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#monthly-target"),
|
||||
r
|
||||
).render();
|
||||
}),
|
||||
(e.CrmProject = new t()),
|
||||
(e.CrmProject.Constructor = t);
|
||||
})(window.jQuery),
|
||||
(function (o) {
|
||||
"use strict";
|
||||
o(document).ready(function (t) {
|
||||
o.CrmProject.init();
|
||||
});
|
||||
})(window.jQuery);
|
||||
var colors = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
dataColors = $("#project-overview-chart").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options = {
|
||||
chart: { height: 326, type: "radialBar" },
|
||||
colors: colors,
|
||||
series: [85, 70, 80, 65],
|
||||
labels: [
|
||||
"Product Design",
|
||||
"Web Development",
|
||||
"Illustration Design",
|
||||
"UI/UX Design",
|
||||
],
|
||||
plotOptions: { radialBar: { track: { margin: 5 } } },
|
||||
},
|
||||
chart = new ApexCharts(
|
||||
document.querySelector("#project-overview-chart"),
|
||||
options
|
||||
);
|
||||
chart.render();
|
||||
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){"use strict";$("#products-datatable").DataTable({language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"},info:"Showing customers _START_ to _END_ of _TOTAL_",lengthMenu:'Display <select class=\'form-select form-select-sm ms-1 me-1\'><option value="10">10</option><option value="20">20</option><option value="-1">All</option></select> customers'},columnDefs:[{targets:-1,className:"dt-body-right"}],pageLength:10,columns:[{orderable:!1,render:function(e,l,a,o){return"display"===l&&(e='<div class="form-check"><input type="checkbox" class="form-check-input dt-checkboxes"><label class="form-check-label"> </label></div>'),e},checkboxes:{selectRow:!0,selectAllRender:'<div class="form-check"><input type="checkbox" class="form-check-input dt-checkboxes"><label class="form-check-label"> </label></div>'}},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!1}],select:{style:"multi"},order:[[5,"asc"]],drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded"),$("#products-datatable_length label").addClass("form-label"),document.querySelector(".dataTables_wrapper .row").querySelectorAll(".col-md-6").forEach(function(e){e.classList.add("col-sm-6"),e.classList.remove("col-sm-12"),e.classList.remove("col-md-6")})}})});
|
||||
@@ -0,0 +1,289 @@
|
||||
!(function (i) {
|
||||
"use strict";
|
||||
function e() {
|
||||
(this.$body = i("body")), (this.charts = []);
|
||||
}
|
||||
(e.prototype.initCharts = function () {
|
||||
window.Apex = {
|
||||
chart: { parentHeightOffset: 0, toolbar: { show: !1 } },
|
||||
grid: { padding: { left: 0, right: 0 } },
|
||||
colors: ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
};
|
||||
var e = new Date(),
|
||||
t = (function (e, t) {
|
||||
for (
|
||||
var a = new Date(t, e, 1), o = [], r = 0;
|
||||
a.getMonth() === e && r < 15;
|
||||
|
||||
) {
|
||||
var s = new Date(a);
|
||||
o.push(
|
||||
s.getDate() +
|
||||
" " +
|
||||
s.toLocaleString("en-us", { month: "short" })
|
||||
),
|
||||
a.setDate(a.getDate() + 1),
|
||||
(r += 1);
|
||||
}
|
||||
return o;
|
||||
})(e.getMonth() + 1, e.getFullYear()),
|
||||
a = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
o = i("#sessions-overview").data("colors");
|
||||
o && (a = o.split(","));
|
||||
var r = {
|
||||
chart: { height: 309, type: "area" },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { curve: "smooth", width: 4 },
|
||||
series: [
|
||||
{
|
||||
name: "Sessions",
|
||||
data: [
|
||||
10, 20, 5, 15, 10, 20, 15, 25, 20, 30, 25, 40, 30, 50,
|
||||
35,
|
||||
],
|
||||
},
|
||||
],
|
||||
zoom: { enabled: !1 },
|
||||
legend: { show: !1 },
|
||||
colors: a,
|
||||
xaxis: {
|
||||
type: "string",
|
||||
categories: t,
|
||||
tooltip: { enabled: !1 },
|
||||
axisBorder: { show: !1 },
|
||||
labels: {},
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return e + "k";
|
||||
},
|
||||
offsetX: -15,
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
type: "vertical",
|
||||
shadeIntensity: 1,
|
||||
inverseColors: !1,
|
||||
opacityFrom: 0.45,
|
||||
opacityTo: 0.05,
|
||||
stops: [45, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#sessions-overview"),
|
||||
r
|
||||
).render();
|
||||
for (var s = [], n = 10; 1 <= n; n--) s.push(n + " min ago");
|
||||
a = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(o = i("#views-min").data("colors")) && (a = o.split(","));
|
||||
r = {
|
||||
chart: { height: 150, type: "bar", stacked: !0 },
|
||||
plotOptions: {
|
||||
bar: {
|
||||
horizontal: !1,
|
||||
endingShape: "rounded",
|
||||
columnWidth: "22%",
|
||||
dataLabels: { position: "top" },
|
||||
},
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: !0,
|
||||
offsetY: -24,
|
||||
style: { fontSize: "12px", colors: ["#98a6ad"] },
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: "Views",
|
||||
data: (function (e) {
|
||||
for (var t = [], a = 0; a < e; a++)
|
||||
t.push(Math.floor(90 * Math.random()) + 10);
|
||||
return t;
|
||||
})(10),
|
||||
},
|
||||
],
|
||||
zoom: { enabled: !1 },
|
||||
legend: { show: !1 },
|
||||
colors: a,
|
||||
xaxis: {
|
||||
categories: s,
|
||||
labels: { show: !1 },
|
||||
axisTicks: { show: !1 },
|
||||
axisBorder: { show: !1 },
|
||||
},
|
||||
yaxis: { labels: { show: !1 } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
inverseColors: !0,
|
||||
shade: "light",
|
||||
type: "horizontal",
|
||||
shadeIntensity: 0.25,
|
||||
gradientToColors: void 0,
|
||||
opacityFrom: 1,
|
||||
opacityTo: 1,
|
||||
stops: [0, 100, 100, 100],
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return e;
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#views-min"), r).render();
|
||||
a = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(o = i("#sessions-browser").data("colors")) && (a = o.split(","));
|
||||
r = {
|
||||
chart: { height: 343, type: "radar" },
|
||||
series: [{ name: "Usage", data: [80, 50, 30, 40, 60, 20] }],
|
||||
labels: [
|
||||
"Chrome",
|
||||
"Firefox",
|
||||
"Safari",
|
||||
"Opera",
|
||||
"Edge",
|
||||
"Explorer",
|
||||
],
|
||||
plotOptions: {
|
||||
radar: {
|
||||
size: 130,
|
||||
polygons: {
|
||||
strokeColor: "#e9e9e9",
|
||||
fill: { colors: ["#f8f8f8", "#fff"] },
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: a,
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return e + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !0 },
|
||||
markers: {
|
||||
size: 4,
|
||||
colors: ["#fff"],
|
||||
strokeColor: a[0],
|
||||
strokeWidth: 2,
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#sessions-browser"), r).render();
|
||||
a = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(o = i("#country-chart").data("colors")) && (a = o.split(","));
|
||||
r = {
|
||||
chart: { height: 320, type: "bar" },
|
||||
plotOptions: { bar: { horizontal: !0 } },
|
||||
colors: a,
|
||||
dataLabels: { enabled: !1 },
|
||||
series: [
|
||||
{
|
||||
name: "Sessions",
|
||||
data: [90, 75, 60, 50, 45, 36, 28, 20, 15, 12],
|
||||
},
|
||||
],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"India",
|
||||
"China",
|
||||
"United States",
|
||||
"Japan",
|
||||
"France",
|
||||
"Italy",
|
||||
"Netherlands",
|
||||
"United Kingdom",
|
||||
"Canada",
|
||||
"South Korea",
|
||||
],
|
||||
axisBorder: { show: !1 },
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return e + "%";
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { strokeDashArray: [5] },
|
||||
};
|
||||
new ApexCharts(document.querySelector("#country-chart"), r).render();
|
||||
a = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(o = i("#sessions-os").data("colors")) && (a = o.split(","));
|
||||
r = {
|
||||
chart: { height: 268, type: "radialBar" },
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
dataLabels: {
|
||||
name: { fontSize: "22px" },
|
||||
value: { fontSize: "16px" },
|
||||
total: {
|
||||
show: !0,
|
||||
label: "OS",
|
||||
formatter: function (e) {
|
||||
return 8541;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
colors: a,
|
||||
series: [44, 55, 67, 83],
|
||||
labels: ["Windows", "Macintosh", "Linux", "Android"],
|
||||
};
|
||||
new ApexCharts(document.querySelector("#sessions-os"), r).render();
|
||||
}),
|
||||
(e.prototype.initMaps = function () {
|
||||
0 < i("#world-map-markers").length &&
|
||||
i("#world-map-markers").vectorMap({
|
||||
map: "world_mill_en",
|
||||
normalizeFunction: "polynomial",
|
||||
hoverOpacity: 0.7,
|
||||
hoverColor: !1,
|
||||
regionStyle: { initial: { fill: "rgba(93,106,120,0.2)" } },
|
||||
series: {
|
||||
regions: [
|
||||
{
|
||||
values: {
|
||||
KR: "#e6ebff",
|
||||
CA: "#b3c3ff",
|
||||
GB: "#809bfe",
|
||||
NL: "#4d73fe",
|
||||
IT: "#1b4cfe",
|
||||
FR: "#0166D2",
|
||||
JP: "#e7fef7",
|
||||
US: "#e7e9fd",
|
||||
CN: "#8890f7",
|
||||
IN: "#0166D2",
|
||||
},
|
||||
attribute: "fill",
|
||||
},
|
||||
],
|
||||
},
|
||||
backgroundColor: "transparent",
|
||||
zoomOnScroll: !1,
|
||||
});
|
||||
}),
|
||||
(e.prototype.init = function () {
|
||||
i("#dash-daterange").daterangepicker({ singleDatePicker: !0 }),
|
||||
this.initCharts(),
|
||||
this.initMaps(),
|
||||
window.setInterval(function () {
|
||||
var e = Math.floor(600 * Math.random() + 150);
|
||||
i("#active-users-count").text(e),
|
||||
i("#active-views-count").text(
|
||||
Math.floor(Math.random() * e + 200)
|
||||
);
|
||||
}, 2e3);
|
||||
}),
|
||||
(i.AnalyticsDashboard = new e()),
|
||||
(i.AnalyticsDashboard.Constructor = e);
|
||||
})(window.jQuery),
|
||||
(function () {
|
||||
"use strict";
|
||||
window.jQuery.AnalyticsDashboard.init();
|
||||
})();
|
||||
@@ -0,0 +1,164 @@
|
||||
!(function (o) {
|
||||
"use strict";
|
||||
function t() {
|
||||
(this.$body = o("body")), (this.charts = []);
|
||||
}
|
||||
(t.prototype.respChart = function (r, a, e, i) {
|
||||
(Chart.defaults.font.color = "#8391a2"),
|
||||
(Chart.defaults.scale.grid.color = "#8391a2");
|
||||
var n = r.get(0).getContext("2d"),
|
||||
s = o(r).parent();
|
||||
return (function () {
|
||||
var t;
|
||||
switch ((r.attr("width", o(s).width()), a)) {
|
||||
case "Line":
|
||||
t = new Chart(n, { type: "line", data: e, options: i });
|
||||
break;
|
||||
case "Bar":
|
||||
t = new Chart(n, { type: "bar", data: e, options: i });
|
||||
break;
|
||||
case "Doughnut":
|
||||
t = new Chart(n, { type: "doughnut", data: e, options: i });
|
||||
}
|
||||
return t;
|
||||
})();
|
||||
}),
|
||||
(t.prototype.initCharts = function () {
|
||||
var t,
|
||||
r,
|
||||
a,
|
||||
e = [];
|
||||
return (
|
||||
0 < o("#task-area-chart").length &&
|
||||
((t = {
|
||||
labels: [
|
||||
"Sprint 1",
|
||||
"Sprint 2",
|
||||
"Sprint 3",
|
||||
"Sprint 4",
|
||||
"Sprint 5",
|
||||
"Sprint 6",
|
||||
"Sprint 7",
|
||||
"Sprint 8",
|
||||
"Sprint 9",
|
||||
"Sprint 10",
|
||||
"Sprint 11",
|
||||
"Sprint 12",
|
||||
"Sprint 13",
|
||||
"Sprint 14",
|
||||
"Sprint 15",
|
||||
"Sprint 16",
|
||||
"Sprint 17",
|
||||
"Sprint 18",
|
||||
"Sprint 19",
|
||||
"Sprint 20",
|
||||
"Sprint 21",
|
||||
"Sprint 22",
|
||||
"Sprint 23",
|
||||
"Sprint 24",
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: "This year",
|
||||
backgroundColor:
|
||||
o("#task-area-chart").data("bgcolor") ||
|
||||
"#0166D2",
|
||||
borderColor:
|
||||
o("#task-area-chart").data("bordercolor") ||
|
||||
"#0166D2",
|
||||
data: [
|
||||
16, 44, 32, 48, 72, 60, 84, 64, 78, 50, 68,
|
||||
34, 26, 44, 32, 48, 72, 60, 74, 52, 62, 50,
|
||||
32, 22,
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
e.push(
|
||||
this.respChart(o("#task-area-chart"), "Bar", t, {
|
||||
maintainAspectRatio: !1,
|
||||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.5,
|
||||
plugins: {
|
||||
filler: { propagate: !1 },
|
||||
legend: { display: !1 },
|
||||
tooltips: { intersect: !1 },
|
||||
hover: { intersect: !0 },
|
||||
},
|
||||
scales: {
|
||||
x: { grid: { color: "rgba(0,0,0,0.05)" } },
|
||||
y: {
|
||||
ticks: { stepSize: 10, display: !1 },
|
||||
min: 10,
|
||||
max: 100,
|
||||
display: !0,
|
||||
borderDash: [5, 5],
|
||||
grid: {
|
||||
color: "rgba(0,0,0,0)",
|
||||
fontColor: "#fff",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
)),
|
||||
0 < o("#project-status-chart").length &&
|
||||
((a = {
|
||||
labels: ["Completed", "In-progress", "Behind"],
|
||||
datasets: [
|
||||
{
|
||||
data: [64, 26, 10],
|
||||
backgroundColor: (r = o(
|
||||
"#project-status-chart"
|
||||
).data("colors"))
|
||||
? r.split(",")
|
||||
: ["#0acf97", "#0166D2", "#fa5c7c"],
|
||||
borderColor: "transparent",
|
||||
borderWidth: "3",
|
||||
},
|
||||
],
|
||||
}),
|
||||
e.push(
|
||||
this.respChart(
|
||||
o("#project-status-chart"),
|
||||
"Doughnut",
|
||||
a,
|
||||
{
|
||||
maintainAspectRatio: !1,
|
||||
cutout: 80,
|
||||
plugins: {
|
||||
cutoutPercentage: 40,
|
||||
legend: { display: !1 },
|
||||
},
|
||||
}
|
||||
)
|
||||
)),
|
||||
e
|
||||
);
|
||||
}),
|
||||
(t.prototype.init = function () {
|
||||
var r = this;
|
||||
(Chart.defaults.font.family =
|
||||
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif'),
|
||||
(r.charts = this.initCharts()),
|
||||
o(window).on("resizeEnd", function (t) {
|
||||
o.each(r.charts, function (t, r) {
|
||||
try {
|
||||
r.destroy();
|
||||
} catch (t) {}
|
||||
}),
|
||||
(r.charts = r.initCharts());
|
||||
}),
|
||||
o(window).resize(function () {
|
||||
this.resizeTO && clearTimeout(this.resizeTO),
|
||||
(this.resizeTO = setTimeout(function () {
|
||||
o(this).trigger("resizeEnd");
|
||||
}, 500));
|
||||
});
|
||||
}),
|
||||
(o.ChartJs = new t()),
|
||||
(o.ChartJs.Constructor = t);
|
||||
})(window.jQuery),
|
||||
(function () {
|
||||
"use strict";
|
||||
window.jQuery.ChartJs.init();
|
||||
})();
|
||||
@@ -0,0 +1,282 @@
|
||||
!(function (r) {
|
||||
"use strict";
|
||||
function t() {}
|
||||
(t.prototype.generateData = function () {
|
||||
for (var t = [], a = 0; a < 100; a++)
|
||||
t.push(5e3 + 1e5 * Math.random() + 0.8 * a * a * a);
|
||||
return t;
|
||||
}),
|
||||
(t.prototype.init = function () {
|
||||
(this.dayDummyData = this.generateData()),
|
||||
(this.monthDummyData = this.generateData()),
|
||||
(this.weekDummyData = this.generateData()),
|
||||
(this.yearDummyData = this.generateData()),
|
||||
(this.dayBalanceData = []);
|
||||
for (var t = 0; t < 100; t++) {
|
||||
var a = new Date();
|
||||
this.dayBalanceData.push([
|
||||
a.setDate(a.getDate() + t - 100),
|
||||
this.dayDummyData[t],
|
||||
]);
|
||||
}
|
||||
this.weekBalanceData = [];
|
||||
for (t = 0; t < 100; t++) {
|
||||
a = new Date();
|
||||
this.weekBalanceData.push([
|
||||
a.setDate(a.getDate() + 7 * t - 700),
|
||||
this.weekDummyData[t],
|
||||
]);
|
||||
}
|
||||
this.monthBalanceData = [];
|
||||
for (t = 0; t < 100; t++) {
|
||||
a = new Date();
|
||||
this.monthBalanceData.push([
|
||||
a.setDate(a.getDate() + 30 * t - 3e3),
|
||||
this.monthDummyData[t],
|
||||
]);
|
||||
}
|
||||
this.yearBalanceData = [];
|
||||
for (t = 0; t < 100; t++) {
|
||||
a = new Date();
|
||||
this.yearBalanceData.push([
|
||||
a.setDate(a.getDate() + 365 * t - 36500),
|
||||
this.yearDummyData[t],
|
||||
]);
|
||||
}
|
||||
this.initCurrencyBTC(),
|
||||
this.initCurrencyCNY(),
|
||||
this.initCurrencyETH(),
|
||||
this.initDayBalance(),
|
||||
this.initWeekBalance(),
|
||||
this.initMonthBalance(),
|
||||
this.initYearBalance();
|
||||
}),
|
||||
(t.prototype.initCurrencyBTC = function () {
|
||||
var t = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
a = r("#currency-btc-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "line", height: 60, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [25, 33, 28, 35, 30, 40] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: t,
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (t) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#currency-btc-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(t.prototype.initCurrencyCNY = function () {
|
||||
var t = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
a = r("#currency-cny-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: t,
|
||||
series: [{ data: [25, 44, 12, 36, 9, 54, 25, 66, 41, 89, 63] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (t) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#currency-cny-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(t.prototype.initCurrencyETH = function () {
|
||||
var t = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
a = r("#currency-eth-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "line", height: 60, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [25, 33, 28, 35, 30, 40] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: t,
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (t) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#currency-eth-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(t.prototype.initDayBalance = function () {
|
||||
var t = ["#6c757d"],
|
||||
a = r("#day-balance-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "area", height: 350, toolbar: { show: !1 } },
|
||||
colors: t,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 1 },
|
||||
series: [{ data: this.dayBalanceData }],
|
||||
markers: { size: 0, style: "hollow" },
|
||||
xaxis: { type: "datetime", tickAmount: 6 },
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (t) {
|
||||
return "$" + t;
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: { x: { format: "dd MMM yyyy" } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shadeIntensity: 1,
|
||||
opacityFrom: 0.7,
|
||||
opacityTo: 0,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#day-balance-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(t.prototype.initWeekBalance = function () {
|
||||
var t = ["#6c757d"],
|
||||
a = r("#week-balance-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "area", height: 350, toolbar: { show: !1 } },
|
||||
colors: t,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 1 },
|
||||
series: [{ data: this.weekBalanceData }],
|
||||
markers: { size: 0, style: "hollow" },
|
||||
xaxis: { type: "datetime", tickAmount: 6 },
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (t) {
|
||||
return "$" + t;
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: { x: { format: "dd MMM yyyy" } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shadeIntensity: 1,
|
||||
opacityFrom: 0.7,
|
||||
opacityTo: 0,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#week-balance-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(t.prototype.initMonthBalance = function () {
|
||||
var t = ["#6c757d"],
|
||||
a = r("#month-balance-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "area", height: 350, toolbar: { show: !1 } },
|
||||
colors: t,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 1 },
|
||||
series: [{ data: this.monthBalanceData }],
|
||||
markers: { size: 0, style: "hollow" },
|
||||
xaxis: { type: "datetime", tickAmount: 6 },
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (t) {
|
||||
return "$" + t;
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: { x: { format: "dd MMM yyyy" } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shadeIntensity: 1,
|
||||
opacityFrom: 0.7,
|
||||
opacityTo: 0,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#month-balance-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(t.prototype.initYearBalance = function () {
|
||||
var t = ["#6c757d"],
|
||||
a = r("#year-balance-chart").data("colors");
|
||||
a && (t = a.split(","));
|
||||
var e = {
|
||||
chart: { type: "area", height: 350, toolbar: { show: !1 } },
|
||||
colors: t,
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { width: 1 },
|
||||
series: [{ data: this.yearBalanceData }],
|
||||
markers: { size: 0, style: "hollow" },
|
||||
xaxis: { type: "datetime", tickAmount: 6 },
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (t) {
|
||||
return "$" + t;
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: { x: { format: "dd MMM yyyy" } },
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shadeIntensity: 1,
|
||||
opacityFrom: 0.7,
|
||||
opacityTo: 0,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#year-balance-chart"),
|
||||
e
|
||||
).render();
|
||||
}),
|
||||
(r.DashboardWallet = new t()),
|
||||
(r.DashboardWallet.Constructor = t),
|
||||
r.DashboardWallet.init();
|
||||
})(window.jQuery);
|
||||
@@ -0,0 +1,178 @@
|
||||
!(function (o) {
|
||||
"use strict";
|
||||
function e() {
|
||||
(this.$body = o("body")), (this.charts = []);
|
||||
}
|
||||
(e.prototype.initCharts = function () {
|
||||
window.Apex = {
|
||||
chart: { parentHeightOffset: 0, toolbar: { show: !1 } },
|
||||
grid: { padding: { left: 0, right: 0 } },
|
||||
colors: ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
};
|
||||
var e = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"],
|
||||
t = o("#revenue-chart").data("colors");
|
||||
t && (e = t.split(","));
|
||||
var r = {
|
||||
chart: {
|
||||
height: 364,
|
||||
type: "line",
|
||||
dropShadow: {
|
||||
enabled: !0,
|
||||
opacity: 0.2,
|
||||
blur: 7,
|
||||
left: -7,
|
||||
top: 7,
|
||||
},
|
||||
},
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { curve: "smooth", width: 4 },
|
||||
series: [
|
||||
{ name: "Current Week", data: [10, 20, 15, 25, 20, 30, 20] },
|
||||
{ name: "Previous Week", data: [0, 15, 10, 30, 15, 35, 25] },
|
||||
],
|
||||
colors: e,
|
||||
zoom: { enabled: !1 },
|
||||
legend: { show: !1 },
|
||||
xaxis: {
|
||||
type: "string",
|
||||
categories: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
||||
tooltip: { enabled: !1 },
|
||||
axisBorder: { show: !1 },
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return e + "k";
|
||||
},
|
||||
offsetX: -15,
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#revenue-chart"), r).render();
|
||||
e = ["#0166D2", "#e3eaef"];
|
||||
(t = o("#high-performing-product").data("colors")) &&
|
||||
(e = t.split(","));
|
||||
r = {
|
||||
chart: { height: 257, type: "bar", stacked: !0 },
|
||||
plotOptions: { bar: { horizontal: !1, columnWidth: "20%" } },
|
||||
dataLabels: { enabled: !1 },
|
||||
stroke: { show: !0, width: 2, colors: ["transparent"] },
|
||||
series: [
|
||||
{
|
||||
name: "Actual",
|
||||
data: [65, 59, 80, 81, 56, 89, 40, 32, 65, 59, 80, 81],
|
||||
},
|
||||
{
|
||||
name: "Projection",
|
||||
data: [89, 40, 32, 65, 59, 80, 81, 56, 89, 40, 65, 59],
|
||||
},
|
||||
],
|
||||
zoom: { enabled: !1 },
|
||||
legend: { show: !1 },
|
||||
colors: e,
|
||||
xaxis: {
|
||||
categories: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec",
|
||||
],
|
||||
axisBorder: { show: !1 },
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
formatter: function (e) {
|
||||
return e + "k";
|
||||
},
|
||||
offsetX: -15,
|
||||
},
|
||||
},
|
||||
fill: { opacity: 1 },
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (e) {
|
||||
return "$" + e + "k";
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#high-performing-product"),
|
||||
r
|
||||
).render();
|
||||
e = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
(t = o("#average-sales").data("colors")) && (e = t.split(","));
|
||||
r = {
|
||||
chart: { height: 203, type: "donut" },
|
||||
legend: { show: !1 },
|
||||
stroke: { colors: ["transparent"] },
|
||||
series: [44, 55, 41, 17],
|
||||
labels: ["Direct", "Affilliate", "Sponsored", "E-mail"],
|
||||
colors: e,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
chart: { width: 200 },
|
||||
legend: { position: "bottom" },
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
new ApexCharts(document.querySelector("#average-sales"), r).render();
|
||||
}),
|
||||
(e.prototype.initMaps = function () {
|
||||
0 < o("#world-map-markers").length &&
|
||||
o("#world-map-markers").vectorMap({
|
||||
map: "world_mill_en",
|
||||
normalizeFunction: "polynomial",
|
||||
hoverOpacity: 0.7,
|
||||
hoverColor: !1,
|
||||
regionStyle: { initial: { fill: "#e3eaef" } },
|
||||
markerStyle: {
|
||||
initial: {
|
||||
r: 9,
|
||||
fill: "#0166D2",
|
||||
"fill-opacity": 0.9,
|
||||
stroke: "#fff",
|
||||
"stroke-width": 7,
|
||||
"stroke-opacity": 0.4,
|
||||
},
|
||||
hover: {
|
||||
stroke: "#fff",
|
||||
"fill-opacity": 1,
|
||||
"stroke-width": 1.5,
|
||||
},
|
||||
},
|
||||
backgroundColor: "transparent",
|
||||
markers: [
|
||||
{ latLng: [40.71, -74], name: "New York" },
|
||||
{ latLng: [37.77, -122.41], name: "San Francisco" },
|
||||
{ latLng: [-33.86, 151.2], name: "Sydney" },
|
||||
{ latLng: [1.3, 103.8], name: "Singapore" },
|
||||
],
|
||||
zoomOnScroll: !1,
|
||||
});
|
||||
}),
|
||||
(e.prototype.init = function () {
|
||||
o("#dash-daterange").daterangepicker({ singleDatePicker: !0 }),
|
||||
this.initCharts(),
|
||||
this.initMaps();
|
||||
}),
|
||||
(o.Dashboard = new e()),
|
||||
(o.Dashboard.Constructor = e);
|
||||
})(window.jQuery),
|
||||
(function (t) {
|
||||
"use strict";
|
||||
t(document).ready(function (e) {
|
||||
t.Dashboard.init();
|
||||
});
|
||||
})(window.jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){"use strict";$("#basic-datatable").DataTable({keys:!0,language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}});var a=$("#datatable-buttons").DataTable({lengthChange:!1,buttons:["copy","print"],language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}});$("#selection-datatable").DataTable({select:{style:"multi"},language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}}),a.buttons().container().appendTo("#datatable-buttons_wrapper .col-md-6:eq(0)"),$("#alternative-page-datatable").DataTable({pagingType:"full_numbers",drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}}),$("#scroll-vertical-datatable").DataTable({scrollY:"350px",scrollCollapse:!0,paging:!1,language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}}),$("#scroll-horizontal-datatable").DataTable({scrollX:!0,language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}}),$("#complex-header-datatable").DataTable({language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")},columnDefs:[{visible:!1,targets:-1}]}),$("#row-callback-datatable").DataTable({language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")},createdRow:function(a,e,t){15e4<+e[5].replace(/[\$,]/g,"")&&$("td",a).eq(5).addClass("text-danger")}}),$("#state-saving-datatable").DataTable({stateSave:!0,language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"}},drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded")}}),$("#fixed-header-datatable").DataTable({fixedHeader:!0}),$("#fixed-columns-datatable").DataTable({scrollY:300,scrollX:!0,scrollCollapse:!0,paging:!1,fixedColumns:!0}),$(".dataTables_length select").addClass("form-select form-select-sm"),$(".dataTables_length label").addClass("form-label")});
|
||||
@@ -0,0 +1 @@
|
||||
$(function(){"use strict";$("#basicwizard").bootstrapWizard(),$("#progressbarwizard").bootstrapWizard({onTabShow:function(t,r,a){var o=(a+1)/r.find("li").length*100;$("#progressbarwizard").find(".bar").css({width:o+"%"})}}),$("#btnwizard").bootstrapWizard({nextSelector:".button-next",previousSelector:".button-previous",firstSelector:".button-first",lastSelector:".button-last"}),$("#rootwizard").bootstrapWizard({onNext:function(t,r,a){var o=$($(t).data("targetForm"));if(o&&(o.addClass("was-validated"),!1===o[0].checkValidity()))return event.preventDefault(),event.stopPropagation(),!1}})});
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
$("input:checkbox").change(function(){$(this).is(":checked")?$(this).parent().parent().parent().parent().addClass("mail-selected"):$(this).parent().parent().parent().parent().removeClass("mail-selected")}),function(e){"use strict";function t(){}t.prototype.init=function(){new SimpleMDE({element:document.getElementById("simplemde1"),spellChecker:!1,placeholder:"Write something..",tabSize:2,status:!1,autosave:{enabled:!1}})},e.SimpleMDEEditor=new t,e.SimpleMDEEditor.Constructor=t}(window.jQuery),function(){"use strict";window.jQuery.SimpleMDEEditor.init()}();
|
||||
@@ -0,0 +1 @@
|
||||
!function(i){"use strict";function e(){this.$body=i("body")}e.prototype.init=function(){i("#jstree-1").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"dripicons-folder"},file:{icon:"dripicons-document"}},plugins:["types"]}),i("#jstree-1").on("select_node.jstree",function(e,t){var n=i("#"+t.selected).find("a");if("#"!=n.attr("href")&&"javascript:;"!=n.attr("href")&&""!=n.attr("href"))return"_blank"==n.attr("target")&&(n.attr("href").target="_blank"),document.location.href=n.attr("href"),!1}),i("#jstree-2").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"dripicons-folder text-warning"},file:{icon:"dripicons-document text-warning"}},plugins:["types"]}),i("#jstree-2").on("select_node.jstree",function(e,t){var n=i("#"+t.selected).find("a");if("#"!=n.attr("href")&&"javascript:;"!=n.attr("href")&&""!=n.attr("href"))return"_blank"==n.attr("target")&&(n.attr("href").target="_blank"),document.location.href=n.attr("href"),!1}),i("#jstree-3").jstree({plugins:["wholerow","checkbox","types"],core:{themes:{responsive:!1},data:[{text:"Same but with checkboxes",children:[{text:"initially selected",state:{selected:!0}},{text:"custom icon",icon:"dripicons-feed text-danger"},{text:"initially open",icon:"dripicons-folder text-default",state:{opened:!0},children:["Another node"]},{text:"custom icon",icon:"dripicons-hourglass text-warning"},{text:"disabled node",icon:"dripicons-wrong text-success",state:{disabled:!0}}]},"And wholerow selection"]},types:{default:{icon:"dripicons-folder text-warning"},file:{icon:"dripicons-document text-warning"}}}),i("#jstree-4").jstree({core:{themes:{responsive:!1},check_callback:!0,data:[{text:"Parent Node",children:[{text:"Initially selected",state:{selected:!0}},{text:"Custom Icon",icon:"dripicons-feed text-danger"},{text:"Initially open",icon:"dripicons-folder text-success",state:{opened:!0},children:[{text:"Another node",icon:"dripicons-document text-warning"}]},{text:"Another Custom Icon",icon:"dripicons-hourglass text-warning"},{text:"Disabled Node",icon:"dripicons-wrong text-success",state:{disabled:!0}},{text:"Sub Nodes",icon:"dripicons-folder text-danger",children:[{text:"Item 1",icon:"dripicons-document text-warning"},{text:"Item 2",icon:"dripicons-document text-success"},{text:"Item 3",icon:"dripicons-document text-default"},{text:"Item 4",icon:"dripicons-document text-danger"},{text:"Item 5",icon:"dripicons-document text-info"}]}]},"Another Node"]},types:{default:{icon:"dripicons-folder text-primary"},file:{icon:"dripicons-document text-primary"}},state:{key:"demo2"},plugins:["contextmenu","state","types"]}),i("#jstree-5").jstree({core:{themes:{responsive:!1},check_callback:!0,data:[{text:"Parent Node",children:[{text:"Initially selected",state:{selected:!0}},{text:"Custom Icon",icon:"dripicons-hourglass text-danger"},{text:"Initially open",icon:"dripicons-folder text-success",state:{opened:!0},children:[{text:"Another node",icon:"dripicons-document text-warning"}]},{text:"Another Custom Icon",icon:"dripicons-graph-line text-warning"},{text:"Disabled Node",icon:"dripicons-wrong text-success",state:{disabled:!0}},{text:"Sub Nodes",icon:"dripicons-folder text-danger",children:[{text:"Item 1",icon:"dripicons-document text-warning"},{text:"Item 2",icon:"dripicons-document text-success"},{text:"Item 3",icon:"dripicons-document text-default"},{text:"Item 4",icon:"dripicons-document text-danger"},{text:"Item 5",icon:"dripicons-document text-info"}]}]},"Another Node"]},types:{default:{icon:"dripicons-folder text-success"},file:{icon:"dripicons-document text-success"}},state:{key:"demo2"},plugins:["dnd","state","types"]}),i("#jstree-6").jstree({core:{themes:{responsive:!1},check_callback:!0,data:{url:function(e){return e.id,"assets/data/vendor/ajax_demo_children.json"},data:function(e){return{id:e.id}}}},types:{default:{icon:"dripicons-folder text-primary"},file:{icon:"dripicons-document text-primary"}},state:{key:"demo3"},plugins:["dnd","state","types"]})},i.JSTree=new e,i.JSTree.Constructor=e}(window.jQuery),function(){"use strict";window.jQuery.JSTree.init()}();
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){"use strict";$("#products-datatable").DataTable({language:{paginate:{previous:"<i class='mdi mdi-chevron-left'>",next:"<i class='mdi mdi-chevron-right'>"},info:"Showing products _START_ to _END_ of _TOTAL_",lengthMenu:'Display <select class=\'form-select form-select-sm ms-1 me-1\'><option value="5">5</option><option value="10">10</option><option value="20">20</option><option value="-1">All</option></select> products'},pageLength:5,columns:[{orderable:!1,targets:0,render:function(e,l,a,o){return"display"===l&&(e='<div class="form-check"><input type="checkbox" class="form-check-input dt-checkboxes"><label class="form-check-label"> </label></div>'),e},checkboxes:{selectRow:!0,selectAllRender:'<div class="form-check"><input type="checkbox" class="form-check-input dt-checkboxes"><label class="form-check-label"> </label></div>'}},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!0},{orderable:!1}],select:{style:"multi"},order:[[1,"asc"]],drawCallback:function(){$(".dataTables_paginate > .pagination").addClass("pagination-rounded"),$("#products-datatable_length label").addClass("form-label"),document.querySelector(".dataTables_wrapper .row").querySelectorAll(".col-md-6").forEach(function(e){e.classList.add("col-sm-6"),e.classList.remove("col-sm-12"),e.classList.remove("col-md-6")})}})});
|
||||
@@ -0,0 +1,150 @@
|
||||
!(function (c) {
|
||||
"use strict";
|
||||
function t() {
|
||||
(this.$body = c("body")), (this.charts = []);
|
||||
}
|
||||
(t.prototype.respChart = function (e, r, a, o) {
|
||||
var n = Chart.controllers.bar.prototype.draw;
|
||||
(Chart.controllers.bar.draw = function () {
|
||||
n.apply(this, arguments);
|
||||
var t = this.chart.ctx,
|
||||
e = t.fill;
|
||||
t.fill = function () {
|
||||
t.save(),
|
||||
(t.shadowColor = "rgba(0,0,0,0.01)"),
|
||||
(t.shadowBlur = 20),
|
||||
(t.shadowOffsetX = 4),
|
||||
(t.shadowOffsetY = 5),
|
||||
e.apply(this, arguments),
|
||||
t.restore();
|
||||
};
|
||||
}),
|
||||
(Chart.defaults.font.color = "#8391a2"),
|
||||
(Chart.defaults.scale.grid.color = "#8391a2");
|
||||
var i = e.get(0).getContext("2d"),
|
||||
s = c(e).parent();
|
||||
return (function () {
|
||||
var t;
|
||||
switch ((e.attr("width", c(s).width()), r)) {
|
||||
case "Line":
|
||||
t = new Chart(i, { type: "line", data: a, options: o });
|
||||
break;
|
||||
case "Doughnut":
|
||||
t = new Chart(i, { type: "doughnut", data: a, options: o });
|
||||
break;
|
||||
case "Pie":
|
||||
t = new Chart(i, { type: "pie", data: a, options: o });
|
||||
break;
|
||||
case "Bar":
|
||||
t = new Chart(i, { type: "bar", data: a, options: o });
|
||||
break;
|
||||
case "Radar":
|
||||
t = new Chart(i, { type: "radar", data: a, options: o });
|
||||
break;
|
||||
case "PolarArea":
|
||||
t = new Chart(i, {
|
||||
data: a,
|
||||
type: "polarArea",
|
||||
options: o,
|
||||
});
|
||||
}
|
||||
return t;
|
||||
})();
|
||||
}),
|
||||
(t.prototype.initCharts = function () {
|
||||
var t, e;
|
||||
0 < c("#high-performing-product").length &&
|
||||
((t = document
|
||||
.getElementById("high-performing-product")
|
||||
.getContext("2d")
|
||||
.createLinearGradient(0, 500, 0, 150)).addColorStop(
|
||||
0,
|
||||
"#fa5c7c"
|
||||
),
|
||||
t.addColorStop(1, "#0166D2"),
|
||||
(e = {
|
||||
labels: [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec",
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: "Orders",
|
||||
backgroundColor: t,
|
||||
borderColor: t,
|
||||
hoverBackgroundColor: t,
|
||||
hoverBorderColor: t,
|
||||
data: [
|
||||
65, 59, 80, 81, 56, 89, 40, 32, 65, 59, 80, 81,
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Revenue",
|
||||
backgroundColor: "#e3eaef",
|
||||
borderColor: "#e3eaef",
|
||||
hoverBackgroundColor: "#e3eaef",
|
||||
hoverBorderColor: "#e3eaef",
|
||||
data: [
|
||||
89, 40, 32, 65, 59, 80, 81, 56, 89, 40, 65, 59,
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
[].push(
|
||||
this.respChart(c("#high-performing-product"), "Bar", e, {
|
||||
maintainAspectRatio: !1,
|
||||
datasets: {
|
||||
bar: {
|
||||
barPercentage: 0.7,
|
||||
categoryPercentage: 0.5,
|
||||
},
|
||||
},
|
||||
plugins: { legend: { display: !1 } },
|
||||
scales: {
|
||||
y: {
|
||||
grid: {
|
||||
display: !1,
|
||||
color: "rgba(0,0,0,0.05)",
|
||||
},
|
||||
stacked: !1,
|
||||
ticks: { stepSize: 20 },
|
||||
},
|
||||
x: {
|
||||
stacked: !1,
|
||||
grid: { color: "rgba(0,0,0,0.01)" },
|
||||
},
|
||||
},
|
||||
})
|
||||
));
|
||||
}),
|
||||
(t.prototype.init = function () {
|
||||
var e = this;
|
||||
(Chart.defaults.font.family =
|
||||
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif'),
|
||||
(e.charts = this.initCharts()),
|
||||
c(window).on("resize", function (t) {
|
||||
c.each(e.charts, function (t, e) {
|
||||
try {
|
||||
e.destroy();
|
||||
} catch (t) {}
|
||||
}),
|
||||
(e.charts = e.initCharts());
|
||||
});
|
||||
}),
|
||||
(c.Profile = new t()),
|
||||
(c.Profile.Constructor = t);
|
||||
})(window.jQuery),
|
||||
(function () {
|
||||
"use strict";
|
||||
window.jQuery.Profile.init();
|
||||
})();
|
||||
@@ -0,0 +1,139 @@
|
||||
!(function (l) {
|
||||
"use strict";
|
||||
function t() {
|
||||
(this.$body = l("body")), (this.charts = []);
|
||||
}
|
||||
(t.prototype.respChart = function (a, r, e, o) {
|
||||
var n = Chart.controllers.line.prototype.draw;
|
||||
(Chart.controllers.line.prototype.draw = function () {
|
||||
n.apply(this, arguments);
|
||||
var t = this.chart.ctx,
|
||||
a = t.stroke;
|
||||
t.stroke = function () {
|
||||
t.save(),
|
||||
(t.shadowColor = "rgba(0,0,0,0.01)"),
|
||||
(t.shadowBlur = 20),
|
||||
(t.shadowOffsetX = 0),
|
||||
(t.shadowOffsetY = 5),
|
||||
a.apply(this, arguments),
|
||||
t.restore();
|
||||
};
|
||||
}),
|
||||
(Chart.defaults.font.color = "#8391a2"),
|
||||
(Chart.defaults.scale.grid.color = "#8391a2");
|
||||
var s = a.get(0).getContext("2d"),
|
||||
i = l(a).parent();
|
||||
return (function () {
|
||||
var t;
|
||||
switch ((a.attr("width", l(i).width()), r)) {
|
||||
case "Line":
|
||||
t = new Chart(s, { type: "line", data: e, options: o });
|
||||
break;
|
||||
case "Doughnut":
|
||||
t = new Chart(s, { type: "doughnut", data: e, options: o });
|
||||
break;
|
||||
case "Pie":
|
||||
t = new Chart(s, { type: "pie", data: e, options: o });
|
||||
break;
|
||||
case "Bar":
|
||||
t = new Chart(s, { type: "bar", data: e, options: o });
|
||||
break;
|
||||
case "Radar":
|
||||
t = new Chart(s, { type: "radar", data: e, options: o });
|
||||
break;
|
||||
case "PolarArea":
|
||||
t = new Chart(s, {
|
||||
data: e,
|
||||
type: "polarArea",
|
||||
options: o,
|
||||
});
|
||||
}
|
||||
return t;
|
||||
})();
|
||||
}),
|
||||
(t.prototype.initCharts = function () {
|
||||
var t = [];
|
||||
return (
|
||||
0 < l("#line-chart-example").length &&
|
||||
(0,
|
||||
t.push(
|
||||
this.respChart(
|
||||
l("#line-chart-example"),
|
||||
"Line",
|
||||
{
|
||||
labels: [
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat",
|
||||
"Sun",
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: "Completed Tasks",
|
||||
backgroundColor:
|
||||
"rgba(10, 207, 151, 0.3)",
|
||||
borderColor: "#0acf97",
|
||||
fill: !0,
|
||||
data: [32, 42, 42, 62, 52, 75, 62],
|
||||
},
|
||||
{
|
||||
label: "Plan Tasks",
|
||||
fill: !0,
|
||||
backgroundColor: "transparent",
|
||||
borderColor: "#0166D2",
|
||||
borderDash: [5, 5],
|
||||
data: [42, 58, 66, 93, 82, 105, 92],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
maintainAspectRatio: !1,
|
||||
plugins: {
|
||||
filler: { propagate: !1 },
|
||||
legend: { display: !1 },
|
||||
tooltips: { intersect: !1 },
|
||||
hover: { intersect: !0 },
|
||||
},
|
||||
tension: 0.3,
|
||||
scales: {
|
||||
x: { grid: { color: "rgba(0,0,0,0.05)" } },
|
||||
y: {
|
||||
ticks: { stepSize: 20 },
|
||||
display: !0,
|
||||
borderDash: [5, 5],
|
||||
grid: {
|
||||
color: "rgba(0,0,0,0)",
|
||||
fontColor: "#fff",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
)),
|
||||
t
|
||||
);
|
||||
}),
|
||||
(t.prototype.init = function () {
|
||||
var a = this;
|
||||
(Chart.defaults.font.family =
|
||||
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif'),
|
||||
(a.charts = this.initCharts()),
|
||||
l(window).on("resize", function (t) {
|
||||
l.each(a.charts, function (t, a) {
|
||||
try {
|
||||
a.destroy();
|
||||
} catch (t) {}
|
||||
}),
|
||||
(a.charts = a.initCharts());
|
||||
});
|
||||
}),
|
||||
(l.ChartJs = new t()),
|
||||
(l.ChartJs.Constructor = t);
|
||||
})(window.jQuery),
|
||||
(function () {
|
||||
"use strict";
|
||||
window.jQuery.ChartJs.init();
|
||||
})();
|
||||
@@ -0,0 +1 @@
|
||||
$(function(){var e=new Gantt("#tasks-gantt",[{id:"1",name:"Draft the new contract document for sales team",start:"2019-07-16",end:"2019-07-20",progress:55},{id:"2",name:"Find out the old contract documents",start:"2019-07-19",end:"2019-07-21",progress:85,dependencies:"1"},{id:"3",name:"Organize meeting with sales associates to understand need in detail",start:"2019-07-21",end:"2019-07-22",progress:80,dependencies:"2"},{id:"4",name:"iOS App home page",start:"2019-07-15",end:"2019-07-17",progress:80},{id:"5",name:"Write a release note",start:"2019-07-18",end:"2019-07-22",progress:65,dependencies:"4"},{id:"6",name:"Setup new sales project",start:"2019-07-20",end:"2019-07-31",progress:15},{id:"7",name:"Invite user to a project",start:"2019-07-25",end:"2019-07-26",progress:99,dependencies:"6"},{id:"8",name:"Coordinate with business development",start:"2019-07-28",end:"2019-07-30",progress:35,dependencies:"7"},{id:"9",name:"Kanban board design",start:"2019-08-01",end:"2019-08-03",progress:25,dependencies:"8"},{id:"10",name:"Enable analytics tracking",start:"2019-08-05",end:"2019-08-07",progress:60,dependencies:"9"}],{view_modes:["Quarter Day","Half Day","Day","Week","Month"],bar_height:20,padding:18,view_mode:"Week",custom_popup_html:function(e){e.end;var s=60<=e.progress?"bg-success":30<=e.progress&&e.progress<60?"bg-primary":"bg-warning";return'<div class="popover fade show bs-popover-right gantt-task-details" role="tooltip"><div class="arrow"></div><div class="popover-body"><h5>'+e.name+'</h5><p class="mb-2">Expected to finish by ${end_date}</p><div class="progress mb-2" style="height: 10px;"><div class="progress-bar '+s+'" role="progressbar" style="width: ${task.progress}%;" aria-valuenow="${task.progress}" aria-valuemin="0" aria-valuemax="100">${task.progress}%</div></div></div></div>'}});$("#modes-filter :input").on("change",function(){e.change_view_mode($(this).val())});var s=document.getElementById("modes-filter").querySelectorAll(".btn");s.forEach(function(e){e.addEventListener("click",function(){s.forEach(function(e){e.classList.remove("active")}),e.classList.add("active")})})});
|
||||
@@ -0,0 +1 @@
|
||||
var quill=new Quill("#snow-editor",{theme:"snow",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:[!1,1,2,3,4,5,6]},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["link","image","video"],["clean"]]}}),quill=new Quill("#bubble-editor",{theme:"bubble"});
|
||||
@@ -0,0 +1,94 @@
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
var t = {
|
||||
chart: {
|
||||
type: "line",
|
||||
width: 80,
|
||||
height: 35,
|
||||
sparkline: { enabled: !0 },
|
||||
},
|
||||
series: [],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: ["#0166D2"],
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (e) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
},
|
||||
s = [];
|
||||
$("#products-datatable").DataTable({
|
||||
language: {
|
||||
paginate: {
|
||||
previous: "<i class='mdi mdi-chevron-left'>",
|
||||
next: "<i class='mdi mdi-chevron-right'>",
|
||||
},
|
||||
info: "Showing sellers _START_ to _END_ of _TOTAL_",
|
||||
lengthMenu:
|
||||
'Display <select class=\'form-select form-select-sm ms-1 me-1\'><option value="10">10</option><option value="20">20</option><option value="-1">All</option></select> sellers',
|
||||
},
|
||||
pageLength: 10,
|
||||
columns: [
|
||||
{
|
||||
orderable: !1,
|
||||
render: function (e, a, l, t) {
|
||||
return (
|
||||
"display" === a &&
|
||||
(e =
|
||||
'<div class="form-check"><input type="checkbox" class="form-check-input dt-checkboxes"><label class="form-check-label"> </label></div>'),
|
||||
e
|
||||
);
|
||||
},
|
||||
checkboxes: {
|
||||
selectRow: !0,
|
||||
selectAllRender:
|
||||
'<div class="form-check"><input type="checkbox" class="form-check-input dt-checkboxes"><label class="form-check-label"> </label></div>',
|
||||
},
|
||||
},
|
||||
{ orderable: !0 },
|
||||
{ orderable: !0 },
|
||||
{ orderable: !0 },
|
||||
{ orderable: !0 },
|
||||
{ orderable: !0 },
|
||||
{ orderable: !1 },
|
||||
{ orderable: !1 },
|
||||
],
|
||||
select: { style: "multi" },
|
||||
order: [[4, "desc"]],
|
||||
drawCallback: function () {
|
||||
$(".dataTables_paginate > .pagination").addClass(
|
||||
"pagination-rounded"
|
||||
),
|
||||
$("#products-datatable_length label").addClass("form-label");
|
||||
for (var e = 0; e < s.length; e++)
|
||||
try {
|
||||
s[e].destroy();
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
(s = []),
|
||||
$(".spark-chart").each(function (e) {
|
||||
var a = $(this).data().dataset;
|
||||
t.series = [{ data: a }];
|
||||
var l = new ApexCharts($(this)[0], t);
|
||||
s.push(l), l.render();
|
||||
}),
|
||||
document
|
||||
.querySelector(".dataTables_wrapper .row")
|
||||
.querySelectorAll(".col-md-6")
|
||||
.forEach(function (e) {
|
||||
e.classList.add("col-sm-6"),
|
||||
e.classList.remove("col-sm-12"),
|
||||
e.classList.remove("col-md-6");
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
!function(e){"use strict";function i(){}i.prototype.init=function(){new SimpleMDE({element:document.getElementById("simplemde1"),spellChecker:!1,autosave:{enabled:!0,unique_id:"simplemde1"}})},e.SimpleMDEEditor=new i,e.SimpleMDEEditor.Constructor=i}(window.jQuery),function(){"use strict";window.jQuery.SimpleMDEEditor.init()}();
|
||||
@@ -0,0 +1,185 @@
|
||||
function hexToRGB(o, i) {
|
||||
var l = parseInt(o.slice(1, 3), 16),
|
||||
t = parseInt(o.slice(3, 5), 16),
|
||||
r = parseInt(o.slice(5, 7), 16);
|
||||
return i
|
||||
? "rgba(" + l + ", " + t + ", " + r + ", " + i + ")"
|
||||
: "rgb(" + l + ", " + t + ", " + r + ")";
|
||||
}
|
||||
$(document).ready(function () {
|
||||
function i() {
|
||||
var o = $("#sparkline1").data("colors"),
|
||||
i = o ? o.split(",") : r.concat();
|
||||
$("#sparkline1").sparkline([0, 23, 43, 35, 44, 45, 56, 37, 40], {
|
||||
type: "line",
|
||||
width: "100%",
|
||||
height: "165",
|
||||
chartRangeMax: 50,
|
||||
lineColor: i[0],
|
||||
fillColor: hexToRGB(i[0], 0.3),
|
||||
highlightLineColor: "rgba(0,0,0,.1)",
|
||||
highlightSpotColor: "rgba(0,0,0,.2)",
|
||||
maxSpotColor: !1,
|
||||
minSpotColor: !1,
|
||||
spotColor: !1,
|
||||
lineWidth: 1,
|
||||
}),
|
||||
$("#sparkline1").sparkline([25, 23, 26, 24, 25, 32, 30, 24, 19], {
|
||||
type: "line",
|
||||
width: "100%",
|
||||
height: "165",
|
||||
chartRangeMax: 40,
|
||||
lineColor: i[1],
|
||||
fillColor: hexToRGB(i[1], 0.3),
|
||||
composite: !0,
|
||||
highlightLineColor: "rgba(0,0,0,.1)",
|
||||
highlightSpotColor: "rgba(0,0,0,.2)",
|
||||
maxSpotColor: !1,
|
||||
minSpotColor: !1,
|
||||
spotColor: !1,
|
||||
lineWidth: 1,
|
||||
}),
|
||||
(i = (o = $("#sparkline2").data("colors"))
|
||||
? o.split(",")
|
||||
: r.concat()),
|
||||
$("#sparkline2").sparkline(
|
||||
[3, 6, 7, 8, 6, 4, 7, 10, 12, 7, 4, 9, 12, 13, 11, 12],
|
||||
{
|
||||
type: "bar",
|
||||
height: "165",
|
||||
barWidth: "10",
|
||||
barSpacing: "3",
|
||||
barColor: i,
|
||||
}
|
||||
),
|
||||
(i = (o = $("#sparkline3").data("colors"))
|
||||
? o.split(",")
|
||||
: r.concat()),
|
||||
$("#sparkline3").sparkline([20, 40, 30, 10], {
|
||||
type: "pie",
|
||||
width: "165",
|
||||
height: "165",
|
||||
sliceColors: i,
|
||||
}),
|
||||
(i = (o = $("#sparkline4").data("colors"))
|
||||
? o.split(",")
|
||||
: r.concat()),
|
||||
$("#sparkline4").sparkline([0, 23, 43, 35, 44, 45, 56, 37, 40], {
|
||||
type: "line",
|
||||
width: "100%",
|
||||
height: "165",
|
||||
chartRangeMax: 50,
|
||||
lineColor: i[0],
|
||||
fillColor: "transparent",
|
||||
lineWidth: 2,
|
||||
highlightLineColor: "rgba(0,0,0,.1)",
|
||||
highlightSpotColor: "rgba(0,0,0,.2)",
|
||||
maxSpotColor: !1,
|
||||
minSpotColor: !1,
|
||||
spotColor: !1,
|
||||
}),
|
||||
$("#sparkline4").sparkline([25, 23, 26, 24, 25, 32, 30, 24, 19], {
|
||||
type: "line",
|
||||
width: "100%",
|
||||
height: "165",
|
||||
chartRangeMax: 40,
|
||||
lineColor: i[1],
|
||||
fillColor: "transparent",
|
||||
composite: !0,
|
||||
lineWidth: 2,
|
||||
maxSpotColor: !1,
|
||||
minSpotColor: !1,
|
||||
spotColor: !1,
|
||||
highlightLineColor: "rgba(0,0,0,1)",
|
||||
highlightSpotColor: "rgba(0,0,0,1)",
|
||||
}),
|
||||
(i = (o = $("#sparkline6").data("colors"))
|
||||
? o.split(",")
|
||||
: r.concat()),
|
||||
$("#sparkline6").sparkline(
|
||||
[3, 6, 7, 8, 6, 4, 7, 10, 12, 7, 4, 9, 12, 13, 11, 12],
|
||||
{
|
||||
type: "line",
|
||||
width: "100%",
|
||||
height: "165",
|
||||
lineColor: "#e3eaef",
|
||||
lineWidth: 2,
|
||||
fillColor: "rgba(227,234,239,0.3)",
|
||||
highlightLineColor: "rgba(0,0,0,.1)",
|
||||
highlightSpotColor: "rgba(0,0,0,.2)",
|
||||
}
|
||||
),
|
||||
$("#sparkline6").sparkline(
|
||||
[3, 6, 7, 8, 6, 4, 7, 10, 12, 7, 4, 9, 12, 13, 11, 12],
|
||||
{
|
||||
type: "bar",
|
||||
height: "165",
|
||||
barWidth: "10",
|
||||
barSpacing: "5",
|
||||
composite: !0,
|
||||
barColor: "#6c757d",
|
||||
}
|
||||
),
|
||||
(i = ["#6c757d"]),
|
||||
(o = $("#sparkline7").data("colors")) && (i = o.split(",")),
|
||||
$("#sparkline7").sparkline(
|
||||
[
|
||||
4, 6, 7, 7, 4, 3, 2, 1, 4, 4, 5, 6, 3, 4, 5, 8, 7, 6, 9, 3,
|
||||
2, 4, 1, 5, 6, 4, 3, 7,
|
||||
],
|
||||
{ type: "discrete", width: "280", height: "165", lineColor: i }
|
||||
);
|
||||
}
|
||||
function l() {
|
||||
var l,
|
||||
t = -1,
|
||||
r = -1,
|
||||
e = 0,
|
||||
a = [];
|
||||
$("html").mousemove(function (o) {
|
||||
var i = o.pageX,
|
||||
l = o.pageY;
|
||||
-1 < t && (e += Math.max(Math.abs(i - t), Math.abs(l - r))),
|
||||
(t = i),
|
||||
(r = l);
|
||||
});
|
||||
var n = function () {
|
||||
var o,
|
||||
i = new Date().getTime();
|
||||
l &&
|
||||
l != i &&
|
||||
((o = Math.round((e / (i - l)) * 1e3)),
|
||||
a.push(o),
|
||||
30 < a.length && a.splice(0, 1),
|
||||
(e = 0),
|
||||
$("#sparkline5").sparkline(a, {
|
||||
tooltipSuffix: " pixels per second",
|
||||
type: "line",
|
||||
width: "100%",
|
||||
height: "165",
|
||||
chartRangeMax: 77,
|
||||
maxSpotColor: !1,
|
||||
minSpotColor: !1,
|
||||
spotColor: !1,
|
||||
lineWidth: 1,
|
||||
lineColor: "#fa5c7c",
|
||||
fillColor: "rgba(250, 92, 124, 0.3)",
|
||||
highlightLineColor: "rgba(24,147,126,.1)",
|
||||
highlightSpotColor: "rgba(24,147,126,.2)",
|
||||
})),
|
||||
(l = i),
|
||||
setTimeout(n, 500);
|
||||
};
|
||||
setTimeout(n, 500);
|
||||
}
|
||||
var t,
|
||||
r = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"];
|
||||
i(),
|
||||
l(),
|
||||
$(window).resize(function (o) {
|
||||
clearTimeout(t),
|
||||
(t = setTimeout(function () {
|
||||
i(), l();
|
||||
}, 300));
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
var quill=new Quill("#bubble-editor",{theme:"bubble"});
|
||||
@@ -0,0 +1 @@
|
||||
$("#timepicker").timepicker({showSeconds:!0,icons:{up:"mdi mdi-chevron-up",down:"mdi mdi-chevron-down"},appendWidgetTo:"#timepicker-input-group1"}),$("#timepicker2").timepicker({showSeconds:!0,showMeridian:!1,icons:{up:"mdi mdi-chevron-up",down:"mdi mdi-chevron-down"},appendWidgetTo:"#timepicker-input-group2"}),$("#timepicker3").timepicker({showSeconds:!0,minuteStep:15,icons:{up:"mdi mdi-chevron-up",down:"mdi mdi-chevron-down"},appendWidgetTo:"#timepicker-input-group3"});
|
||||
@@ -0,0 +1 @@
|
||||
!function(i){"use strict";i("#toastr-one").on("click",function(t){i.NotificationApp.send("Heads up!","This alert needs your attention, but it is not super important.","top-right","rgba(0,0,0,0.2)","info")}),i("#toastr-two").on("click",function(t){i.NotificationApp.send("Heads up!","Check below fields please.","top-center","rgba(0,0,0,0.2)","warning")}),i("#toastr-three").on("click",function(t){i.NotificationApp.send("Well Done!","You successfully read this important alert message","bottom-right","rgba(0,0,0,0.2)","success")}),i("#toastr-four").on("click",function(t){i.NotificationApp.send("Oh snap!","Change a few things up and try submitting again.","bottom-left","rgba(0,0,0,0.2)","error")}),i("#toastr-five").on("click",function(t){i.NotificationApp.send("How to contribute?",["Fork the repository","Improve/extend the functionality","Create a pull request"],"top-right","rgba(0,0,0,0.2)","info")}),i("#toastr-six").on("click",function(t){i.NotificationApp.send("Can I add <em>icons</em>?","Yes! check this <a href='https://github.com/kamranahmedse/jquery-toast-plugin/commits/master'>update</a>.","top-right","rgba(0,0,0,0.2)","info",!1)}),i("#toastr-seven").on("click",function(t){i.NotificationApp.send("","Set the `hideAfter` property to false and the toast will become sticky.","top-right","rgba(0,0,0,0.2)","success")}),i("#toastr-eight").on("click",function(t){i.NotificationApp.send("","Set the `showHideTransition` property to fade|plain|slide to achieve different transitions.","top-right","rgba(0,0,0,0.2)","info",3e3,1,"fade")})}(window.jQuery);
|
||||
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){var o,e=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"];$("#the-basics").typeahead({hint:!0,highlight:!0,minLength:1},{name:"states",source:(o=e,function(e,a){var t=[];substrRegex=new RegExp(e,"i"),$.each(o,function(e,a){substrRegex.test(a)&&t.push(a)}),a(t)})});e=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e});$("#bloodhound").typeahead({hint:!0,highlight:!0,minLength:1},{name:"states",source:e});var a=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"https://raw.githubusercontent.com/twitter/typeahead.js/gh-pages/data/countries.json"});$("#prefetch").typeahead(null,{name:"countries",source:a});var t=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("value"),queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"https://raw.githubusercontent.com/twitter/typeahead.js/gh-pages/data/films/post_1960.json",remote:{url:"../plugins/typeahead/data/%QUERY.json",wildcard:"%QUERY"}});$("#remote").typeahead(null,{name:"best-pictures",display:"value",source:t});var n=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("team"),queryTokenizer:Bloodhound.tokenizers.whitespace,identify:function(e){return e.team},prefetch:"https://raw.githubusercontent.com/twitter/typeahead.js/gh-pages/data/nfl.json"});$("#default-suggestions").typeahead({minLength:0,highlight:!0},{name:"nfl-teams",display:"team",source:function(e,a){""===e?a(n.get("Detroit Lions","Green Bay Packers","Chicago Bears")):n.search(e,a)}}),$("#custom-templates").typeahead(null,{name:"best-pictures",display:"value",source:t,templates:{empty:['<div class="typeahead-empty-message">',"Unable to find any Best Picture winners that match the current query","</div>"].join("\n"),suggestion:Handlebars.compile("<div><strong>{{value}}</strong> - {{year}}</div>")}});var s=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("team"),queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"https://raw.githubusercontent.com/twitter/typeahead.js/gh-pages/data/nba.json"}),i=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("team"),queryTokenizer:Bloodhound.tokenizers.whitespace,prefetch:"https://raw.githubusercontent.com/twitter/typeahead.js/gh-pages/data/nhl.json"});$("#multiple-datasets").typeahead({highlight:!0},{name:"nba-teams",display:"team",source:s,templates:{header:'<h5 class="league-name">NBA Teams</h5>'}},{name:"nhl-teams",display:"team",source:i,templates:{header:'<h5 class="league-name">NHL Teams</h5>'}})});
|
||||
@@ -0,0 +1,114 @@
|
||||
!(function (a) {
|
||||
"use strict";
|
||||
function n() {}
|
||||
(n.prototype.init = function () {
|
||||
a("#world-map-markers").vectorMap({
|
||||
map: "world_mill_en",
|
||||
normalizeFunction: "polynomial",
|
||||
hoverOpacity: 0.7,
|
||||
hoverColor: !1,
|
||||
regionStyle: { initial: { fill: "#e3eaef" } },
|
||||
markerStyle: {
|
||||
initial: {
|
||||
r: 9,
|
||||
fill: "#0166D2",
|
||||
"fill-opacity": 0.9,
|
||||
stroke: "#fff",
|
||||
"stroke-width": 7,
|
||||
"stroke-opacity": 0.4,
|
||||
},
|
||||
hover: {
|
||||
stroke: "#fff",
|
||||
"fill-opacity": 1,
|
||||
"stroke-width": 1.5,
|
||||
},
|
||||
},
|
||||
backgroundColor: "transparent",
|
||||
markers: [
|
||||
{ latLng: [41.9, 12.45], name: "Vatican City" },
|
||||
{ latLng: [43.73, 7.41], name: "Monaco" },
|
||||
{ latLng: [-0.52, 166.93], name: "Nauru" },
|
||||
{ latLng: [-8.51, 179.21], name: "Tuvalu" },
|
||||
{ latLng: [43.93, 12.46], name: "San Marino" },
|
||||
{ latLng: [47.14, 9.52], name: "Liechtenstein" },
|
||||
{ latLng: [7.11, 171.06], name: "Marshall Islands" },
|
||||
{ latLng: [17.3, -62.73], name: "Saint Kitts and Nevis" },
|
||||
{ latLng: [3.2, 73.22], name: "Maldives" },
|
||||
{ latLng: [35.88, 14.5], name: "Malta" },
|
||||
{ latLng: [12.05, -61.75], name: "Grenada" },
|
||||
{
|
||||
latLng: [13.16, -61.23],
|
||||
name: "Saint Vincent and the Grenadines",
|
||||
},
|
||||
{ latLng: [13.16, -59.55], name: "Barbados" },
|
||||
{ latLng: [17.11, -61.85], name: "Antigua and Barbuda" },
|
||||
{ latLng: [-4.61, 55.45], name: "Seychelles" },
|
||||
{ latLng: [7.35, 134.46], name: "Palau" },
|
||||
{ latLng: [42.5, 1.51], name: "Andorra" },
|
||||
{ latLng: [14.01, -60.98], name: "Saint Lucia" },
|
||||
{
|
||||
latLng: [6.91, 158.18],
|
||||
name: "Federated States of Micronesia",
|
||||
},
|
||||
{ latLng: [1.3, 103.8], name: "Singapore" },
|
||||
{ latLng: [0.33, 6.73], name: "São Tomé and PrÃncipe" },
|
||||
],
|
||||
}),
|
||||
a("#usa-vectormap").vectorMap({
|
||||
map: "us_merc_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#0166D2" } },
|
||||
}),
|
||||
a("#india-vectormap").vectorMap({
|
||||
map: "in_mill_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#6c757d" } },
|
||||
}),
|
||||
a("#australia-vectormap").vectorMap({
|
||||
map: "au_mill_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#0acf97" } },
|
||||
}),
|
||||
a("#chicago-vectormap").vectorMap({
|
||||
map: "us-il-chicago_mill_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#39afd1" } },
|
||||
}),
|
||||
a("#uk-vectormap").vectorMap({
|
||||
map: "uk_mill_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#fa5c7c" } },
|
||||
}),
|
||||
a("#canada-vectormap").vectorMap({
|
||||
map: "ca_lcc_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#ffbc00" } },
|
||||
}),
|
||||
a("#europe-vectormap").vectorMap({
|
||||
map: "europe_mill_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#0166D2" } },
|
||||
}),
|
||||
a("#france-vectormap").vectorMap({
|
||||
map: "fr_merc_en",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#0acf97" } },
|
||||
}),
|
||||
a("#spain-vectormap").vectorMap({
|
||||
map: "es_merc",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#39afd1" } },
|
||||
}),
|
||||
a("#spain2-vectormap").vectorMap({
|
||||
map: "es_mill",
|
||||
backgroundColor: "transparent",
|
||||
regionStyle: { initial: { fill: "#6c757d" } },
|
||||
});
|
||||
}),
|
||||
(a.VectorMap = new n()),
|
||||
(a.VectorMap.Constructor = n);
|
||||
})(window.jQuery),
|
||||
(function () {
|
||||
"use strict";
|
||||
window.jQuery.VectorMap.init();
|
||||
})();
|
||||
@@ -0,0 +1,218 @@
|
||||
(Apex.grid = { padding: { right: 0, left: 0 } }),
|
||||
(Apex.dataLabels = { enabled: !1 });
|
||||
var randomizeArray = function (e) {
|
||||
for (var r, t, a = e.slice(), o = a.length; 0 !== o; )
|
||||
(t = Math.floor(Math.random() * o)),
|
||||
(r = a[--o]),
|
||||
(a[o] = a[t]),
|
||||
(a[t] = r);
|
||||
return a;
|
||||
};
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
for (
|
||||
var e = [
|
||||
47, 45, 54, 38, 56, 24, 65, 31, 37, 39, 62, 51, 35, 41, 35, 27,
|
||||
93, 53, 61, 27, 54, 43, 19, 46,
|
||||
],
|
||||
r = [],
|
||||
t = 1;
|
||||
t <= 24;
|
||||
t++
|
||||
)
|
||||
r.push("2018-09-" + t);
|
||||
var a = ["#3688fc"],
|
||||
o = $("#sales-spark").data("colors");
|
||||
o && (a = o.split(","));
|
||||
var s = {
|
||||
chart: { type: "area", height: 172, sparkline: { enabled: !0 } },
|
||||
stroke: { width: 2, curve: "straight" },
|
||||
fill: { opacity: 0.2 },
|
||||
series: [{ name: "Hyper Sales", data: randomizeArray(e) }],
|
||||
xaxis: { type: "datetime" },
|
||||
yaxis: { min: 0 },
|
||||
colors: a,
|
||||
labels: r,
|
||||
title: {
|
||||
text: "$424,652",
|
||||
offsetX: 20,
|
||||
offsetY: 20,
|
||||
style: { fontSize: "24px" },
|
||||
},
|
||||
subtitle: {
|
||||
text: "Sales",
|
||||
offsetX: 20,
|
||||
offsetY: 55,
|
||||
style: { fontSize: "14px" },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#sales-spark"), s).render();
|
||||
a = ["#0acf97"];
|
||||
(o = $("#profit-spark").data("colors")) && (a = o.split(","));
|
||||
var l = {
|
||||
chart: { type: "bar", height: 172, sparkline: { enabled: !0 } },
|
||||
stroke: { width: 0, curve: "straight" },
|
||||
fill: { opacity: 0.5 },
|
||||
series: [{ name: "Net Profits ", data: randomizeArray(e) }],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
yaxis: { min: 0 },
|
||||
colors: a,
|
||||
title: {
|
||||
text: "$135,965",
|
||||
offsetX: 20,
|
||||
offsetY: 20,
|
||||
style: { fontSize: "24px" },
|
||||
},
|
||||
subtitle: {
|
||||
text: "Profits",
|
||||
offsetX: 20,
|
||||
offsetY: 55,
|
||||
style: { fontSize: "14px" },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#profit-spark"), l).render();
|
||||
a = ["#734CEA"];
|
||||
(o = $("#spark1").data("colors")) && (a = o.split(","));
|
||||
var i = {
|
||||
chart: { type: "line", height: 100, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [25, 66, 41, 59, 25, 44, 12, 36, 9, 21] }],
|
||||
stroke: { width: 4, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: a,
|
||||
},
|
||||
a = ["#34bfa3"];
|
||||
(o = $("#spark2").data("colors")) && (a = o.split(","));
|
||||
var n = {
|
||||
chart: { type: "bar", height: 100, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [12, 14, 2, 47, 32, 44, 14, 55, 41, 69] }],
|
||||
stroke: { width: 3, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: a,
|
||||
},
|
||||
a = ["#f4516c"];
|
||||
(o = $("#spark3").data("colors")) && (a = o.split(","));
|
||||
var c = {
|
||||
chart: { type: "line", height: 100, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [47, 45, 74, 32, 56, 31, 44, 33, 45, 19] }],
|
||||
stroke: { width: 4, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: a,
|
||||
},
|
||||
a = ["#00c5dc"];
|
||||
(o = $("#spark4").data("colors")) && (a = o.split(","));
|
||||
var d = {
|
||||
chart: { type: "bar", height: 100, sparkline: { enabled: !0 } },
|
||||
plotOptions: {
|
||||
bar: { horizontal: !1, endingShape: "rounded", columnWidth: "55%" },
|
||||
},
|
||||
series: [{ data: [15, 75, 47, 65, 14, 32, 19, 54, 44, 61] }],
|
||||
stroke: { width: 3, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: a,
|
||||
};
|
||||
new ApexCharts(document.querySelector("#spark1"), i).render(),
|
||||
new ApexCharts(document.querySelector("#spark2"), n).render(),
|
||||
new ApexCharts(document.querySelector("#spark3"), c).render(),
|
||||
new ApexCharts(document.querySelector("#spark4"), d).render();
|
||||
});
|
||||
var colors = ["#0166D2"],
|
||||
dataColors = $("#campaign-sent-chart").data("colors");
|
||||
dataColors && (colors = dataColors.split(","));
|
||||
var options1 = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (e) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#campaign-sent-chart"),
|
||||
options1
|
||||
).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#new-leads-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options2 = {
|
||||
chart: { type: "line", height: 60, sparkline: { enabled: !0 } },
|
||||
series: [{ data: [25, 66, 41, 89, 63, 25, 44, 12, 36, 9, 54] }],
|
||||
stroke: { width: 2, curve: "smooth" },
|
||||
markers: { size: 0 },
|
||||
colors: colors,
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (e) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#new-leads-chart"), options2).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#deals-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options3 = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [12, 14, 2, 47, 42, 15, 47, 75, 65, 19, 14] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (e) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(document.querySelector("#deals-chart"), options3).render();
|
||||
colors = ["#0166D2"];
|
||||
(dataColors = $("#booked-revenue-chart").data("colors")) &&
|
||||
(colors = dataColors.split(","));
|
||||
var options4 = {
|
||||
chart: { type: "bar", height: 60, sparkline: { enabled: !0 } },
|
||||
plotOptions: { bar: { columnWidth: "60%" } },
|
||||
colors: colors,
|
||||
series: [{ data: [47, 45, 74, 14, 56, 74, 14, 11, 7, 39, 82] }],
|
||||
labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
||||
xaxis: { crosshairs: { width: 1 } },
|
||||
tooltip: {
|
||||
fixed: { enabled: !1 },
|
||||
x: { show: !1 },
|
||||
y: {
|
||||
title: {
|
||||
formatter: function (e) {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
},
|
||||
marker: { show: !1 },
|
||||
},
|
||||
};
|
||||
new ApexCharts(
|
||||
document.querySelector("#booked-revenue-chart"),
|
||||
options4
|
||||
).render();
|
||||
Reference in New Issue
Block a user