jQWidgets Forums

jQuery UI Widgets Forums Chart Get chart data from grid record Reply To: Get chart data from grid record

Get chart data from grid record #77201

elbnacht
Participant

Hello Vladimir,

I tried it with the following code:

var sourceChart = {
	localdata: dataAdapter.records,
	datatype: "array",
	datafields: [
	{ name: 'Datum', type: 'date'},
	{ name: 'Betrag', type: 'float' },
	{ name: 'Ziel', type: 'float' }
	],
};

This does not work. I checked the object in Firebug (Mozilla). The data are available.
It seems, that the array retrieved from the grid is not compatible to the chart. I do not know, what the required array structure should be.
Have you any idea?

Jens