diff options
Diffstat (limited to 'views/mods/mod_statistics/charttopsellertosales')
| -rw-r--r-- | views/mods/mod_statistics/charttopsellertosales/all.phtml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/views/mods/mod_statistics/charttopsellertosales/all.phtml b/views/mods/mod_statistics/charttopsellertosales/all.phtml index dfff484..6544b94 100644 --- a/views/mods/mod_statistics/charttopsellertosales/all.phtml +++ b/views/mods/mod_statistics/charttopsellertosales/all.phtml @@ -20,7 +20,15 @@ <div class="wpsg_clearer"></div>
<?php
-
+ $barChartJS = Array();
+ $pieChartJS = Array();
+ $barChartJS['amount'] = '';
+ $barChartJS['payment'] = '';
+ $barChartJS['total'] = '';
+
+ $pieChartJS['amount'] = '';
+ $pieChartJS['sales'] = '';
+
foreach ($this->view['chart']['data']['records'] as $data)
{
$barChartJS['payment'] .= "'".wpsg_hspc($data['name'])."', ";
@@ -83,7 +91,7 @@ fontWeight: 'normal',
textColor: '#666666'
},
- label:'<?php echo wpsg_hspc($this->view['chart']['info']['xaxis']['label']); ?>',
+ label:'<?php echo wpsg_hspc(wpsg_getStr($this->view['chart']['info']['xaxis']['label'])); ?>',
labelOptions: {
fontFamily: 'Arial',
fontSize: '14pt',
|
