File size: 388 Bytes
304744e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | $('#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 );
}
});
}) |