We have Dynamic chart to report generation, using source data export needs to work with several types of exports like pdf,excel,csv..
below is my chart code:
$graphClassName::create(array(
"title"=>$report_name,
"dataSource"=>$result,
"columns"=>$columns1,
"colorScheme"=>$colors,
"options"=>array(
"isStacked"=>true,
)
));