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. 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@hisp.org 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.

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. 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@hisp.org 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.

ยทยทยท

---------- Forwarded message ----------
From: Pooben Dass pooben@hisp.org
Date: Fri, Oct 7, 2016 at 11:59 AM
Subject: Embedding Event Charts
To: dhis2-devs@lists.launchpad.net
Cc: jan@dhis2.org, Kabelo Molepo kabelo@hisp.org