ok
Direktori : /home2/selectio/public_html/y1jobportal.in/admin/assets/plugins/apexcharts-bundle/js/ |
Current File : /home2/selectio/public_html/y1jobportal.in/admin/assets/plugins/apexcharts-bundle/js/apex-custom.js |
$(function () { "use strict"; // chart 1 var options = { series: [{ name: 'Likes', data: [14, 3, 10, 9, 29, 19, 22, 9, 12, 7, 19, 5] }], chart: { foreColor: '#9ba7b2', height: 360, type: 'line', zoom: { enabled: false }, toolbar: { show: true }, dropShadow: { enabled: true, top: 3, left: 14, blur: 4, opacity: 0.10, } }, stroke: { width: 5, curve: 'smooth' }, 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'], }, title: { text: 'Line Chart', align: 'left', style: { fontSize: "16px", color: '#666' } }, fill: { type: 'gradient', gradient: { shade: 'light', gradientToColors: ['#f41127'], shadeIntensity: 1, type: 'horizontal', opacityFrom: 1, opacityTo: 1, stops: [0, 100, 100, 100] }, }, markers: { size: 4, colors: ["#f41127"], strokeColors: "#fff", strokeWidth: 2, hover: { size: 7, } }, colors: ["#f41127"], yaxis: { title: { text: 'Engagement', }, } }; var chart = new ApexCharts(document.querySelector("#chart1"), options); chart.render(); // chart 2 var optionsLine = { chart: { foreColor: '#9ba7b2', height: 360, type: 'line', zoom: { enabled: false }, dropShadow: { enabled: true, top: 3, left: 2, blur: 4, opacity: 0.1, } }, stroke: { curve: 'smooth', width: 5 }, colors: ["#0d6efd", '#212529'], series: [{ name: "Music", data: [1, 15, 56, 20, 33, 27] }, { name: "Photos", data: [30, 33, 21, 42, 19, 32] }], title: { text: 'Multiline Chart', align: 'left', offsetY: 25, offsetX: 20 }, subtitle: { text: 'Statistics', offsetY: 55, offsetX: 20 }, markers: { size: 4, strokeWidth: 0, hover: { size: 7 } }, grid: { show: true, padding: { bottom: 0 } }, labels: ['01/15/2002', '01/16/2002', '01/17/2002', '01/18/2002', '01/19/2002', '01/20/2002'], xaxis: { tooltip: { enabled: false } }, legend: { position: 'top', horizontalAlign: 'right', offsetY: -20 } } var chartLine = new ApexCharts(document.querySelector('#chart2'), optionsLine); chartLine.render(); // chart 3 var options = { series: [{ name: 'series1', data: [31, 40, 68, 31, 92, 55, 100] }, { name: 'series2', data: [11, 82, 45, 80, 34, 52, 41] }], chart: { foreColor: '#9ba7b2', height: 360, type: 'area', zoom: { enabled: false }, toolbar: { show: true }, }, colors: ["#0d6efd", '#f41127'], title: { text: 'Area Chart', align: 'left', style: { fontSize: "16px", color: '#666' } }, dataLabels: { enabled: false }, stroke: { curve: 'smooth' }, xaxis: { type: 'datetime', categories: ["2018-09-19T00:00:00.000Z", "2018-09-19T01:30:00.000Z", "2018-09-19T02:30:00.000Z", "2018-09-19T03:30:00.000Z", "2018-09-19T04:30:00.000Z", "2018-09-19T05:30:00.000Z", "2018-09-19T06:30:00.000Z"] }, tooltip: { x: { format: 'dd/MM/yy HH:mm' }, }, }; var chart = new ApexCharts(document.querySelector("#chart3"), options); chart.render(); // chart 4 var options = { 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] }], chart: { foreColor: '#9ba7b2', type: 'bar', height: 360 }, plotOptions: { bar: { horizontal: false, columnWidth: '55%', endingShape: 'rounded' }, }, dataLabels: { enabled: false }, stroke: { show: true, width: 2, colors: ['transparent'] }, title: { text: 'Column Chart', align: 'left', style: { fontSize: '14px' } }, colors: ["#212529", '#0d6efd', '#ffc107'], xaxis: { categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'], }, yaxis: { title: { text: '$ (thousands)' } }, fill: { opacity: 1 }, tooltip: { y: { formatter: function (val) { return "$ " + val + " thousands" } } } }; var chart = new ApexCharts(document.querySelector("#chart4"), options); chart.render(); // chart 5 var options = { series: [{ data: [400, 430, 448, 470, 540, 580, 690, 610, 800, 980] }], chart: { foreColor: '#9ba7b2', type: 'bar', height: 350 }, colors: ["#0d6efd"], plotOptions: { bar: { horizontal: true, columnWidth: '35%', endingShape: 'rounded' } }, dataLabels: { enabled: false }, xaxis: { categories: ['South Korea', 'Canada', 'United Kingdom', 'Netherlands', 'Italy', 'France', 'Japan', 'United States', 'China', 'Germany'], } }; var chart = new ApexCharts(document.querySelector("#chart5"), options); chart.render(); // chart 6 var options = { 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] }], chart: { foreColor: '#9ba7b2', height: 350, type: 'line', zoom: { enabled: false }, toolbar: { show: true }, }, stroke: { width: [0, 4] }, plotOptions: { bar: { //horizontal: true, columnWidth: '35%', endingShape: 'rounded' } }, colors: ["#0d6efd", "#212529"], title: { text: 'Traffic Sources' }, dataLabels: { enabled: true, enabledOnSeries: [1] }, 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' }, yaxis: [{ title: { text: 'Website Blog', }, }, { opposite: true, title: { text: 'Social Media' } }] }; var chart = new ApexCharts(document.querySelector("#chart6"), options); chart.render(); // chart 7 var options = { 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] }], chart: { foreColor: '#9ba7b2', height: 350, type: 'line', stacked: false, zoom: { enabled: false }, toolbar: { show: true }, }, colors: ["#0d6efd", "#17a00e", "#f41127"], stroke: { width: [0, 2, 5], curve: 'smooth' }, plotOptions: { bar: { columnWidth: '50%' } }, fill: { opacity: [0.85, 0.25, 1], gradient: { inverseColors: false, 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 }, xaxis: { type: 'datetime' }, yaxis: { title: { text: 'Points', }, min: 0 }, tooltip: { shared: true, intersect: false, y: { formatter: function (y) { if (typeof y !== "undefined") { return y.toFixed(0) + " points"; } return y; } } } }; var chart = new ApexCharts(document.querySelector("#chart7"), options); chart.render(); // chart 8 var options = { series: [44, 55, 13, 43, 22], chart: { foreColor: '#9ba7b2', height: 330, type: 'pie', }, colors: ["#0d6efd", "#6c757d", "#17a00e", "#f41127", "#ffc107"], labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E'], responsive: [{ breakpoint: 480, options: { chart: { height: 360 }, legend: { position: 'bottom' } } }] }; var chart = new ApexCharts(document.querySelector("#chart8"), options); chart.render(); // chart 9 var options = { series: [44, 55, 41, 17, 15], chart: { foreColor: '#9ba7b2', height: 380, type: 'donut', }, colors: ["#0d6efd", "#212529", "#17a00e", "#f41127", "#ffc107"], responsive: [{ breakpoint: 480, options: { chart: { height: 320 }, legend: { position: 'bottom' } } }] }; var chart = new ApexCharts(document.querySelector("#chart9"), options); chart.render(); // chart 10 var options = { 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], }], chart: { foreColor: '#9ba7b2', height: 350, type: 'radar', dropShadow: { enabled: true, blur: 1, left: 1, top: 1 } }, colors: ["#0d6efd", "#212529", "#17a00e"], title: { text: 'Radar Chart - Multi Series' }, stroke: { width: 2 }, fill: { opacity: 0.1 }, markers: { size: 0 }, xaxis: { categories: ['2011', '2012', '2013', '2014', '2015', '2016'] } }; var chart = new ApexCharts(document.querySelector("#chart10"), options); chart.render(); // chart 11 var options = { series: [{ name: 'Series 1', data: [20, 100, 40, 30, 50, 80, 33], }], chart: { foreColor: '#9ba7b2', height: 350, type: 'radar', }, dataLabels: { enabled: true }, plotOptions: { radar: { size: 140, polygons: { strokeColors: '#e9e9e9', fill: { colors: ['#f8f8f8', '#fff'] } } } }, title: { text: 'Radar with Polygon Fill' }, colors: ["#0d6efd"], markers: { size: 4, colors: ['#fff'], strokeColor: '#FF4560', strokeWidth: 2, }, tooltip: { y: { formatter: function (val) { return val } } }, xaxis: { categories: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] }, yaxis: { tickAmount: 7, labels: { formatter: function (val, i) { if (i % 2 === 0) { return val } else { return '' } } } } }; var chart = new ApexCharts(document.querySelector("#chart11"), options); chart.render(); // chart 12 var options = { series: [70], chart: { foreColor: '#9ba7b2', height: 350, type: 'radialBar', }, plotOptions: { radialBar: { hollow: { size: '70%', } }, }, labels: ['Cricket'], }; var chart = new ApexCharts(document.querySelector("#chart12"), options); chart.render(); // chart 13 var options = { series: [44, 55, 67, 83], chart: { foreColor: '#9ba7b2', height: 350, type: 'radialBar', }, plotOptions: { radialBar: { dataLabels: { name: { fontSize: '22px', }, value: { fontSize: '16px', }, total: { show: true, label: 'Total', formatter: function (w) { // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function return 249 } } } } }, colors: ["#0d6efd", "#17a00e", "#f41127", "#ffc107"], labels: ['Apples', 'Oranges', 'Bananas', 'Berries'], }; var chart = new ApexCharts(document.querySelector("#chart13"), options); chart.render(); });