I can suggest the following hack that might solve your problem. Add the
following script tag after the prototype library was initialized:

<script type="text/javascript">
  Array.prototype.reduce = undefined;
</script>

I can't guarantee that it will solve the problem completely but as far as I
saw, the charts renders as expected.

  Viz Kid

On Thu, Aug 12, 2010 at 12:18 PM, ynot <[email protected]> wrote:

> Hi,
>
> thanks for reporting on this issue.
> Indeed, I also use the Prototype framework. But I can't update the
> prototype version as it is implemented in our PHP framework.
> So any help on fixing the bug in the jsapi would be good.
>
> Thanks
> ynot
>
> On 11 Aug., 21:58, Viz Kid <[email protected]> wrote:
> > Hi guys.
> >
> > A new version of jsapi was just
> > released<
> http://code.google.com/apis/visualization/documentation/release_notes..
> .>the
> > other day so indeed the change must have happened on our side. We have
> > a
> > release candidate running usually for one week prior to releasing a new
> > version to prevent these cases but it does not always work - no one
> reported
> > on this error in the past week.
> >
> > I'm happy that the new version of the Prototype Javascript framework
> solves
> > the problem. We will try to see if we can resolve this issue in a
> one-sided
> > manner without the need for changing the users server/code. We will send
> an
> > update if something new will be found.
> >
> > Best,
> >   Viz Kid
> >
> > On Wed, Aug 11, 2010 at 10:48 PM, gforce <[email protected]> wrote:
> > > I confirm, there seems to be a conflict in between prototype librairie
> > > and jsapi
> >
> > > But then again it used to work and my prototype librairie haven't
> > > changed, so i guess google changed something in jsapi.
> > > // Prototype JavaScript framework, version 1.6.0.1
> >
> > > Anyway, i made a small test with another prototype version and no more
> > > error.  But then again updating prototype librairie on my server might
> > > cause some more errors.
> > > //  Prototype JavaScript framework, version 1.7_rc2
> >
> > > Please keep us updated Viz Kid
> >
> > > Thx
> >
> > > G
> >
> > > On Aug 11, 3:30 pm, Beto <[email protected]> wrote:
> > > > This is like Gabriel said.
> >
> > > > On 11 ago, 15:22, Viz Kid <[email protected]> wrote:
> >
> > > > > Thank you very much for the example!
> >
> > > > > It seems that there is one specific script tag that causes the
> > > problems.
> > > > > However, since it is obfuscated, I'm not sure what this script is.
> > > > > Can you elaborate what this script is about?
> > > > > <script src="
> > >http://siga.inep.gov.br/SIGA/a4j/g/3_3_1.GAorg.ajax4jsf.javascript.Pr.
> ..
> > > > > " type="text/javascript"></script>
> >
> > > > > Here is the short example which also demonstrates the error:
> > > > > <html>
> > > > > <head>
> > > > > <script src="
> > >http://siga.inep.gov.br/SIGA/a4j/g/3_3_1.GAorg.ajax4jsf.javascript.Pr.
> ..
> > > > > "
> > > > > type="text/javascript"></script>
> > > > > <script type="text/javascript" src="http://www.google.com/jsapi
> > > "></script>
> > > > > <script type="text/javascript">
> > > > >   google.load('visualization', '1', {language : 'pt-BR',  packages:
> > > > > ['geomap','gauge','corechart', 'imagelinechart', 'imagepiechart'
> ]});
> > > > > </script>
> > > > > </head>
> > > > > <body>
> > > > > <script type="text/javascript">
> > > > >   google.setOnLoadCallback(drawChartDia);
> > > > >   function drawChartDia() {
> > > > >     var data = new google.visualization.DataTable();
> > > > >     data.addColumn('string', 'Dia');
> > > > >     data.addColumn('number', 'Total');
> > > > >     data.addRows([['abc', 5], ['def', 6]]);
> > > > >     var chart = new
> > > > > google.visualization.LineChart(document.getElementById('dia'));
> > > > >     chart.draw(data, {width: 670, height: 140, legend: 'none'
> > > > > ,colors:['red','black']});
> > > > >   }
> > > > > </script>
> > > > > <div style="min-height:145px;max-height:145px;">
> > > > >   <div id="dia" style="height: 140px; width: 430px; position:
> > > > > relative;margin-left:-10px;"></div>
> > > > > </div>
> > > > > </body>
> > > > > </html>
> >
> > > > > Thanks,
> > > > >   Viz Kid
> >
> > > > > On Wed, Aug 11, 2010 at 8:49 PM, gforce <[email protected]>
> > > wrote:
> > > > > > I also have the same problem since yesterday, exact same error
> for
> > > > > > BarChart and some other error with PieChart ( b[o] is undefined )
> >
> > > > > > My website is hosted as a ruby on rail application,  I tried a
> few
> > > > > > different browsers with the same results.
> > > > > > Then I took my chart scripts and ran them locally from plain html
> > > > > > using apache as host and it worked.
> > > > > > There was modifications to the website in between the time when
> it
> > > was
> > > > > > working and yesterday ( when it stopped working ) but even after
> > > > > > reverting to the old version of the website, the error message
> still
> > > > > > persist.
> >
> > > > > > I'll send an example when i can.
> >
> > > > > > G
> >
> > > > > > On Aug 11, 11:15 am, Viz Kid <[email protected]> wrote:
> > > > > > > Can you provide an example which can reproduce this problem?
> >
> > > > > > > Thanks
> > > > > > >   Viz Kid
> >
> > > > > > > On Wed, Aug 11, 2010 at 5:47 PM, Gabriel Viragine <
> > > > > > [email protected]
> >
> > > > > > > > wrote:
> > > > > > > > Hi,  I'm having the same problem ;-(
> >
> > > > > > > > Gabriel.
> >
> > > > > > > > On 11 ago, 11:14, ynot <[email protected]> wrote:
> > > > > > > > > Hi all,
> >
> > > > > > > > > I'm using Visualisation API. Unfortunatly I can't insert
> the
> > > > > > > > > Javascripts in the Header of the page. Anyway since this
> > > morning I
> > > > > > > > > keep getting this error:
> >
> > > > > > > > > Assertion failed: bucket size must be a non-negative number
> >
> > > > > > > > > I checked all of code.google.com but can't find any
> > > information or
> > > > > > > > > clues of this. If I take all the code regarding
> Visualisation
> > > API and
> > > > > > > > > insert into an example app everything's fine. I also tried
> to
> > > erase
> > > > > > > > > all other javascripts without success.
> >
> > > > > > > > > I would be thankful for any help
> >
> > > > > > > > --
> > > > > > > > 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]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> > > <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> >
> > > > > > <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> > > <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> >
> > > > > > > > .
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/google-visualization-api?hl=en
> .
> >
> > > > > > --
> > > > > > 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]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> > > <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> >
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-visualization-api?hl=en.
> >
> > > --
> > > 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]<google-visualization-api%[email protected]>
> <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-visualization-api?hl=en.
>
> --
> 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]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

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