analytics/assets/js/dashboard/stats/graph
Vini Brasil 061cb6ec83
Remove the ability to collapse the main graph + transition bug fix (#2627)
* Remove the ability to collpase the top graph

This commit removes the ability to collapse the top graph. The graph
collapsed whenever `metric` was falsy. I removed all related code to
that. Metric now defaults to visitors.

We want to add new items to top stats, and this commit will make it
easier to change it. Also, there's currently a bug where top stats is
randomly collapsing, which should be fixed by this commit.

* Refactor graph and top stats loading state

The graph loading state shows and hides the graph conditionally
depending on whether the data is loaded, loading or refreshing.

The current code is a bit difficult to read because its big
conditionals. This commit refactors the loading state making it easier
to read.

This commit also fixes a bug where the graph wasn't fading out when
changing metrics.
2023-01-31 16:11:51 -03:00
..
date-formatter.js Revert "parse date labels by local timezone instead of UTC (#2601)" (#2619) 2023-01-24 10:43:43 +01:00
graph-util.js Remove the ability to collapse the main graph + transition bug fix (#2627) 2023-01-31 16:11:51 -03:00
interval-picker.js Standardise dropdown icon margins (#2473) 2022-11-25 09:12:52 -03:00
top-stats.js Remove the ability to collapse the main graph + transition bug fix (#2627) 2023-01-31 16:11:51 -03:00
visitor-graph.js Remove the ability to collapse the main graph + transition bug fix (#2627) 2023-01-31 16:11:51 -03:00