HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /var/www/vhost/disk-apps/sigedo-demo.allup.com.co/public/assets/js/toastuicharts.script.js
$(document).ready(function() {
    // var chart = tui.chart;
    //    basic bar chart 
    var container = document.getElementById('basicBarChart');
    var data = {
        categories: ['June', 'July', 'Aug', 'Sep', 'Oct', 'Nov'],
        series: [{
                name: 'Budget',
                data: [5000, 3000, 5000, 7000, 6000, 4000]
            },
            {
                name: 'Income',
                data: [8000, 1000, 7000, 2000, 5000, 3000]
            }
        ]
    };
    var options = {
        chart: {
            // width: 500,
            // height: 400,
            title: 'Monthly Revenue',
            format: '1,000'
        },
        yAxis: {
            title: 'Month'
        },
        xAxis: {
            title: 'Amount',
            min: 0,
            max: 9000,
            suffix: '$'
        },
        series: {
            showLabel: true
        }
    };
    var theme = {
        series: {
            colors: [
                '#83b14e', '#458a3f', '#295ba0', '#2a4175', '#289399',
                '#289399', '#617178', '#8a9a9a', '#516f7d', '#dddddd'
            ]
        }
    };

    // For apply theme

    tui.chart.registerTheme('myTheme', theme);
    options.theme = 'myTheme';

    tui.chart.barChart(container, data, options);

    // bar chart negetive data

    var container = document.getElementById('negetiveBarChart');
    var data = {
        categories: ['May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
        series: [{
                name: 'Budget',
                data: [4000, 5000, 3000, 5000, 7000, 6000, 4000, 1000]
            },
            {
                name: 'Income',
                data: [7000, 8000, 1000, 7000, 2000, 7000, 3000, 5000]
            },
            {
                name: 'Expenses',
                data: [-5000, -4000, -4000, -6000, -3000, -4000, -5000, -7000]
            }
        ]
    };
    var options = {
        chart: {
            // width: 500,
            // height: 400,
            title: 'Monthly Revenue',
            format: '1,000'
        },
        yAxis: {
            title: 'Month'
        },
        xAxis: {
            title: 'Amount',
            min: -10000,
            max: 10000
        },
        series: {
            showLabel: false
        }
    };
    var theme = {
        series: {
            colors: [
                '#83b14e', '#458a3f', '#295ba0', '#2a4175', '#289399',
                '#289399', '#617178', '#8a9a9a', '#516f7d', '#dddddd'
            ]
        }
    };

    // For apply theme

    tui.chart.registerTheme('myTheme', theme);
    options.theme = 'myTheme';

    tui.chart.barChart(container, data, options);























});