Input

Viz

$('button#load-pokemon').click(function(){    
    $.get('/data/pokemon-small.json')
     .success(function(data){
         $('.myviz').html('number of records load:' + data.length)
     })
})

// TODO: add an event handler for the "Load FCQ" button to load the FCQ dataset
// into the memory, and display a message in the Viz box to indicate how many records
// are loaded. The data is located in '/data/fcq.clean.json'

$('button#load-fcq').click(function(){    
    $.get('/data/fcq.clean.json')
     .success(function(data){
         $('.myviz').html('number of records load:' + data.length)
     })
})