Skip to content


Subversion checkout URL

You can clone with
Download ZIP


[#3316] Add request parameter option to disable seriesPicker on jqplot #6

wants to merge 1 commit into from

2 participants


Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Tests pass: -
Fixes the following tickets: #3316
Todo: -
License of the code: MIT

Use case: Using Widgetize-Plugin to display certain widgets on a website:

<div id="widgetIframe">
<iframe width="100%" 

This widget should be a limited version of the real piwik widgets, so you want to disable other series for the graph. Currently there is no option to disable the series picker in jqPlot, it is always activated as long as there are other series types for the requested graph.

I am aware of the fact that the URL can be manipulated to show other graph types. This is not important as the end user is assumed to not be able to do it. On the other hand, this could be prevented by apache rules for example.

This patch allows to set request parameter "seriesPicker" to 0 to disable the seriesPicker.

@robocoder robocoder closed this
@mark-de mark-de referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
This was referenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 23, 2012
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 1 deletion.
  1. +8 −1 core/ViewDataTable/GenerateGraphData.php
9 core/ViewDataTable/GenerateGraphData.php
@@ -91,7 +91,14 @@ public function setSelectableColumns($columnsNames)
// the array contains values if enableShowGoals() has been used
// add $columnsNames to the beginning of the array
- $this->selectableColumns = array_merge($columnsNames, $this->selectableColumns);
+ if (Piwik_Common::getRequestVar('seriesPicker', true))
+ {
+ $this->selectableColumns = array_merge($columnsNames, $this->selectableColumns);
+ }
+ else
+ {
+ $this->selectableColumns = array();
+ }
Something went wrong with that request. Please try again.