Hi
Thanks for the quick reply.
The elvalue is correct as it works if I add the UIDs like
chartPlugin.load([{
columns: [{dimension : "dx",items: [ {id:UID1},{id:UID2} ] }],
rows : [ {dimension : 'pe',items : [ {id : LAST_5_YEARS' } ]} ],
filters: [{dimension: "ou",items: [{id: orgUnit.id }]} ],
url: base,
el: elValue
}]);
Regards
Pooben
On Tue, Nov 29, 2016 at 3:21 PM, Morten Olav Hansen <[email protected]>
wrote:
> Hi Pooben
>
> According to the error URL you are pointing to, it seems it can't find the
> div to render to. Are you sure elValue is a valid DOM node?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Tue, Nov 29, 2016 at 8:11 PM, Pooben Dass <[email protected]> wrote:
>
>> 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 [email protected]
>> <[email protected]> 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.*
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : [email protected]
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
--
*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 [email protected]
<[email protected]> 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.*
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp