Hello , i have two blocks in a d3 funnel and i need to bind click event so that i know which block is clicked.How do i do that? I tried this but it didnt work:
\koolreport\d3\FunnelChart::create([
"dataSource"=>array(
array("category"=>"Visit","amount"=>50000),
array("category"=>"Download","amount"=>0)
),
"width"=>420,
"columns"=>[
"category",
"amount"
],
"chart"=>array(
'bottomWidth'=>0.4,
),
"events"=>
array(
"click"=>[
"block"=>
[
"callback"=> function(data){
console.log("data");
}
]
]
)