if (!empty($_GET['extn_report_id'])) { $report = new extn_report(); $report->pageno = !empty($_GET['pageno']) ? $_GET['pageno'] : 1; $report->per_page = !empty($_GET['per_page']) ? $_GET['per_page'] : 20; $report->extn_report_id = $_GET['extn_report_id']; if (!empty($_GET['filter_data'])) { foreach ($_GET['filter_data'] as $filter_data) { $report->user_filter[$filter_data['name']] = $filter_data['value']; } } if (!empty($_GET['sort_data'])) { foreach ($_GET['sort_data'] as $sort_data) { $report->user_sort[$sort_data['name']] = $sort_data['value']; } } $report->update_extn_report_query_by_userInputs(); $report->chart_type = !empty($_GET['chart_type']) ? $_GET['chart_type'] : $report->chart_type; if (!empty($report->extn_report_id) && !empty($report->chart_type)) { $svgimg = new getsvgimage(); $result = $result1 = $report->findBySql($report->query_v); $chart_width = !empty($_GET['chart_width']) ? $_GET['chart_width'] : $report->chart_width; $chart_height = !empty($_GET['chart_height']) ? $_GET['chart_height'] : $report->chart_height; $chart_type = !empty($_GET['chart_type']) ? $_GET['chart_type'] : $report->chart_type; $chart_legend = !empty($_GET['chart_legend']) ? $_GET['chart_legend'] : $report->chart_legend; $chart_label = !empty($_GET['chart_label']) ? $_GET['chart_label'] : $report->chart_label; $chart_value = !empty($_GET['chart_type']) ? $_GET['chart_value'] : $report->chart_value; //getSvgData($result, $legend_name, $chart_label, $chart_value, $legend, $labels, $data); $svgimg->setProperty('_chart_name', $report->report_name); $svgimg->setProperty('_chart_width', $chart_width); $svgimg->setProperty('_chart_height', $chart_height); $svgimg->setProperty('_chart_type', $chart_type);