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

···

On Tue, Nov 29, 2016 at 8:11 PM, Pooben Dass pooben@hisp.org 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( **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. 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

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

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.

···

On Tue, Nov 29, 2016 at 3:21 PM, Morten Olav Hansen morten@dhis2.org 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 pooben@hisp.org 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( **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. 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp