function ready(error, uas_data, gender_data, salary_data) {
        // log any error to console
        if(error) {
            return console.warn(error);
        }
        // changes all the keys from strings to numbers
        uas_data.forEach(function(d) {
            d.key = +d.key;
        });
        gender_data.forEach(function(d) {
            d.key = +d.key;
        });
        salary_data.forEach(function(d) {
            d.key = +d.key;
        });
        
        viz.uasData = uas_data;
        viz.genderData = gender_data;
        viz.salaryData = salary_data;
        // Initializes the crossfilter function
        viz.makeFilterAndDimensions();
        // Initializes menu
        viz.initMenu();
    	// Initialize chart 
    	viz.onDataChange();
    }
// CALLED ONCE THE DATA IS LOADED
CALLED ONCE THE DATA IS LOADED
CALLED ONCE THE DATA IS LOADED
function ready(error, uas_data, gender_data, salary_data) {
        if(error) {
            return console.warn(error);
        }
        uas_data.forEach(function(d) {
            d.key = +d.key;
        });
        gender_data.forEach(function(d) {
            d.key = +d.key;
        });
        salary_data.forEach(function(d) {
            d.key = +d.key;
        });
        viz.uasData = uas_data;
        viz.genderData = gender_data;
        viz.salaryData = salary_data;
        viz.makeFilterAndDimensions();
        viz.initMenu();
    	viz.onDataChange();
    }
function ready ( error , uas_data , gender_data , salary_data ) { if ( error ) { return console . warn ( error ) ; } uas_data . forEach ( function ( d ) { d . key = + d . key ; } ) ; gender_data . forEach ( function ( d ) { d . key = + d . key ; } ) ; salary_data . forEach ( function ( d ) { d . key = + d . key ; } ) ; viz . uasData = uas_data ; viz . genderData = gender_data ; viz . salaryData = salary_data ; viz . makeFilterAndDimensions ( ) ; viz . initMenu ( ) ; viz . onDataChange ( ) ; }
CALLED ONCE THE DATA IS LOADED
CALLED ONCE THE DATA IS LOADED
// log any error to console // changes all the keys from strings to numbers // Initializes the crossfilter function // Initializes menu // Initialize chart 