← Back to team overview

dhis2-devs team mailing list archive

Embedding a chart on an HTML page

 

---------- Forwarded message ----------
From: Pooben Dass <pooben@xxxxxxxx>
Date: Fri, Nov 4, 2016 at 9:52 AM
Subject: Embedding a chart on an HTML page
To: dhis2-devs@xxxxxxxxxxxxxxxxxxx


Hi Devs

I'm trying to embed a chart with category options on to an HTML page.

What is the correct format to map the co & de dimension? This is the
example for the de only?

DHIS.getChart({
url : base,
el : 'chart1',
type : 'pie',
columns : [ {dimension : 'de',items : [ {id : 'DE_UID' }] } ],
rows :  [ {dimension : 'pe',items : [ {id : 'PE_UID' } ]} ],
filters : [{dimension : 'ou',items : [{id : 'UID' }] } ],
showData : true,
});

DHIS2 version 2.25


Kind Regards
Pooben

-- 


*This message and any attachments are subject to a disclaimer published at 
http://www.hisp.org/policies.html#comms_disclaimer 
<http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the 
disclaimer before opening any attachment or taking any other action in 
terms of this electronic transmission.  If you cannot access the 
disclaimer, kindly send an email to disclaimer@xxxxxxxx 
<disclaimer@xxxxxxxx> and a copy will be provided to you. By replying to 
this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.*