Rank: Newbie
Groups: Registered
Joined: 8/4/2016(UTC) Posts: 2
Thanks: 0 times Was thanked: 0 time(s) in 0 post(s)
|
Apologies if this has been asked before: I need to create my chart data in a servlet and then pass using AJAX. This is all working fine but I can't understand how to pass a datetime without having to reprocess it in JavaScript. I have tried passing millseconds and also strings of the format: 2016-08-08T02:17:14.315Z but these dont appear to be seen as dates my code is below: any help would be appreciated please Code: $('#jqChart').jqChart({ title : 'Web Service 1', tooltips : { type : 'shared' }, legend : { visible : false }, axes : [ { type : 'dateTime', location : 'bottom', zoomEnabled : true }, { type : 'linear', location : 'left' } ], series : [
{ type : 'column', title : '##', data : concurrent_transactions_data.chartdata }
] });
and ideally I would like my JSON to be using millisecos like this: Code: [["1470567194319",259],["1470580154318",243],["1470593114317",252],["1470606074316",263],["1470619034315",265],["1470631994314",272],["1470644954313",249],["1470657914312",263],["1470670874311",259],["1470683834310",269],["1470696794309",256],["1470709754308",265],["1470722714307",267],["1470735674306",273],["1470748634305",243],["1470761594304",270],["1470774554303",255],["1470787514302",259],["1470800474301",254],["1470813434300",253]]
|