OK, first a comment. In your controller you have a signature of
List showLineChart(Map<
String, Object> map,
HttpServletRequest request, HttpServletResponse response)
Why are you passing in the request and response. You don't need to pass those arguments, especially since you never use them. Even if you did @RequestParam is better to have Spring go into the request for you. Anyway.
So to me looks like you are getting the data that you want back out of the Controller. I see no difference between
* Array should be
var line1=[['2008-09-30 4:00PM',4], ['2008-10-30 4:00PM',6.5], ['2008-11-30 4:00PM',5.7], ['2008-12-30 4:00PM',9]];
- But i got it like this
[["2012-10-01",15.0],["2012-10-02",20.0],["2012-10-03",25.0],["2012-10-04",18.0],["2012-10-05",22.0],["2012-10-06",24.0]]
And you don't bother telling us what the difference would be, just expecting us to guess. Please tell us what is different there. Again the Time is the only difference and I commented on that before.
It sounds like your chart tool is the problem and that it seems to be on the client JavaScript side, so this might not even be the forum you need.
Please give us more detail.
Thanks
Mark