/** * Prepares the data for rendering the * orders chart. * * @return void */ protected function _prepareData() { // set the helper for loading the data $this->setDataHelperName('adminhtml/dashboard_order'); // set the params $this->getDataHelper()->setParam('store', $this->getRequest()->getParam('store')); $this->getDataHelper()->setParam('website', $this->getRequest()->getParam('website')); $this->getDataHelper()->setParam('group', $this->getRequest()->getParam('group')); $this->getDataHelper()->setParam('period', $this->getRequest()->getParam('period') ? $this->getRequest()->getParam('period') : '24h'); // initialize the chart $this->setDataRows('quantity'); $this->_axisMaps = array('x' => 'range', 'y' => 'quantity'); // call the parent method parent::_prepareData(); }
/** * Prepares the data for rendering the * tracking chart. * * @return void */ protected function _prepareData() { // set the helper for loading the data $this->setDataHelperName('piwik'); // set the params $this->getDataHelper()->setParam('store', $this->getRequest()->getParam('store')); $this->getDataHelper()->setParam('website', $this->getRequest()->getParam('website')); $this->getDataHelper()->setParam('group', $this->getRequest()->getParam('group')); $this->getDataHelper()->setParam('period', $this->getRequest()->getParam('period') ? $this->getRequest()->getParam('period') : '7d'); // initialize the chart $this->setDataRows('users'); $this->_axisMaps = array('x' => 'range', 'y' => 'users'); // call the parent method parent::_prepareData(); }