← Back to team overview

dhis2-devs team mailing list archive

Error: Highcharts error #13 when Passing an array as a dimension

 

Hi Devs

How can I pass an array of values to the columns dimension?
I receive this error : *Error: Highcharts error #13:
www.highcharts.com/errors/13( <http://www.highcharts.com/errors/13(>…) *when
I try the sample code below

var arrVals = [{'id':'UID1'},{id:'UID2'} ];

chartPlugin.load([{
columns: [{dimension : "dx",items: arrVals }],
rows :  [ {dimension : 'pe',items : [ {id : LAST_5_YEARS' } ]} ],
filters: [{dimension: "ou",items: [{id: orgUnit.id }]} ],
url: base,
el: elValue
}]);


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