-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Graph: better graphs when date range period parameter #2788
Comments
With the addition of a new graph type in ticket:2704#comment:11 and the refactoring of ImageGraph plugin, I would like to precisely define the following points:
|
pretty much all that is currently, except the 2 bugs in this ticket: when period=range However on trunk, the following debug URL will show all graphs as per imageGraphUrl: You can see that it loads the Visits summary graph rewritten as: &period=month&date=2009-05-01,2011-10-31 Which seems to look good? So is there really a bug with period=month?
The logic seems OK in this function, however this function is bloated and getting complicated. Re-factor sounds good
If it's easier to have the logic in the get method then sure, +1 to remove the parameter from imageGraphUrl and put it to default to false in the API function parameter list refactoring and simplicity are good ;) |
Concerning
I've currently set period='day' which seems to me a reasonable default. Shall I add a new entry in the configuration file ? |
|
(In [5582]) * fixes #2706, #2828, #2704, refs #1721, #2637, #2711, #2318, #71 : horizontal static graph implemented
|
Cf: http://demo.piwik.org/index.php?module=API&method=API.getReportMetadata&period=range&date=2011-01-01,2012-01-01&format=xml&token_auth=x&idSites=1
<imageGraphUrl>
index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=VisitsSummary&apiAction=get&token_auth=x&graphType=evolution&period=range&date=2011-01-01,2012-01-01
</imageGraphUrl>
at line: https://github.com/piwik/piwik/blob/master/plugins/ImageGraph/ImageGraph.php#L68
The text was updated successfully, but these errors were encountered: