Monday, 23 January 2017

Data visualization - Specifying the range of data and selecting columns



Data from a Spreadsheet

The Chart below displays the the poverty among the top 10 states of INDIA


=========================================================================================================
  " the code for the above Google chart is displayed Below "


<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", '1', {packages:['corechart']});
google.setOnLoadCallback(drawChart);
function drawChart() {
  var query = new google.visualization.Query(
      'https://docs.google.com/spreadsheets/d/1BiBAL-DDDj2kpk8Gqohi_aV42FfcsBokUk7G2JysbRs/edit?usp=sharing');

  query.send(handleQueryResponse);
}

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

  var data = response.getDataTable();
  var options = {'title'

No comments:

Post a Comment