# Help with charts/dashboard

**URL:** <https://community.dhis2.org/t/help-with-charts-dashboard/1401>\
**Category:** Support - Assistance technique\
**Created:** [20 March 2013 00:47 UTC](https://community.dhis2.org/t/help-with-charts-dashboard/1401 "2013-03-20T00:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvin\_B\_Marcelo](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/alvin_b_marcelo/32/32840_2.png) [@Alvin\_B\_Marcelo](https://community.dhis2.org/u/Alvin_B_Marcelo)\
**Post date:** [20 March 2013 00:47 UTC](https://community.dhis2.org/t/help-with-charts-dashboard/1401/1 "2013-03-20T00:47:01Z")

</div>

Dear all,

I want to display the following charts on the frontpage:

1. how many clinics have accounts in DHIS2

2. how many reports DHIS2 has received from the clinics (reporting rate?)

Can someone teach us how? Thanks…

---

<div class="post-metadata">

**Author:** ![sunbiz](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/sunbiz/32/89_2.png) [@sunbiz](https://community.dhis2.org/u/sunbiz)\
**Post date:** [20 March 2013 01:11 UTC](https://community.dhis2.org/t/help-with-charts-dashboard/1401/2 "2013-03-20T01:11:05Z")

</div>

You can probably use the Web-API and connect to an external portal (drupal etc)  
[http://data.hiskenya.org/](http://data.hiskenya.org/) - is a good example of that. Another one is - [https://dhis2vn.org/](https://dhis2vn.org/)

1. you can use the [http://apps.dhis2.org/dev/api/users.json](http://apps.dhis2.org/dev/api/users.json) and look at the pager-\>total  
But this is all the users registered in the system. If you have one user per orgunit, this will work

A more robust way would be to get this XML - [http://apps.dhis2.org/dev/api/metaData.xml?assumeTrue=false&users=true](http://apps.dhis2.org/dev/api/metaData.xml?assumeTrue=false&users=true)  
and then do a XPath expression for unique organisationUnit code=``

`

This is available out-of-the-box. Under Services->Reports->Reporting Rate Summary.
I am not sure there is an easy way to get this out to a portal, but may be someone else knows.

> **···**
>
> * * *
> 
> Regards,  
> Saptarshi PURKAYASTHA
> 
> My Tech Blog: [http://sunnytalkstech.blogspot.com](http://sunnytalkstech.blogspot.com)  
> You Live by CHOICE, Not by CHANCE
> 
> On 20 March 2013 01:47, Alvin Marcelo [alvin.marcelo@gmail.com](mailto:alvin.marcelo@gmail.com) wrote:
> 
> > Dear all,
> 
> > I want to display the following charts on the frontpage:
> 
> > 
> 
> > 1. how many clinics have accounts in DHIS2
> 
> > 
> 
> > 1. how many reports DHIS2 has received from the clinics (reporting rate?)
> 
> > 
> 
> > Can someone teach us how? Thanks…
> 
> > 
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)`

---

<div class="post-metadata">

**Author:** ![Lars](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/lars/32/34166_2.png) [@Lars](https://community.dhis2.org/u/Lars)\
**Post date:** [20 March 2013 08:15 UTC](https://community.dhis2.org/t/help-with-charts-dashboard/1401/3 "2013-03-20T08:15:21Z")

</div>

Hi Alvin,

regarding 1. how do you want to define that? As the number of org units (at a specific level or part of an org unit group), or as the number of users associated with clinics?

Regarding 2. you can go to Data Visualizer, select the data sets you want to see under “reporting rates”, select time periods and organisation units and save it as a favorite. Then go to dashboard and click “insert” and select that chart in the chart area you prefer.

Lars
