events - AMChart handleClick to retrieve data from database based on item clicked -
i'm using amchart stacked chart report test execution status db. php file query feed dataloader , stacked columns displays pass, fail , norun count data each category. i'm trying use handleclick function make column clickable , once clicked, query fired retrieve data specific column's pass, fail or norun count data , displays data on same page. i'm not sure how implement this. appreciated!
below have far, clicking column triggers alert name of category , count, goal able trigger php file parameters passed in , display data db,
// add click listener chart.addlistener("clickgraphitem", handleclick); function handleclick(event) { alert(event.item.category + ": " + event.item.values.value); }
the issue has been resolved using json (converted db data in php) , ajax display. within handleclick call js function , pass in graph variables query inside php needs.
Comments
Post a Comment