I'm not familiar with the Image Charts format, so I can't help much there, 
but if you could give some more detail about what you are trying to 
accomplish with the loop, I can probably help with that. 

I'm not sure why you are doing this, but it might be the cause of your 
problems:

var labelString = [suffix, color, index, allbars, fontSize];

...

labelString = labelString + '|' + [suffix, color, index, allbars, fontSize];


You are adding a string to an array and then adding another array, which in 
Javascript, gives you a string, not an array.  Ex:

var a = [0, 1, 2];
var b = [9, 8, 7];
var c = a + '|' + b; // => "1,2,3|9,8,7"

Maybe this is what you actually wanted, but the labelstring.join(',') call 
after the loop makes me think not.

On Friday, March 23, 2012 1:34:28 PM UTC-4, Carmen S wrote:
>
> Hello!
>
> This is going to seem silly as I have a found a really roundabout way to 
> achieve my goals already, I am wondering now if there is a simpler way.
>
> I have created a set of charts for one of my projects using the Google 
> Code Playground and essentially stapling solutions together from those 
> sources.  I took the Data Resource Request example (data was stored in a 
> spreadsheet already), and then attached it to the Image Bar Chart example 
> as my PM wanted me to add labels to the end of Bar Charts.  I would then 
> save the resulting image and drop them into the document that way.  It was 
> not the most automated process and now it was eaten by the Google Gadget 
> Editor...  I had saved my Frankenstein code in the Google Gadget Editor in 
> iGoogle and it just deleted all of my XML files so I am trying to recreate 
> what I did (however my looping logic is failing to return to me).
>
> Example Chart:  
>
>
> <https://lh4.googleusercontent.com/-eQHllWt9e2g/T2ur-Ca8gyI/AAAAAAAAAAY/nVARsp6YByg/s1600/AGG.png>
> Is there any easier way to achieve this, is there a gadget that can be 
> used?  Or even created?
>
> Alternatively... The solution I did have is about 80% away from being 
> completed (and attached to this post), I am just having a bear of a time 
> with the looping part.  It is just really not clicking for whatever reason 
> this time.  I know I'm close but the Google Code Playground Debugger and I 
> are not friends and I cannot get it to cooperate with me to save my soul (I 
> wish it would!).
>

-- 
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/-/F4IsyjBHZPcJ.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to