render(WPSG_PATH_VIEW.'/mods/mod_statistics/simplefilter.phtml'); ?>
view['chart']['data']['records'])) { ?>
render(WPSG_PATH_VIEW.'/mods/mod_statistics/charttopsellertosales/data.phtml'); ?>
view['chart']['data']['records'] as $data)
{
$barChartJS['payment'] .= "'".wpsg_hspc($data['name'])."', ";
$barChartJS['amount'] .= "['".wpsg_hspc($data['name'])."','".wpsg_hspc($data['amount'])."'], ";
$barChartJS['total'] .= wpsg_hspc($data['total']).", ";
$pieChartJS['amount'] .= "['".wpsg_hspc($data['name'])."', ".wpsg_hspc($data['percent-amount'])."], ";
$pieChartJS['sales'] .= "['".wpsg_hspc($data['name'])."', ".wpsg_hspc($data['percent-sales'])."], ";
}
$barChartJS['amount'] = substr($barChartJS['amount'], 0, -2);
$barChartJS['payment'] = substr($barChartJS['payment'], 0, -2);
$barChartJS['total'] = substr($barChartJS['total'], 0, -2);
$pieChartJS['amount'] = substr($pieChartJS['amount'], 0, -2);
$pieChartJS['sales'] = substr($pieChartJS['sales'], 0, -2);
?>