Option to disable seriesPicker for jqPlot
|Reported by:||chmielot||Owned by:||capedfuzz|
|Priority:||normal||Milestone:||1.10 - Piwik 1.10|
Using Widgetize-Plugin to display certain widgets on a website:
<div id="widgetIframe"> <iframe width="100%" height="350" src="http://host/piwik/index.php?module=Widgetize&action=iframe&columns=nb_visits,nb_pageviews&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=1&period=month&date=today&disableLink=1&widget=1&seriesPicker=0" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" id="visitssum"></iframe> </div>
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.
Change History (8)
Changed 21 months ago by chmielot
Changed 20 months ago by chmielot
comment:4 Changed 18 months ago by matt (mattab)
- Owner set to capedfuzz