Server IP : 128.199.20.84 / Your IP : 172.69.6.63 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0775) : /var/www/html/file_upload/blogs/../../admin_panel/js/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/* Template Name: Material Pro Admin Author: Themedesigner Email: [email protected] File: js */ $(function () { "use strict"; // ============================================================== // Sales overview // ============================================================== var chart2 = new Chartist.Bar('.amp-pxl', { labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], series: [ [9, 5, 3, 7, 5, 10, 3], [6, 3, 9, 5, 4, 6, 4] ] }, { axisX: { // On the x-axis start means top and end means bottom position: 'end', showGrid: false }, axisY: { // On the y-axis start means left and end means right position: 'start' }, high:'12', low: '0', plugins: [ Chartist.plugins.tooltip() ] }); // ============================================================== // Our visitor // ============================================================== var chart = c3.generate({ bindto: '#visitor', data: { columns: [ ['Other', 30], ['Desktop', 10], ['Tablet', 40], ['Mobile', 50], ], type : 'donut', onclick: function (d, i) { console.log("onclick", d, i); }, onmouseover: function (d, i) { console.log("onmouseover", d, i); }, onmouseout: function (d, i) { console.log("onmouseout", d, i); } }, donut: { label: { show: false }, title: "Yearly Sales", width:20, }, legend: { hide: true //or hide: 'data1' //or hide: ['data1', 'data2'] }, color: { pattern: ['#eceff1', '#745af2', '#26c6da', '#1e88e5'] } }); // ============================================================== // sparkline charts // ============================================================== var sparklineLogin = function() { $("#spark1").sparkline([2,4,4,6,8,5,6,4,8,6,6,2 ], { type: 'line', width: '100%', height: '50', lineColor: '#26c6da', fillColor: '#26c6da', maxSpotColor: '#26c6da', highlightLineColor: 'rgba(0, 0, 0, 0.2)', highlightSpotColor: '#26c6da' }); $("#spark2").sparkline([0,2,8,6,8,5,6,4,8,6,6,2 ], { type: 'line', width: '100%', height: '50', lineColor: '#009efb', fillColor: '#009efb', minSpotColor:'#009efb', maxSpotColor: '#009efb', highlightLineColor: 'rgba(0, 0, 0, 0.2)', highlightSpotColor: '#009efb' }); $("#spark3").sparkline([2,4,4,6,8,5,6,4,8,6,6,2], { type: 'line', width: '100%', height: '50', lineColor: '#7460ee', fillColor: '#7460ee', maxSpotColor: '#7460ee', highlightLineColor: 'rgba(0, 0, 0, 0.2)', highlightSpotColor: '#7460ee' }); $('.spark-count').sparkline([4, 5, 0, 10, 9, 12, 4, 9, 4, 5, 3, 10, 9, 12, 10, 9, 12, 4, 9], { type: 'bar' , width: '100%' , height: '70' , barWidth: '2' , resize: true , barSpacing: '6' , barColor: 'rgba(255, 255, 255, 0.3)' }); } var sparkResize; $(window).resize(function(e) { clearTimeout(sparkResize); sparkResize = setTimeout(sparklineLogin, 500); }); sparklineLogin(); });