After loading the data I have called the following:
alert(data.getNumberOfColumns());
alert(data.getNumberOfRows());
for(var i = 0, j = 0; i < data.getNumberOfRows(); i++) {
alert(data.getFormattedValue(i, j));
alert(data.getFormattedValue(i, j+1));
j = 0;
}
I have 2 columns and 144 rows. The values as I iterate through the data are
all populated. Any ideas?
On Mon, Jun 21, 2010 at 2:36 PM, nlraley <[email protected]> wrote:
> Okay, the date is appearing to be set correctly now.
>
> Instead of calling setValue I used setFormattedValue.
>
> However, it finishes running that and the table loads up with no data
> once again. Any ideas?
>
> On Jun 21, 11:17 am, Nathan Raley <[email protected]> wrote:
> > I'm new to the google charts api and I've been trying to set up google
> > charts and I'm running into some difficulty.
> >
> > I couldn't find any documentation with regards to creating a connection
> to
> > an sql server and using the query to retrieve the information, so I am
> doing
> > it in a roundabout manner.
> >
> > My page is embedded in a c++ program.
> >
> > I am retrieving the information from the program and storing it into
> arrays
> > in my javascript, which I am then trying to use to create the datatable
> for
> > the google charts api. I am trying to pull the information for just one
> > known set of values at the momment, I actually have several stored, just
> to
> > see if I can get things running, but I'm running into some issues.
> >
> > My program runs, I load my data set in my c++, I call the GetMapChartData
> > function to retrieve the information, then I call initChart which it then
> > fails to perform the google.setOnLoadCallback(drawVisualization());
> >
> > Any ideas what I'm doing wrong? Here's the link:
> http://www.suntransformer.com/peter/GoogleAPI3/test/charts2.html
> >
> > Any advice, recommendations are appreciated and thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Chart API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-chart-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-chart-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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-chart-api?hl=en.