Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.1
-
Fix Version/s: 3.2
-
Component/s: CiviContribute
-
Labels:None
Description
Update: Replace the Google Charts implementation with a built-in implementation using PHP Chart. Then implement the "integration" into the dashboard page as described below.
-----------------------
Instead of having a separate page / template for ContributionCharts - we should include it in the dashboard template - and also make the Summary "grid" in Dashboard.tpl also an include file. Then we use a GET param to switch between showing the "table view" and showing the "charts". The Recent Contributions selector is consistently included
as the 2nd part of the page.
We could potentially use Kurund's ajax/dojo trick to just replace a <div> containing the "table view" with a div containing the "charts" - so we don't have to reload the
entire page / retrieve the contribution list.
We should make the Chart view the default view for the "Summary section" of the dashboard. Kurund and I also talked about adding logic to detect whether Google's chart
service is accessible before rendering the page. That way we can just put up the table view and suppress the chart option for situations where the server doesn't have public internet access / can't use the google chart service.