in src/AIHub/wwwroot/js/pages/utilities.js [7:275]
e.prototype.initCharts = function() {
window.Apex = {
chart: {
parentHeightOffset: 0,
toolbar: {
show: !1
}
},
grid: {
padding: {
left: 0,
right: 0
}
},
colors: ["#727cf5", "#0acf97", "#fa5c7c", "#ffbc00"]
};
for (var e = new Date, e = 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()), t = ["#727cf5", "#0acf97", "#fa5c7c", "#ffbc00"], a = s("#sessions-overview").data("colors"), e = {
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: t = a ? a.split(",") : t,
xaxis: {
type: "string",
categories: e,
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: .45,
opacityTo: .05,
stops: [45, 100]
}
}
}, o = (new ApexCharts(document.querySelector("#sessions-overview"),e).render(),
[]), r = 10; 1 <= r; r--)
o.push(r + " min ago");
t = ["#727cf5", "#0acf97", "#fa5c7c", "#ffbc00"],
(a = s("#views-min").data("colors")) && (t = a.split(",")),
e = {
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: ["#8a969c"]
}
},
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: t,
xaxis: {
categories: o,
labels: {
show: !1
},
axisTicks: {
show: !1
},
axisBorder: {
show: !1
}
},
yaxis: {
labels: {
show: !1
}
},
fill: {
type: "gradient",
gradient: {
inverseColors: !0,
shade: "light",
type: "horizontal",
shadeIntensity: .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"),e).render(),
t = ["#727cf5", "#0acf97", "#fa5c7c", "#ffbc00"],
e = {
chart: {
height: 345,
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: t = (a = s("#sessions-browser").data("colors")) ? a.split(",") : t,
yaxis: {
labels: {
formatter: function(e) {
return e + "%"
}
}
},
dataLabels: {
enabled: !0
},
markers: {
size: 4,
colors: ["#fff"],
strokeColor: t[0],
strokeWidth: 2
}
},
new ApexCharts(document.querySelector("#sessions-browser"),e).render(),
t = ["#727cf5", "#0acf97", "#fa5c7c", "#ffbc00"],
e = {
chart: {
height: 320,
type: "bar"
},
plotOptions: {
bar: {
horizontal: !0
}
},
colors: t = (a = s("#country-chart").data("colors")) ? a.split(",") : t,
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"),e).render(),
t = ["#727cf5", "#0acf97", "#fa5c7c", "#ffbc00"],
e = {
chart: {
height: 269,
type: "radialBar"
},
plotOptions: {
radialBar: {
dataLabels: {
name: {
fontSize: "22px"
},
value: {
fontSize: "16px"
},
total: {
show: !0,
label: "OS",
formatter: function(e) {
return 8541
}
}
}
}
},
colors: t = (a = s("#sessions-os").data("colors")) ? a.split(",") : t,
series: [44, 55, 67, 83],
labels: ["Windows", "Macintosh", "Linux", "Android"]
};
new ApexCharts(document.querySelector("#sessions-os"),e).render()
}