Changes between Version 1 and Version 2 of BluePrint/Chart


Ignore:
Timestamp:
10/11/12 05:12:41 (12 years ago)
Author:
Michael Howden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrint/Chart

    v1 v2  
    1717* A Regional Project Manager can use a bar chart to compare the number of projects in different countries and which hazards those projects are addressing to identify needs for new programs (eg. 2 Variable Bar Chart showing the count of projects by Country and Hazard)
    1818* A Project Manager can use a chart to see what types (themes) for projects are being implemented in a specific country for a specific hazard to see if there are best practices to follow or potential for innovation. (eg. 2 Variable Bar Chart showing the count of projects by Hazard Theme filtered by a country )
    19 * A Project Assistant can use a chart to compare the number of beneficiaries in different communities to ensure that all communities are benefiting equally (eg. 2 Variable Bar Chart showing the sum of Beneficiaries by L4 and Beneficiary Type)
     19* A Project Assistant can use a chart to compare the number of beneficiaries in different communities to ensure that all communities are benefiting equally (eg. 2 Variable Bar Chart showing the sum of Beneficiaries by L4 and Beneficiary Type). They may want to save this chart to put into a presentation for Donors.
    2020* A Project Manager can use a chart to compare the amount of funding different donors are giving to find out who the major donors are. (eg. 1 Variable Bar Chart showing the sum of Funds Contributed by Organisation filtered for a specific project). They may then want to view this data in tabular form.
    2121* A Project Assistant can use a chart to  view the cumulative number of beneficiaries over time for a specific project/location (eg. Line Chart showing the cumulative sum of Beneficiaries over time filtered for a specific project. Multiple Lines could be shown for different Beneficiary Types)
     
    2828
    2929== Requirements ==
    30 Many of these requirements are documented based on the assumption that charts will be implemented with a similar method to the current report method. Some of these requirements could also improve the current implementation of Reports.
     30=== Bar Chart ===
     31These requirements are based on the implementation of chart in the DRR Project Portal: http://drrprojects.net/drrp/drrpp/project/graphs. Code for this can be found here: http://bazaar.launchpad.net/~michael-howden/sahana-eden/adpc/view/head:/models/drrpp.py#L1984
     32
     33Many of these requirements are documented based on the assumption that charts will be implemented with a similar method to the current [wiki:S3Report] method. Most of these requirements could also improve the current implementation of Reports.
     34
     35==== Basic ====
    3136* Be able to filter the data which is used to generate the chart using S3Search widgets.
    32 * 2 dimensional Bar Chart
    33 * Pick Row / Column based on result of filter
     37* 2 Variable Bar Chart: Allow "Row" and "Column" data to be simultaneously displayed on the chart. The Row can have a label and the Column variable can have a colour key.
     38[[Image(http://drrprojects.net/drrp/static/img/drrpp/graph_img.png)]]
     39or
     40[[Image(https://docs.google.com/a/sahanafoundation.org/spreadsheet/oimg?key=0AuNG6ihli0CudHpuZUp4dU1hY3RnM0RzOTdBZTg0LWc&oid=1&zx=fxsow6nvnqxu)]]
     41* Allow the user to select No Column to display a 1 variable chart.
     42* Remove the "Row" and "Columns" labels and just have "Display Chart for: <Row Input> and <Hazard Input>
     43* Hard code a single value for the chart to plot and remove this input choice from the user (eg. Count of Project Names)
    3444* Automatically associate the aggregate function based on the type of field used for the value.
    3545 * String fields will always be aggregated by Count
    3646 * It may be desirable to always aggregate an integer/double by sum to avoid confusing users
     47* When hovering over a bar, display the label (Row + Column) and value of that bar.
     48* Be able to download the chart as an image file (This link maybe helpful: http://stackoverflow.com/questions/4197468/how-to-save-a-jquery-flot-graph-to-a-png-or-orther-image-formate)
     49* From the Chart page, be able to navigate directly to the List page, Report page and Map page for the resource, while retaining the same Filter Criteria (and Row and Column values for the report)
     50
     51==== Advanced ====
     52* Automatically select the Row and Column based on the result of the Search.
     53 * If there is more than one result for a field that was used for the filter, use this field for the Row
     54 * If there is more than one result for another field that was used for the filter, use this field for the Column
     55 * Eg. If a Project Chart is searched by Countries: Thailand, Loas and Vietnam and Hazards: Floods & Cyclone, use Countries for the Row and Cyclone for the Column
     56* By clicking on a single bar in the chart, be able to add the value for the Row and Column to the filter criteria - "Drilling Down" into the data (See http://demo.drrprojects.net/drrp/drrpp/project/graphs for a demonstration of this feature)
     57
     58=== Line Chart ===
     59...
     60
     61=== Pie Chart ===
     62...
    3763
    3864== Design ==