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