← Back to team overview

dhis2-devs team mailing list archive

Embedding Event Charts

 

Hi Devs

Can we embed Events charts in a standard report and from which version of
dhis2 is this possible?

Is this the correct format of the script?

 DHIS.getEventChart({
url : base,
el : 'chart1',
type : 'column',
program : 'ProgramUID',
programStage : 'StageUID',
columns : [ {dimension : 'ou',items : [ {id : 'USER_ORGUNIT' }  ] } ],
rows :  [ {dimension : 'pe',items : [ {id : 'LAST_6_MONTHS' } ]} ],
filters : [{dimension : 'dy',items : [{id : 'DE_UID:EQ:VALUE'}] } ],
outputType: 'EVENT',
showData : true,
});

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.*

Follow ups