google.load('visualization', '1', { packages: ['linechart', "barchart", "columnchart"] });

var visualization_Lab_Employment;
var visualization_Lab_Unemployment;


function drawAllFigure() 
{
    drawVisualization_Lab_Employment();
    drawVisualization_Lab_Unemployment();
   
}

//Lab_Employment
function drawVisualization_Lab_Employment() 
{
    // To see the data that this visualization uses, browse to
    var query_Lab_Employment= new google.visualization.Query(
          'https://spreadsheets.google.com/pub?key=0Am-mi-Fc5ks5dG5Mc2kzQ2I2VnNETFJwQl85VlVzWVE&sheet=Lab_Employment');
    // Send the query with a callback function.
    query_Lab_Employment.send(handleQueryResponse_Lab_Employment);
}

function handleQueryResponse_Lab_Employment(response) 
{
    if (response.isError()) 
    {
        alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
        return;
    }
   
    var data_Lab_Employment = response.getDataTable();
    visualization_Lab_Employment = new google.visualization.ColumnChart(document.getElementById('Lab_Employment'));
    visualization_Lab_Employment.draw(data_Lab_Employment, { width: 706, height: 300, legend: "bottom", titleY: "Percentage (%)", is3D: true });
}


// Lab_Unemployment
function drawVisualization_Lab_Unemployment() 
{
    // To see the data that this visualization uses, browse to
    var query_Lab_Unemployment = new google.visualization.Query(
          'https://spreadsheets.google.com/pub?key=0Am-mi-Fc5ks5dG5Mc2kzQ2I2VnNETFJwQl85VlVzWVE&sheet=Lab_Unemployment');
    // Send the query with a callback function.
    query_Lab_Unemployment.send(handleQueryResponse_Lab_Unemployment);
}

function handleQueryResponse_Lab_Unemployment(response) {
    if (response.isError()) {
        alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
        return;
    }

    var data_Lab_Unemployment = response.getDataTable();
    visualization_Lab_Unemployment = new google.visualization.LineChart(document.getElementById('Lab_Unemployment'));
    visualization_Lab_Unemployment.draw(data_Lab_Unemployment, { width: 706, height: 300, legend: "bottom", titleY: "Percentage (%)", is3D: true });
}




google.setOnLoadCallback(drawAllFigure);


