Welcome Guest, Not a member yet? Register   Sign In
Passing array to Javascript code
#2

[eluser]libnac[/eluser]
Does Flot use JSON in order to represent graphics?

i am viewing the code you put on your question ...

"usa": {
label: "USA",
data: [[1988, 483994], [1989, 479060], [1990, 457648], [1991, 401949], [1992, 424705], [1993, 402375], [1994, 377867], [1995, 357382], [1996, 337946], [1997, 336185], [1998, 328611], [1999, 329421], [2000, 342172], [2001, 344932], [2002, 387303], [2003, 440813], [2004, 480451], [2005, 504638], [2006, 528692]]
},

I think this is json.. then you must to echo your results inside the javascript function that creates this graphics.


Messages In This Thread
Passing array to Javascript code - by El Forum - 06-22-2008, 06:54 AM
Passing array to Javascript code - by El Forum - 06-22-2008, 08:59 AM
Passing array to Javascript code - by El Forum - 06-22-2008, 09:43 AM
Passing array to Javascript code - by El Forum - 06-22-2008, 12:26 PM
Passing array to Javascript code - by El Forum - 06-22-2008, 01:33 PM
Passing array to Javascript code - by El Forum - 06-22-2008, 02:11 PM
Passing array to Javascript code - by El Forum - 06-22-2008, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB