Embedding a chart on an HTML page

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