You have to pass data in argument.
frappe.call({
method: 'erpnext.erpnext.selling.doctype.graphtesting.graphtesting.state_wise',
args: {
bname:frm.doc.state
},
callback: function(response) {
console.log(response.message);
}
});