1.7976931348623157E308 is the largest representable floating point number in javascript. Assuming (and this could be a whopper of an assumption) that the charts render faster when dealing with Integers rather than floats, the largest value for "fast" rendering would be 2147483647. That is entirely speculative on my part. I have no special knowledge or experience to back up the claim.
On Monday, June 4, 2012 9:51:45 AM UTC-4, Bassa Safa wrote: > > Hi Jinji, > > and thank you for your reply. Do you suggest any particular maximum > value to avoid? > > best regards > bassa > > On Jun 3, 5:20 pm, Jinji <[email protected]> wrote: > > I don't have anything special to suggest, just that you should avoid > such > > high numbers, that cause the Javascript engine to choke. > > > > > > > > > > > > > > > > On Sat, Jun 2, 2012 at 6:44 PM, Bassa Safa <[email protected]> > wrote: > > > Hi all, > > > > > I'm trying to initialize a LineChart with JSON-data. However one of > > > the data-cell has an abnormal high value... its 1.7976931348623157 > > > E308. This browser is unable to process and format the data and after > > > a while firefox ask me if I would like to stop the script. Now to my > > > questions. Does LineChart have a maximum number for a number column? > > > Or is it the javascript language that sets up the limitations? How > > > could I denote that the maximum number should be used? Is there a way > > > to denote that the infinite number should be used? > > > > > my code: > > > > > var formatterPercent = new google.visualization.NumberFormat({pattern: > > > '##.##%'}); > > > var formatterDate = new google.visualization.DateFormat({pattern: > > > 'yyyy-MM-dd'}); > > > > > var grundJsonData2 = <h:outputText value="#{historiskanalys.json}" > > > escape="false"/>; > > > var data2 = new google.visualization.DataTable(grundJsonData2); > > > formatterDate.format(data2, 0); > > > formatterPercent.format(data2, 1); > > > formatterPercent.format(data2, 2); > > > var chartLineChart2 = new google.visualization.ChartWrapper({ > > > 'chartType': 'LineChart', > > > 'containerId': 'chart_div3', > > > 'options': { > > > title: 'Company Performance previous year', > > > vAxis: {format: '##.##%', maxValue: 1, > minValue: > > > -1}, > > > legend: {position: 'bottom'}, > > > pointSize: 1 > > > } > > > }); > > > chartLineChart2.setDataTable(data2); > > > chartLineChart2.draw(); > > > > > Thank you for your time. > > > best regards > > > bassa > > > > > -- > > > 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. -- 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/-/jEeRw9KfgtgJ. 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.
