Hi, I have a chart js column chart on click of which i need to change the data-source based on either a network request or just variable change. How do i achieve that? This is how i know which element is clicked for now.

      "stacked"=>true,
                                    "responsive"=>true,
                                    "maintainAspectRatio"=>false,
                                    "options"=>array(
                                        "tooltips"=>array(
                                            "mode"=>"index",
                                            "intersect"=>true,
                                           
                                        ),
                                        "responsive"=>true,
                                        "maintainAspectRatio"=>false,
                                        
                                        "scales"=>[
                                            "yAxes" => array(
                                                array(
                                                    "stacked" => true,
                                                ),
                                            ),
                                            "xAxes" => array(
                                                array(
                                                    "stacked" => true,
                                                ),
                                            ),
                                        ]
                                
                                    ),
                                    "clientEvents"=>array(
                                        "itemSelect"=>"function(params){
                                           console.log(params.selectedLabel);
                                        }",
                                    )