wuttichaimoo's picture
Upload 7 files
304744e verified
Raw History Blame Contribute Delete
388 Bytes
$('#first_cat').on('change',function(){
$.ajax({
url: "/bar",
type: "GET",
contentType: 'application/json;charset=UTF-8',
data: {
'selected': document.getElementById('first_cat').value
},
dataType:"json",
success: function (data) {
Plotly.newPlot('bargraph', data );
}
});
})