The data you did not provide is that the column type is string.This has
nothing to do with the variable assignment. It would also fail if you wrote:
data.setCell(0, 0, 100) when the column type is string.

Moreover - when you do it, you get a javasript error with a clear
description of mismatch type, with the type of the column, and the actual
value.
Again I recommend using javascript debugging tools (Firefox Firebug) for
development.

VizGuy


On Mon, Nov 17, 2008 at 4:40 PM, p00kie <[EMAIL PROTECTED]> wrote:

>
> It does not work..
>
> The solution was pointed out to me - you need to typecast the
> variable.
>
> var x = 5;
> data.setcell(0, 0, String(x));
>
>
>
> On Nov 15, 4:38 pm, VizGuy <[EMAIL PROTECTED]> wrote:
> > It is possible, and works well.
> >
> > If it doesn't work for you, please provide more info.
> >
> > VizGuy
> >
> > On Fri, Nov 14, 2008 at 9:43 PM, p00kie <[EMAIL PROTECTED]> wrote:
> >
> > > is this possible?
> >
> > >    534                         var x = 5;
> > >    535                         data.setCell(0, 0, x);
> >
> > > does not seem to work.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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