📄 chartevolution.php
字号:
<?phprequire_once "ViewDataTable/GenerateGraphHTML.php";/** * Generates HTML embed for the Evolution graph * * @package Piwik_ViewDataTable * */class Piwik_ViewDataTable_GenerateGraphHTML_ChartEvolution extends Piwik_ViewDataTable_GenerateGraphHTML{ function __construct() { $this->width='100%'; $this->height=150; // used for the CSS class to apply to the DIV containing the graph $this->graphType = 'evolution'; } protected function getViewDataTableId() { return 'graphEvolution'; } protected function getViewDataTableIdToLoad() { return 'generateDataChartEvolution'; } function init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable ) { parent::init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable ); $this->setParametersToModify(array('date' => Piwik_Common::getRequestVar('date', 'last30', 'string'))); $this->doNotShowFooter(); } /** * Sets the columns that will be displayed on output evolution chart * By default all columns are displayed ($columnsNames = array() will display all columns) * * @param array $columnsNames Array of column names eg. array('nb_visits','nb_hits') */ public function setColumnsToDisplay( $columnsNames) { $this->setParametersToModify( array('columns' => $columnsNames) ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -