![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 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, Directory : /var/www/html/libs/absol-vchart/demo/ |
Upload File : |
var minA = Array(12).fill(0).map(function () { return Math.floor(Math.random() * 200) + 100; }); var midA = minA.map(function (v) { return 300 + Math.floor(Math.random() * 200); }); var maxA = Array(12).fill(700); var results = Array(12).fill(0).map(function () { return 23 + Math.floor(600 * Math.random()); }); var results1 = Array(12).fill(0).map(function () { return 23 + Math.floor(600 * Math.random()); }); var texts = Array(12).fill(0).map(function (u, i) { return 'Tối đa: ' + maxA[i] + '\nTối thiểu: ' + minA[i] + '\nTrung bình: ' + midA[i] + '\nĐạt được: ' + results[i]; }); vchart._({ tag: 'dualchart', props: { title: 'Bão lãnh thanh toán', valueName: '$', keyName: 'Tháng', zeroOY: true, keys: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6', 'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'], lines: [ { name: 'Đường 1', values: results, texts: texts, color: 'red', plotColors: ['blue'] }, { name: 'Đường 2', values: results1, texts: texts, color: 'pink', plotColors: ['cyan'] } ], areas: [ { name: 'Tối đa(enim ad minima veniam, quis nostrum exercitationem)', values: maxA, color: 'rgb(255, 204, 127)' }, { name: 'Trung bình(aut odit aut fugit, sed quia consequuntur)', values: midA, color: 'rgb(204, 204, 127)' }, { name: 'Thấp(magnam aliquam quaerat voluptatem)', values: minA, color: 'rgb(231, 228, 227)' } ] } }).addTo(document.body) vchart._({ tag: 'dualchart', props: { title: 'Bão lãnh thanh toán(đứt đoạn)', valueName: '$', keyName: 'Tháng', zeroOY: true, keys: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6', 'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'], lines: [ { name: 'Đường 1', values: [3000, '-', 3010, 4200, '-', 2000, 2500, 2600, '-', 3000, '-', 3700], texts: texts, color: 'red', plotColors: ['blue', 'red', 'cyan', 'green', 'blue', 'red', 'cyan', 'green', 'blue', 'red', 'cyan', 'green'] }, { name: 'Đường 2', values: results1, texts: texts, color: 'pink', plotColors: ['cyan'] } ], areas: [ { name: 'Tối đa', values: [5000, '-', 4010, 5200, '', 3000, 3500, 3000, '', 4500, '-', 1500], color: 'rgb(255, 204, 127)' }, { name: 'Trung bình', values: [4000, '-', 3300, 3500, '', 2400, 2500, 2600, '', 3000, '-', 3100], color: 'rgb(204, 204, 127)' }, { name: 'Thấp', values: [1200, '-', 2200, 1200, '', 1100, 1300, 1200, '', 1500, '-', 1170], color: 'rgb(231, 228, 227)' } ] } }).addTo(document.body)