Assuming mymap and mymapcount are populated correctly, your code looks like 
it would work as is.  Do your alert statements produce the results you 
expect?  If they do, then what happens when you try to draw a chart?

On Wednesday, September 26, 2012 2:02:27 AM UTC-4, taps wrote:
>
> I have an array which I create from dynamic data.and I want to use this as 
> haxis and yaxis.so how can I do that?
> I am getting value for maymap array but for mymapcount m not getting.
> my code is:
>
>       var mymap=[];
>       var mymapcount=[];
>       
>       function drawChart() {
>       alert(mymap);
>      
>       alert(mymapcount);
>       var dt=mymapcount[0];
>       alert(dt);
>         var data = google.visualization.arrayToDataTable([
>           ['ID', '', '', 'frequncy', ''],
>           
>           [mymap[0], 1, 6, mymapcount[0],  6  ],
>           [mymap[1],  2,  9,      9, 9],
>           [mymap[2],   3,  3,      3, 3],
>           [mymap[3],   4,  8,      8, 8],
>           [mymap[4],   5,  2,      2, 2],
>           ['helo',   6,  5,      5, 5]
>         ]);
>
>        
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/hhGiwR-FWRsJ.
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