diff options
Diffstat (limited to 'plugins/CoreVisualizations/Visualizations/JqplotGraph.php')
-rw-r--r-- | plugins/CoreVisualizations/Visualizations/JqplotGraph.php | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/JqplotGraph.php b/plugins/CoreVisualizations/Visualizations/JqplotGraph.php index 42a2fcf1f6..e283920774 100644 --- a/plugins/CoreVisualizations/Visualizations/JqplotGraph.php +++ b/plugins/CoreVisualizations/Visualizations/JqplotGraph.php @@ -27,25 +27,25 @@ class JqplotGraph extends Graph /** * The name of the JavaScript class to use as this graph's external series toggle. The class * must be a subclass of JQPlotExternalSeriesToggle. - * + * * @see self::EXTERNAL_SERIES_TOGGLE_SHOW_ALL - * + * * Default value: false */ const EXTERNAL_SERIES_TOGGLE = 'external_series_toggle'; /** * Whether the graph should show all loaded series upon initial display. - * + * * @see self::EXTERNAL_SERIES_TOGGLE - * + * * Default value: false */ const EXTERNAL_SERIES_TOGGLE_SHOW_ALL = 'external_series_toggle_show_all'; /** * The number of x-axis ticks for each x-axis label. - * + * * Default: 2 */ const X_AXIS_STEP_SIZE = 'x_axis_step_size'; @@ -59,13 +59,13 @@ class JqplotGraph extends Graph /** * Constructor. - * + * * @param \Piwik\ViewDataTable $view */ public function __construct($view) { parent::__construct($view, $template = "@CoreVisualizations/_dataTableViz_jqplotGraph.twig"); - + // do not sort if sorted column was initially "label" or eg. it would make "Visits by Server time" not pretty if ($view->filter_sort_column != 'label') { $columns = $view->columns_to_display; @@ -82,27 +82,27 @@ class JqplotGraph extends Graph /** * Returns an array mapping property names with default values for this visualization. - * + * * @return array */ public static function getDefaultPropertyValues() { $result = parent::getDefaultPropertyValues(); return array_merge_recursive($result, array( - 'show_offset_information' => false, - 'show_pagination_control' => false, - 'show_exclude_low_population' => false, - 'show_search' => false, - 'show_export_as_image_icon' => true, - 'y_axis_unit' => '', - 'visualization_properties' => array( - 'jqplot_graph' => array( - 'external_series_toggle' => false, - 'external_series_toggle_show_all' => false, - 'x_axis_step_size' => 2 - ) - ) - )); + 'show_offset_information' => false, + 'show_pagination_control' => false, + 'show_exclude_low_population' => false, + 'show_search' => false, + 'show_export_as_image_icon' => true, + 'y_axis_unit' => '', + 'visualization_properties' => array( + 'jqplot_graph' => array( + 'external_series_toggle' => false, + 'external_series_toggle_show_all' => false, + 'x_axis_step_size' => 2 + ) + ) + )); } public function getGraphData($dataTable, $properties) |