Skip to content
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

Add a Select list in the graph footer, to select periods to plot: 30, 100, 365 #2159

Closed
mattab opened this issue Mar 7, 2011 · 11 comments
Closed
Assignees
Labels
Critical Indicates the severity of an issue is very critical and the issue has a very high priority. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Mar 7, 2011

It would be nice to view in the graph, the number of visits for the last 300 days for example. Currently the graphs only show last 30 days / weeks / months / years.

All pages supporting sparklines + graph (overview type pages) would benefit from this new feature, as well as widgets in the dashboard.

This could be implemented as a Select list / legend next to the icons.

This is similar to the ticket "add a select list to choose which column to plot" in #1820

refs #3110

@mattab
Copy link
Member Author

mattab commented Jun 4, 2012

Nice we could now reuse the new UI element (to select number of rows) that would, when an evolution graph is displayed, change the number of days/weeks/months plotted on the graph from the default 30. That would be beautiful!!

@mattab
Copy link
Member Author

mattab commented Aug 20, 2012

This will be awesome in the widgets on dashboard, in all evolution graphs in reports (including Row Evolution!)

@diosmosis
Copy link
Member

Attachment: Patch for this issue.
2159.diff.tar.gz

@diosmosis
Copy link
Member

I've uploaded a patch for this issue. Let me know what you think of it.

Some notes:

  • This reuses the filter_limit dropdown.
  • There are several other bug fixes in here.

@diosmosis
Copy link
Member

(In [7068]) Fixes #2159, allow limit dropdown to be used with evolution graphs (including row evolution).

Notes:

  • Bug fix for RowEvolution.php: length of evolution was one date too long.
  • Added new query parameters: evolution_{$period}_last_n
  • Bug fix for ViewDataTable::setColumnsToDisplay, column array should be filtered before being set.
  • Removed default value for idGoal parameter for AddColumnsProcessedMetricsGoal filter.
  • Bug fix for Period/Range.php: lastN should be decremented AFTER it is checked for the max value.
  • Bug fix for Period/Range.php (in fillArraySubPeriods): fix issue when determining subperiods for range of weeks.

@mattab
Copy link
Member Author

mattab commented Sep 27, 2012

(In [7070]) Refs #2159 fixing notice

@mattab
Copy link
Member Author

mattab commented Sep 28, 2012

Very nice new little feature & commit, kuddos Benaka!

PS: I am still curious as to why the smarty notices don't display in your server, hopefully we find the solution in the future as to prevent these NOTICEs!

@mattab
Copy link
Member Author

mattab commented Sep 28, 2012

Questions:

  • when is the following code path triggered?
if (Piwik_Period_Range::parseDateRange($this->originalDate)) // if a multiple period 

My understanding was that in the UI we would not work on multiple periods ?

@mattab
Copy link
Member Author

mattab commented Sep 28, 2012

(In [7075]) Refs #2159

  • Fixing RowEvolution popover click on selector: Warning:</strong> <i>array_keys() expects parameter 1 to be array, null given</i>
  • Changing default monthly to show 2 years history
  • Simplifying code of getXAxisStepSize() since it seemed too complicated ;)
  • removing incorrect title which was always "Showing evolution over last 30 $period"

@diosmosis
Copy link
Member

Replying to matt:

Questions:

  • when is the following code path triggered?
if (Piwik_Period_Range::parseDateRange($this->originalDate)) // if a multiple period 

My understanding was that in the UI we would not work on multiple periods ?

It's a sanity check to cover the case if multiple dates are passed instead of a single date + evolution_{$period}_last_n.

@mattab
Copy link
Member Author

mattab commented Nov 9, 2012

(In [7425]) fixes regression: exporting below the graph should export all periods displayed in the graph (using the rewritten &date=)
refs #2159

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical Indicates the severity of an issue is very critical and the issue has a very high priority. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants