393 lines
7.2 KiB
JavaScript
393 lines
7.2 KiB
JavaScript
$(function() {
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
// chart 1
|
|
|
|
var options = {
|
|
series: [{
|
|
name: "Desktops",
|
|
data: [20, 50, 35, 65, 49, 82, 69, 100, 60]
|
|
}],
|
|
chart: {
|
|
foreColor: "#9ba7b2",
|
|
height: 300,
|
|
type: 'area',
|
|
zoom: {
|
|
enabled: false
|
|
},
|
|
toolbar: {
|
|
show: !1,
|
|
},
|
|
},
|
|
dataLabels: {
|
|
enabled: false
|
|
},
|
|
stroke: {
|
|
width: 3,
|
|
curve: 'smooth'
|
|
},
|
|
fill: {
|
|
type: 'gradient',
|
|
gradient: {
|
|
shade: 'dark',
|
|
gradientToColors: ['#0d6efd'],
|
|
shadeIntensity: 1,
|
|
type: 'vertical',
|
|
opacityFrom: 0.8,
|
|
opacityTo: 0.1,
|
|
stops: [0, 100, 100, 100]
|
|
},
|
|
},
|
|
colors: ["#0d6efd"],
|
|
grid: {
|
|
show: true,
|
|
borderColor: 'rgba(0, 0, 0, 0.15)',
|
|
strokeDashArray: 4,
|
|
},
|
|
tooltip: {
|
|
theme: "dark",
|
|
},
|
|
xaxis: {
|
|
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'],
|
|
}
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart1"), options);
|
|
chart.render();
|
|
|
|
|
|
|
|
|
|
// chart 2
|
|
|
|
var options = {
|
|
series: [{
|
|
name: "Desktops",
|
|
data: [10, 41, 35, 51, 49, 82, 69, 91, 18]
|
|
}],
|
|
chart: {
|
|
foreColor: "#9ba7b2",
|
|
height: 300,
|
|
type: 'line',
|
|
zoom: {
|
|
enabled: false
|
|
},
|
|
toolbar: {
|
|
show: !1,
|
|
},
|
|
dropShadow: {
|
|
enabled: !0,
|
|
top: 3,
|
|
left: 14,
|
|
blur: 4,
|
|
opacity: .12,
|
|
color: "#fc185a"
|
|
},
|
|
},
|
|
dataLabels: {
|
|
enabled: false
|
|
},
|
|
stroke: {
|
|
curve: 'smooth'
|
|
},
|
|
fill: {
|
|
type: 'gradient',
|
|
gradient: {
|
|
shade: 'dark',
|
|
gradientToColors: ['#fc185a'],
|
|
shadeIntensity: 1,
|
|
type: 'vertical',
|
|
opacityFrom: 1,
|
|
opacityTo: 1,
|
|
// stops: [0, 100, 100, 100]
|
|
},
|
|
},
|
|
colors: ["#fc185a"],
|
|
grid: {
|
|
show: true,
|
|
borderColor: 'rgba(0, 0, 0, 0.15)',
|
|
strokeDashArray: 4,
|
|
},
|
|
tooltip: {
|
|
theme: "dark",
|
|
},
|
|
xaxis: {
|
|
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'],
|
|
}
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart2"), options);
|
|
chart.render();
|
|
|
|
|
|
|
|
// chart 3
|
|
|
|
var options = {
|
|
series: [{
|
|
name: "Total Sales",
|
|
data: [44, 55, 57, 56, 61, 58, 63, 60, 66]
|
|
}, {
|
|
name: "Customers",
|
|
data: [76, 85, 101, 98, 87, 105, 91, 114, 94]
|
|
}, {
|
|
name: "Store Visitores",
|
|
data: [35, 41, 36, 26, 45, 48, 52, 53, 41]
|
|
}],
|
|
chart: {
|
|
foreColor: "#9ba7b2",
|
|
height: 380,
|
|
type: 'bar',
|
|
zoom: {
|
|
enabled: false
|
|
},
|
|
toolbar: {
|
|
show: !1,
|
|
}
|
|
},
|
|
plotOptions: {
|
|
bar: {
|
|
horizontal: !1,
|
|
columnWidth: "35%",
|
|
endingShape: "rounded"
|
|
}
|
|
},
|
|
dataLabels: {
|
|
enabled: false
|
|
},
|
|
stroke: {
|
|
show: !0,
|
|
width: 4,
|
|
colors: ["transparent"]
|
|
},
|
|
colors: ["#02c27a", "#0d6efd", "#fc185a"],
|
|
grid: {
|
|
show: true,
|
|
borderColor: 'rgba(0, 0, 0, 0.15)',
|
|
strokeDashArray: 4,
|
|
},
|
|
tooltip: {
|
|
theme: "dark",
|
|
},
|
|
xaxis: {
|
|
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'],
|
|
}
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart3"), options);
|
|
chart.render();
|
|
|
|
|
|
// chart 4
|
|
|
|
var options = {
|
|
series: [44, 55, 13, 43],
|
|
chart: {
|
|
foreColor: "#9ba7b2",
|
|
height: 380,
|
|
type: 'pie',
|
|
},
|
|
labels: ['Team A', 'Team B', 'Team C', 'Team D'],
|
|
legend: {
|
|
position: "bottom",
|
|
show: !0
|
|
},
|
|
responsive: [{
|
|
breakpoint: 480,
|
|
options: {
|
|
chart: {
|
|
width: 200
|
|
},
|
|
legend: {
|
|
position: 'bottom'
|
|
}
|
|
}
|
|
}]
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart4"), options);
|
|
chart.render();
|
|
|
|
|
|
|
|
|
|
// chart 5
|
|
|
|
var options = {
|
|
series: [44, 55, 13, 43, 22],
|
|
chart: {
|
|
foreColor: "#9ba7b2",
|
|
height: 380,
|
|
type: 'donut',
|
|
},
|
|
labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E'],
|
|
legend: {
|
|
position: "bottom",
|
|
show: !0
|
|
},
|
|
responsive: [{
|
|
breakpoint: 480,
|
|
options: {
|
|
chart: {
|
|
width: 200
|
|
},
|
|
legend: {
|
|
position: 'bottom'
|
|
}
|
|
}
|
|
}]
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart5"), options);
|
|
chart.render();
|
|
|
|
|
|
|
|
|
|
|
|
// chart 6
|
|
|
|
var options = {
|
|
series: [75],
|
|
chart: {
|
|
height: 350,
|
|
type: 'radialBar',
|
|
toolbar: {
|
|
show: false
|
|
}
|
|
},
|
|
plotOptions: {
|
|
radialBar: {
|
|
//startAngle: -135,
|
|
//endAngle: 225,
|
|
hollow: {
|
|
margin: 0,
|
|
size: '80%',
|
|
background: 'transparent',
|
|
image: undefined,
|
|
imageOffsetX: 0,
|
|
imageOffsetY: 0,
|
|
position: 'front',
|
|
dropShadow: {
|
|
enabled: false,
|
|
top: 3,
|
|
left: 0,
|
|
blur: 4,
|
|
opacity: 0.24
|
|
}
|
|
},
|
|
track: {
|
|
background: 'rgba(0, 0, 0, 0.1)',
|
|
strokeWidth: '67%',
|
|
margin: 0, // margin is in pixels
|
|
dropShadow: {
|
|
enabled: false,
|
|
top: -3,
|
|
left: 0,
|
|
blur: 4,
|
|
opacity: 0.35
|
|
}
|
|
},
|
|
|
|
dataLabels: {
|
|
show: true,
|
|
name: {
|
|
offsetY: -10,
|
|
show: true,
|
|
color: '#888',
|
|
fontSize: '17px'
|
|
},
|
|
value: {
|
|
formatter: function(val) {
|
|
return parseInt(val);
|
|
},
|
|
color: '#111',
|
|
fontSize: '36px',
|
|
show: true,
|
|
}
|
|
}
|
|
}
|
|
},
|
|
fill: {
|
|
type: 'gradient',
|
|
gradient: {
|
|
shade: 'dark',
|
|
type: 'horizontal',
|
|
shadeIntensity: 0.5,
|
|
gradientToColors: ['#0d6efd'],
|
|
inverseColors: true,
|
|
opacityFrom: 1,
|
|
opacityTo: 1,
|
|
stops: [0, 100]
|
|
}
|
|
},
|
|
colors: ["#0d6efd"],
|
|
stroke: {
|
|
lineCap: 'round'
|
|
},
|
|
labels: ['Total Leads'],
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart6"), options);
|
|
chart.render();
|
|
|
|
|
|
|
|
// chart 7
|
|
|
|
var options = {
|
|
series: [67],
|
|
chart: {
|
|
height: 370,
|
|
type: 'radialBar',
|
|
offsetY: -10
|
|
},
|
|
plotOptions: {
|
|
radialBar: {
|
|
startAngle: -135,
|
|
endAngle: 135,
|
|
dataLabels: {
|
|
name: {
|
|
fontSize: '16px',
|
|
color: undefined,
|
|
offsetY: 120
|
|
},
|
|
value: {
|
|
offsetY: 76,
|
|
fontSize: '22px',
|
|
color: undefined,
|
|
formatter: function (val) {
|
|
return val + "%";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
fill: {
|
|
type: 'gradient',
|
|
gradient: {
|
|
shade: 'dark',
|
|
shadeIntensity: 0.15,
|
|
inverseColors: false,
|
|
opacityFrom: 1,
|
|
opacityTo: 1,
|
|
stops: [0, 50, 65, 91]
|
|
},
|
|
},
|
|
stroke: {
|
|
dashArray: 4
|
|
},
|
|
labels: ['Median Ratio'],
|
|
};
|
|
|
|
var chart = new ApexCharts(document.querySelector("#chart7"), options);
|
|
chart.render();
|
|
|
|
|
|
|
|
|
|
|
|
}); |