My question is that I dont know that how many rows in JSON.. Please
check the JSON below:
Now my question is that how can I use to this huge JSON data using a
variable, please let me know that how can I use it.


JSON:
----------------------------
{"quotes":[{"volume":4.482362E7,"marketcap":2.658073488E11,"price":
28.56,"date":"03/26/2008"},{"volume":4.477303E7,"marketcap":
2.4898309011E11,"price":27.27,"date":"08/26/2008"},{"volume":
1.116584E8,"marketcap":2.3729631507E11,"price":
25.99,"date":"09/16/2008"},{"volume":6.040522E7,"marketcap":
2.3081380704E11,"price":25.28,"date":"08/04/2008"},{"volume":
6.810552E7,"marketcap":2.3516064825E11,"price":
25.25,"date":"07/11/2008"},{"volume":4.949439E7,"marketcap":
2.713915368E11,"price":29.16,"date":"04/02/2008"},{"volume":
5.196673E7,"marketcap":2.4003073E11,"price":26.23,"date":"07/30/2008"},
{"volume":8.453531E7,"marketcap":2.663657676E11,"price":
28.62,"date":"03/13/2008"},{"volume":1.029828E8,"marketcap":
1.6270003017E11,"price":18.29,"date":"11/19/2008"},{"volume":
1.173847E8,"marketcap":2.53148925302E11,"price":
27.1999,"date":"02/29/2008"},{"volume":9.736064E7,"marketcap":
1.7888997303E11,"price":20.11,"date":"12/16/2008"},{"volume":
9.992337E7,"marketcap":2.5024818291E11,"price":
26.87,"date":"07/01/2008"},{"volume":7.846461E7,"marketcap":
2.5602242457E11,"price":27.49,"date":"06/06/2008"},{"volume":
5.335511E7,"marketcap":2.835907031793E11,"price":
30.4501,"date":"05/15/2008"},{"volume":9.810299E7,"marketcap":
2.92704521E11,"price":31.45,"date":"04/23/2008"},{"volume":
1.072016E8,"marketcap":2.4169073451E11,"price":
26.69,"date":"09/30/2008"},{"volume":7.60048E7,"marketcap":
2.635661919E11,"price":28.3,"date":"06/05/2008"},{"volume":
7.161478E7,"marketcap":2.738108142E11,"price":
29.4,"date":"05/01/2008"},{"volume":3.137194E7,"marketcap":
1.7986848606E11,"price":20.22,"date":"11/28/2008"},{"volume":
1.463643E8,"marketcap":2.2557198189E11,"price":
24.91,"date":"10/06/2008"},{"volume":5.779424E7,"marketcap":
2.5620869043E11,"price":27.51,"date":"06/30/2008"},{"volume":
6.958495E7,"marketcap":2.7260008611E11,"price":
29.27,"date":"05/08/2008"},{"volume":4.786377E7,"marketcap":
2.714846066E11,"price":29.17,"date":"03/24/2008"},{"volume":
4.964211E7,"marketcap":2.5482647763E11,"price":
27.91,"date":"08/14/2008"},{"volume":7.089988E7,"marketcap":
2.7734986554E11,"price":29.78,"date":"05/13/2008"},{"volume":
9.352937E7,"marketcap":2.766048021E11,"price":
29.7,"date":"05/06/2008"},{"volume":5.979924E7,"marketcap":
2.3536372E11,"price":25.72,"date":"07/31/2008"},{"volume":
8.094768E7,"marketcap":1.7675503551E11,"price":
19.87,"date":"12/03/2008"},{"volume":7.561489E7,"marketcap":
2.6785030668E11,"price":28.76,"date":"05/20/2008"},{"volume":
5.673429E7,"marketcap":2.3702330685E11,"price":
25.45,"date":"07/10/2008"},{"volume":5.203139E7,"marketcap":
2.6244859674E11,"price":28.18,"date":"05/28/2008"},{"volume":
5.219324E7,"marketcap":2.6514945171E11,"price":
28.47,"date":"05/22/2008"},{"volume":6.571854E7,"marketcap":
2.74554979302E11,"price":29.4999,"date":"04/01/2008"},{"volume":
6.825204E7,"marketcap":2.621776266E11,"price":
28.17,"date":"02/19/2008"},{"volume":5.71451E7,"marketcap":
2.6049280521E11,"price":27.97,"date":"06/23/2008"},{"volume":
1.089315E8,"marketcap":1.7453114226E11,"price":
19.62,"date":"11/18/2008"},{"volume":8.153331E7,"marketcap":
2.7930565707E11,"price":29.99,"date":"05/16/2008"},{"volume":
9.001423E7,"marketcap":1.805801319E11,"price":
20.3,"date":"11/12/2008"},{"volume":4.379627E7,"marketcap":
2.713915368E11,"price":29.16,"date":"04/04/2008"},{"volume":
5.712692E7,"marketcap":2.456048817E11,"price":
26.9,"date":"09/03/2008"},{"volume":9.727489E7,"marketcap":
1.7186247036E11,"price":19.32,"date":"11/17/2008"},{"volume":
8.332239E7,"marketcap":2.738113516E11,"price":
29.42,"date":"03/18/2008"},{"volume":3.804101E7,"marketcap":
2.5281781317E11,"price":27.69,"date":"08/18/2008"},{"volume":
6.192222E7,"marketcap":2.0121786126E11,"price":
22.62,"date":"11/03/2008"},{"volume":5.961479E7,"marketcap":
2.7436961178E11,"price":29.46,"date":"05/19/2008"},{"volume":
8.090675E7,"marketcap":2.3280144E11,"price":25.44,"date":"07/24/2008"},
{"volume":8.877035E7,"marketcap":2.7204128853E11,"price":
29.21,"date":"05/07/2008"},{"volume":7.753418E7,"marketcap":
2.593855326E11,"price":27.87,"date":"03/07/2008"},{"volume":
1.541066E8,"marketcap":2.0211829128E11,"price":
22.32,"date":"10/23/2008"},{"volume":4.967654E7,"marketcap":
2.6505631878E11,"price":28.46,"date":"06/18/2008"},{"volume":
2.284018E8,"marketcap":1.946927985E11,"price":
21.5,"date":"10/10/2008"},{"volume":7.289955E7,"marketcap":
2.4962221062E11,"price":27.34,"date":"09/11/2008"},{"volume":
6.633051E7,"marketcap":2.3893261E11,"price":26.11,"date":"07/29/2008"},
{"volume":5.969326E7,"marketcap":2.333505E11,"price":
25.5,"date":"07/28/2008"},{"volume":1.142839E8,"marketcap":
2.3834020728E11,"price":26.32,"date":"10/03/2008"},{"volume":
1.25272E8,"marketcap":1.8404940537E11,"price":
20.69,"date":"11/24/2008"},{"volume":7.967584E7,"marketcap":
1.8227029077E11,"price":20.49,"date":"11/26/2008"},{"volume":
7.124791E7,"marketcap":1.912548195E11,"price":
21.5,"date":"11/07/2008"},{"volume":4.668658E7,"marketcap":
2.641320924E11,"price":28.38,"date":"03/31/2008"},{"volume":
8.222243E7,"marketcap":2.3419201545E11,"price":
25.65,"date":"09/05/2008"},{"volume":1.051446E8,"marketcap":
2.319094422E11,"price":25.4,"date":"09/22/2008"},{"volume":
9.347177E7,"marketcap":2.2385144088E11,"price":
24.72,"date":"10/20/2008"},{"volume":8.465133E7,"marketcap":
2.4102802284E11,"price":25.88,"date":"07/02/2008"},{"volume":
8.310259E7,"marketcap":2.63387534E11,"price":28.3,"date":"03/17/2008"},
{"volume":7.69826E7,"marketcap":2.589095454E11,"price":
27.8,"date":"06/02/2008"},{"volume":1.050604E8,"marketcap":
2.602231608E11,"price":27.96,"date":"03/14/2008"},{"volume":
3.890465E7,"marketcap":2.6990242E11,"price":29,"date":"04/03/2008"},
{"volume":5.810064E7,"marketcap":2.5257650616E11,"price":
27.12,"date":"06/11/2008"},{"volume":5.072336E7,"marketcap":
2.4916569597E11,"price":27.29,"date":"08/29/2008"},{"volume":
6.302237E7,"marketcap":2.6375245776E11,"price":
28.32,"date":"05/30/2008"},{"volume":1.49981E8,"marketcap":
1.9496446287E11,"price":21.53,"date":"10/22/2008"},{"volume":
9.108476E7,"marketcap":2.565934386E11,"price":
27.57,"date":"03/06/2008"},{"volume":9.379936E7,"marketcap":
2.3770632375E11,"price":26.25,"date":"10/02/2008"},{"volume":
9.209246E7,"marketcap":2.3227465392E11,"price":
25.44,"date":"09/23/2008"},{"volume":6.012199E7,"marketcap":
2.715776764E11,"price":29.18,"date":"03/20/2008"},{"volume":
7.747199E7,"marketcap":2.3463164E11,"price":25.64,"date":"07/21/2008"},
{"volume":8.89146E7,"marketcap":2.3978908392E11,"price":
26.48,"date":"10/01/2008"},{"volume":4.872364E7,"marketcap":
2.719499556E11,"price":29.22,"date":"04/17/2008"},{"volume":
8.253617E7,"marketcap":2.5007872527E11,"price":
27.39,"date":"08/07/2008"},{"volume":4.724656E7,"marketcap":
2.6487005292E11,"price":28.44,"date":"05/27/2008"},{"volume":
5.137294E7,"marketcap":2.5254390438E11,"price":
27.66,"date":"08/25/2008"},{"volume":4.914228E7,"marketcap":
2.712053972E11,"price":29.14,"date":"03/25/2008"},{"volume":
7.800206E7,"marketcap":1.885861476E11,"price":
21.2,"date":"11/11/2008"},{"volume":7.810444E7,"marketcap":
1.7221829328E11,"price":19.36,"date":"12/12/2008"},{"volume":
1.082349E8,"marketcap":2.641320924E11,"price":
28.38,"date":"02/26/2008"},{"volume":4.425166E7,"marketcap":
2.682228384E11,"price":28.8,"date":"06/17/2008"},{"volume":
1.072224E8,"marketcap":1.8689598873E11,"price":
21.01,"date":"12/08/2008"},{"volume":6.702865E7,"marketcap":
2.5844388075E11,"price":27.75,"date":"06/26/2008"},{"volume":
4.361413E7,"marketcap":2.4816136374E11,"price":
27.18,"date":"08/21/2008"},{"volume":4.148321E7,"marketcap":
2.4916569597E11,"price":27.29,"date":"08/20/2008"},{"volume":
9.646213E7,"marketcap":1.7844519438E11,"price":
20.06,"date":"11/14/2008"},{"volume":1.318939E8,"marketcap":
2.7073742751E11,"price":29.07,"date":"06/13/2008"},{"volume":
7.557024E7,"marketcap":2.5217869266E11,"price":
27.62,"date":"09/12/2008"},{"volume":7.172275E7,"marketcap":
2.61060789E11,"price":28.05,"date":"03/10/2008"},{"volume":
1.007146E8,"marketcap":2.501700282E11,"price":
27.4,"date":"09/26/2008"},{"volume":9.721845E7,"marketcap":
2.6999236407E11,"price":28.99,"date":"04/28/2008"},{"volume":
1.319166E8,"marketcap":2.019371817E11,"price":
22.3,"date":"10/09/2008"},{"volume":8.428261E7,"marketcap":
2.3930497953E11,"price":26.21,"date":"08/05/2008"},{"volume":
9.834854E7,"marketcap":2.61526138E11,"price":28.1,"date":"02/21/2008"},
{"volume":6.144053E7,"marketcap":2.663657676E11,"price":
28.62,"date":"03/19/2008"},{"volume":9.526462E7,"marketcap":
2.0130681699E11,"price":22.63,"date":"10/30/2008"},{"volume":
7.275501E7,"marketcap":2.5732628559E11,"price":
27.63,"date":"06/27/2008"},{"volume":9.293946E7,"marketcap":
1.7782250427E11,"price":19.99,"date":"11/25/2008"},{"volume":
6.708867E7,"marketcap":1.894757049E11,"price":
21.3,"date":"11/10/2008"},{"volume":8.04819E7,"marketcap":
1.832488038E11,"price":20.6,"date":"12/09/2008"},{"volume":
9.502075E7,"marketcap":2.725083744E11,"price":
29.28,"date":"03/11/2008"},{"volume":5.121236E7,"marketcap":
2.3422931895E11,"price":25.15,"date":"07/14/2008"},{"volume":
6.558852E7,"marketcap":2.709261878E11,"price":
29.11,"date":"04/10/2008"},{"volume":7.517556E7,"marketcap":
2.630152548E11,"price":28.26,"date":"02/27/2008"},{"volume":
7.648722E7,"marketcap":2.511953902E11,"price":
26.99,"date":"03/03/2008"},{"volume":1.064323E8,"marketcap":
2.61711346902E11,"price":28.1199,"date":"03/05/2008"},{"volume":
4.768431E7,"marketcap":2.61060789E11,"price":
28.05,"date":"03/27/2008"},{"volume":1.451092E8,"marketcap":
2.7781553019E11,"price":29.83,"date":"04/25/2008"},{"volume":
1.502361E8,"marketcap":2.3664486E11,"price":25.86,"date":"07/18/2008"},
{"volume":3.397308E7,"marketcap":2.5163087508E11,"price":
27.56,"date":"08/27/2008"},{"volume":1.117458E8,"marketcap":
2.04598179E11,"price":23,"date":"10/29/2008"},{"volume":
8.231239E7,"marketcap":2.4487445826E11,"price":
26.82,"date":"09/15/2008"},{"volume":5.99053E7,"marketcap":
1.6937170992E11,"price":19.04,"date":"12/15/2008"},{"volume":
3.707643E7,"marketcap":2.4195935214E11,"price":
25.98,"date":"07/03/2008"},{"volume":6.20375E7,"marketcap":
2.6943356649E11,"price":28.93,"date":"06/19/2008"},{"volume":
7.211255E7,"marketcap":2.0931283269E11,"price":
23.53,"date":"11/04/2008"},{"volume":1.176433E8,"marketcap":
1.8840823614E11,"price":21.18,"date":"10/27/2008"},{"volume":
8.839847E7,"marketcap":2.360958E11,"price":25.8,"date":"07/22/2008"},
{"volume":9.747744E7,"marketcap":2.6291426139E11,"price":
28.23,"date":"06/20/2008"},{"volume":8.658512E7,"marketcap":
2.5434603183E11,"price":27.31,"date":"06/03/2008"},{"volume":
1.195778E8,"marketcap":2.7083056044E11,"price":
29.08,"date":"05/05/2008"},{"volume":4.922028E7,"marketcap":
2.597578118E11,"price":27.91,"date":"03/28/2008"},{"volume":
7.960858E7,"marketcap":1.6554661353E11,"price":
18.61,"date":"12/01/2008"},{"volume":8.024762E7,"marketcap":
2.3483113596E11,"price":25.72,"date":"09/24/2008"},{"volume":
1.256777E8,"marketcap":2.576172064E11,"price":
27.68,"date":"02/22/2008"},{"volume":7.956141E7,"marketcap":
2.5648808922E11,"price":27.54,"date":"06/04/2008"},{"volume":
4.901102E7,"marketcap":2.632013944E11,"price":
28.28,"date":"04/11/2008"},{"volume":8.68972E7,"marketcap":
2.567795782E11,"price":27.59,"date":"03/04/2008"},{"volume":
6.55494E7,"marketcap":2.4074862405E11,"price":
25.85,"date":"07/08/2008"},{"volume":5.405638E7,"marketcap":
2.69437071E11,"price":28.95,"date":"04/16/2008"},{"volume":
7.459761E7,"marketcap":2.6561511636E11,"price":
28.52,"date":"04/30/2008"},{"volume":8.352501E7,"marketcap":
1.7301889485E11,"price":19.45,"date":"12/11/2008"},{"volume":
6.728658E7,"marketcap":2.81536145E11,"price":
30.25,"date":"04/22/2008"},{"volume":5.432938E7,"marketcap":
2.831183316E11,"price":30.42,"date":"04/21/2008"},{"volume":
5.116229E7,"marketcap":2.5482647763E11,"price":
27.91,"date":"08/13/2008"},{"volume":5.849691E7,"marketcap":
2.3939016E11,"price":26.16,"date":"07/25/2008"},{"volume":
1.349216E8,"marketcap":2.2971817188E11,"price":
25.16,"date":"09/19/2008"},{"volume":9.199367E7,"marketcap":
1.7675503551E11,"price":19.87,"date":"12/05/2008"},{"volume":
4.472757E7,"marketcap":2.67575675E11,"price":
28.75,"date":"04/08/2008"},{"volume":6.149667E7,"marketcap":
1.8333775953E11,"price":20.61,"date":"12/10/2008"},{"volume":
5.417164E7,"marketcap":2.3497438239E11,"price":
25.23,"date":"07/09/2008"},{"volume":1.610813E8,"marketcap":
2.1905203701E11,"price":24.19,"date":"10/16/2008"},{"volume":
6.427879E7,"marketcap":2.7930565707E11,"price":
29.99,"date":"05/12/2008"},{"volume":7.870131E7,"marketcap":
1.6999440003E11,"price":19.11,"date":"12/04/2008"},{"volume":
9.27078E7,"marketcap":2.4354261195E11,"price":
26.15,"date":"07/15/2008"},{"volume":8.43866E7,"marketcap":
2.6673271152E11,"price":28.64,"date":"04/29/2008"},{"volume":
1.00275E8,"marketcap":2.1153598944E11,"price":
23.36,"date":"10/21/2008"},{"volume":1.459285E8,"marketcap":
2.1035877717E11,"price":23.23,"date":"10/07/2008"},{"volume":
7.504203E7,"marketcap":2.4140494692E11,"price":
26.44,"date":"09/10/2008"},{"volume":1.340526E8,"marketcap":
2.054877363E11,"price":23.1,"date":"10/28/2008"},{"volume":
1.343332E8,"marketcap":2.2834862793E11,"price":
25.01,"date":"09/29/2008"},{"volume":4.83718E7,"marketcap":
2.5510038642E11,"price":27.94,"date":"08/28/2008"},{"volume":
7.471889E7,"marketcap":2.6943356649E11,"price":
28.93,"date":"06/16/2008"},{"volume":1.099275E8,"marketcap":
2.591063232E11,"price":27.84,"date":"02/25/2008"},{"volume":
9.542068E7,"marketcap":1.8573956424E11,"price":
20.88,"date":"11/06/2008"},{"volume":3.402757E7,"marketcap":
2.62922185E11,"price":28.25,"date":"04/15/2008"},{"volume":
7.56221E7,"marketcap":2.664588374E11,"price":
28.63,"date":"03/12/2008"},{"volume":9.61474E7,"marketcap":
2.4295709673E11,"price":26.61,"date":"09/25/2008"},{"volume":
6.423908E7,"marketcap":2.6403185655E11,"price":
28.35,"date":"06/25/2008"},{"volume":8.111619E7,"marketcap":
1.9641425184E11,"price":22.08,"date":"11/05/2008"},{"volume":
1.538951E8,"marketcap":1.9534678308E11,"price":
21.96,"date":"10/24/2008"},{"volume":7.790457E7,"marketcap":
2.4186093E11,"price":26.43,"date":"07/23/2008"},{"volume":
6.594781E7,"marketcap":2.7232068732E11,"price":
29.24,"date":"05/02/2008"},{"volume":7.945004E7,"marketcap":
2.3227465392E11,"price":25.44,"date":"08/01/2008"},{"volume":
1.132501E8,"marketcap":2.0519715414E11,"price":
22.66,"date":"10/15/2008"},{"volume":7.739511E7,"marketcap":
2.5974774177E11,"price":27.89,"date":"06/10/2008"},{"volume":
4.437856E7,"marketcap":2.713915368E11,"price":
29.16,"date":"04/07/2008"},{"volume":1.715756E8,"marketcap":
2.0836657179E11,"price":23.01,"date":"10/08/2008"},{"volume":
4.726667E7,"marketcap":2.5391344833E11,"price":
27.81,"date":"08/15/2008"},{"volume":9.551329E7,"marketcap":
2.4670051686E11,"price":27.02,"date":"08/06/2008"},{"volume":
1.394613E8,"marketcap":1.5593939469E11,"price":
17.53,"date":"11/20/2008"},{"volume":1.569814E8,"marketcap":
1.7506487664E11,"price":19.68,"date":"11/21/2008"},{"volume":
7.355798E7,"marketcap":2.792094E11,"price":30,"date":"04/18/2008"},
{"volume":4.583874E7,"marketcap":2.688786522E11,"price":
28.89,"date":"04/09/2008"},{"volume":1.139269E8,"marketcap":
2.6300739432E11,"price":28.24,"date":"06/12/2008"},{"volume":
1.483091E8,"marketcap":1.8903092625E11,"price":
21.25,"date":"11/13/2008"},{"volume":6.210917E7,"marketcap":
2.3848325316E11,"price":26.12,"date":"09/08/2008"},{"volume":
7.145159E7,"marketcap":2.4242501679E11,"price":
26.03,"date":"07/07/2008"},{"volume":1.322503E8,"marketcap":
2.3063120118E11,"price":25.26,"date":"09/18/2008"},{"volume":
8.203586E7,"marketcap":2.5388036718E11,"price":
27.26,"date":"07/16/2008"},{"volume":6.521693E7,"marketcap":
2.5825761489E11,"price":27.73,"date":"06/24/2008"},{"volume":
1.152521E8,"marketcap":2.95961964E11,"price":31.8,"date":"04/24/2008"},
{"volume":8.296617E7,"marketcap":2.599439514E11,"price":
27.93,"date":"02/28/2008"},{"volume":4.334475E7,"marketcap":
2.611538588E11,"price":28.06,"date":"04/14/2008"},{"volume":
6.672984E7,"marketcap":2.7874685949E11,"price":
29.93,"date":"05/14/2008"},{"volume":4.766523E7,"marketcap":
2.6365932483E11,"price":28.31,"date":"05/29/2008"},{"volume":
8.569357E7,"marketcap":2.383006473E11,"price":
26.1,"date":"09/09/2008"},{"volume":1.035493E8,"marketcap":
2.2433129901E11,"price":24.57,"date":"09/17/2008"},{"volume":
6.613849E7,"marketcap":2.4058322055E11,"price":
26.35,"date":"09/04/2008"},{"volume":7.968097E7,"marketcap":
1.7035022295E11,"price":19.15,"date":"12/02/2008"},{"volume":
1.656611E8,"marketcap":2.182370439E11,"price":
24.1,"date":"10/14/2008"},{"volume":6.27964E7,"marketcap":
2.5674383916E11,"price":28.12,"date":"08/12/2008"},{"volume":
6.872927E7,"marketcap":2.547351747E11,"price":
27.9,"date":"08/11/2008"},{"volume":6.607068E7,"marketcap":
2.474309403E11,"price":27.1,"date":"09/02/2008"},{"volume":
9.620633E7,"marketcap":2.5630182336E11,"price":
27.52,"date":"07/17/2008"},{"volume":4.888982E7,"marketcap":
2.6123786865E11,"price":28.05,"date":"05/23/2008"},{"volume":
4.789279E7,"marketcap":2.5418735712E11,"price":
27.84,"date":"08/22/2008"},{"volume":6.00891E7,"marketcap":
2.6310052725E11,"price":28.25,"date":"05/21/2008"},{"volume":
6.676917E7,"marketcap":2.5807134903E11,"price":
27.71,"date":"06/09/2008"},{"volume":5.157408E7,"marketcap":
2.7371768127E11,"price":29.39,"date":"05/09/2008"},{"volume":
9.282938E7,"marketcap":2.626429756E11,"price":
28.22,"date":"02/20/2008"},{"volume":1.448757E8,"marketcap":
2.309147145E11,"price":25.5,"date":"10/13/2008"},{"volume":
4.03079E7,"marketcap":2.4943960476E11,"price":
27.32,"date":"08/19/2008"},{"volume":9.274423E7,"marketcap":
1.9863814509E11,"price":22.33,"date":"10/31/2008"},{"volume":
8.081349E7,"marketcap":2.5683514209E11,"price":
28.13,"date":"08/08/2008"},{"volume":1.336514E8,"marketcap":
2.1669761247E11,"price":23.93,"date":"10/17/2008"}]}


Javascript function for JSON:
-------------------------------------
/
*******************************************************************************************************************/
 function drawChart() {
     var data = new google.visualization.DataTable({
                cols: [
                        {label: 'Date', type: 'date'},
                        {label: 'Volume', type: 'number'},
                        {label: 'Price', type: 'number'}],
                rows: [
                        {c:[{v: new Date(2008, 3 ,26)}, {v:
4.482362E7}, {v:28.56}]},
                        {c:[{v: new Date(2008, 8, 26)}, {v:
4.477303E7}, {v:27.27}]},
                        {c:[{v: new Date(2008, 9, 16)}, {v:
1.116584E8}, {v:25.99}]},
                        {c:[{v: new Date(2008, 8, 4)},  {v:
6.040522E7}, {v:25.28}]},
                        {c:[{v: new Date(2008, 7, 11)}, {v:
6.810552E7}, {v:25.25}]}
                      ]
     });
     var chart = new google.visualization.AnnotatedTimeLine
(document.getElementById('div1'));
     chart.draw(data, {displayAnnotations: true});
}
/
*******************************************************************************************************************/

Thanks
- arsh



On Feb 18, 7:22 pm, VizGuy <[email protected]> wrote:
> I still don't understand the problem...
> The datatable will work just fine if you feed it a json that has a rows
> array of 5 rows, or of 15 rows or of 100 rows.
> You don't have to commit to how many rows you have.
> So I don't see the problem, I'm sorry..
>
> Regards,
> VizGuy
>
> On Wed, Feb 18, 2009 at 3:16 PM, Arshad <[email protected]> wrote:
>
> > Hi VizGuy,
>
> > Thanks for reply, Actually I have JSON data, this JSON data have rows
> > & cols, we knew that how many cols are available in JSON data but rows
> > are not specified
> > these can be 1,2,3,4....n. That's why I an logic which can be handle
> > to rows dynamically.
>
> > Thanks
> > - arsh
>
> > On Feb 18, 4:18 pm, VizGuy <[email protected]> wrote:
> > > Hi!
> > > I will need some more information to answer your question.
> > > What do you mean by dynamic rows?
> > > Do you mean using a Data Source and querying it?
> > > Or just having the server specify different row data on every rendering?
> > > Please clarify..
>
> > > Regards,
> > > VizGuy
>
> > > On Wed, Feb 18, 2009 at 10:39 AM, Arshad <[email protected]>
> > wrote:
>
> > > > Hi All,
> > > > I have create a TimeLine chart using JSON, I am using 3 cols & 5 rows
> > > > here. This is working fine but my problem is that I have fixed cols in
> > > > JSON but rows are not fix, these are dynamically. So please let me
> > > > know that how can I  use dynamic rows in my JSON.
>
> > > > /
>
> > *********************************************************************************/
> > > > // To Being used to calling data from DataTable's Object for Time Line
> > > > Chart.
> > > > function loadTimeLine() {
> > > >        drawChart();
> > > > }
>
> > > > // To Being used to Load API for Time LIne Chart.
> > > > function loadTimeLineAPI() {
> > > >        var a = google.load("visualization", "1", {"callback":
> > loadTimeLine,
> > > > packages:["annotatedtimeline"]});
> > > > }
>
> > > > // Creating DataTable's Object for Time Line Chart data.
> > > > function drawChart() {
> > > >     var data = new google.visualization.DataTable({
> > > >                                 cols: [
> > > >                                                                {label:
> > > > 'Date', type: 'date'},
> > > >                                                                {label:
> > > > 'Volume', type: 'number'},
> > > >                {label: 'Price', type: 'number'}],
> > > >         rows: [
> > > >                                                {c:[{v: new Date(2008, 3
> > > > ,26)}, {v: 4.482362E7}, {v:
> > > > 28.56}]},
> > > >                                                {c:[{v: new Date(2008,
> > 8,
> > > > 26)}, {v: 4.477303E7}, {v:
> > > > 27.27}]},
> > > >                                                {c:[{v: new Date(2008,
> > 9,
> > > > 16)}, {v: 1.116584E8}, {v:
> > > > 25.99}]},
> > > >                                                {c:[{v: new Date(2008,
> > 8,
> > > > 4)},  {v: 6.040522E7}, {v:
> > > > 25.28}]},
> > > >                                                {c:[{v: new Date(2008,
> > 7,
> > > > 11)}, {v: 6.810552E7}, {v:
> > > > 25.25}]}
> > > >                                ]
> > > >                });
> > > >        var chart = new google.visualization.AnnotatedTimeLine
> > > > (document.getElementById('div1'));
> > > >        chart.draw(data, {displayAnnotations: true});
> > > > }
>
> > > > // jQuery function to document ready.
> > > > $(document).ready(function()
> > > > {
> > > >                loadTimeLineAPI();
> > > > });
> > > > /
>
> > *********************************************************************************/
>
> > > > Thanks - arsh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to