/** * Prepare chart data * * @return void */ protected function _prepareData() { $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->setDataRows('revenue'); $this->_axisMaps = ['x' => 'range', 'y' => 'revenue']; parent::_prepareData(); }
public function testGetChartUrl() { $this->assertStringStartsWith('http://chart.apis.google.com/chart', $this->_block->getChartUrl()); }