coronaryHeartDiseaseClient/js/visulization.js
// Ajax to get Graph Data from Server

Ajax to get Graph Data from Server
Ajax to get Graph Data from Server
function fetchDataset(){
    var appdir='/fetchDataset';
    $.ajax({
        type: "POST",
        url:server+appdir,
        dataType: 'json'
    }).done(function(data) { 
        createBarGraph(data['info'], "gender", "Gender");
        checkWhichOptionIsClickedOn(data); 
        recomputeBins(data);
    });
}
function fetchDataset ( ) { var appdir = '/fetchDataset' ; $ . ajax ( { type : "POST" , url : server + appdir , dataType : 'json' } ) . done ( function ( data ) { createBarGraph ( data [ 'info' ] , "gender" , "Gender" ) ; checkWhichOptionIsClickedOn ( data ) ; recomputeBins ( data ) ; } ) ; }
Ajax to get Graph Data from Server
Ajax to get Graph Data from Server
// console.log("Dataset Received")
 // console.log(data);
 // createHistogram(data['info'], "diaBP", "Diastolic Blood Pressure (mmHg)", 15, false)
