Thanks.  That fixed it.  Since I was mostly working in php there isn't a 
difference there.  Thanks agian.

On Tuesday, July 30, 2013 2:32:45 PM UTC-4, asgallant wrote:
>
> You are entering your numbers as strings.  You need to enter them as 
> numbers, eg:
>
> data.addRows([
>     ['2012', '761239.81132075' ],
>     //...
> ]);
>
> should be:
>
> data.addRows([
>     [2012, 761239.81132075],
>     //...
> ]);
>
> On Tuesday, July 30, 2013 1:56:28 PM UTC-4, Hal Lamster wrote:
>>
>> I have a php file that generates the following, but I get nothing 
>> displayed.  Anyone see what I goofed up?  Thanks/Hal
>> <html> <head> <!--Load the AJAX API--> <script type="text/javascript" src
>> ="https://www.google.com/jsapi";></script> <script type="text/javascript"> // 
>> Load the Visualization API and the piechart package. 
>> google.load('visualization', 
>> '1.0', {'packages':['corechart']});  // Set a callback to run when the 
>> Google Visualization API is loaded. google.setOnLoadCallback(drawChart); // 
>> Callback that creates and populates a data table, // instantiates the 
>> pie chart, passes in the data and // draws it.  function drawChart() { // 
>> Create the data table. var 
>> data = new google.visualization.DataTable(); data.addColumn('number', 
>> 'Year'); data.addColumn('number', 'Assets'); data.addRows([['2012', 
>> '761239.81132075' ],['2013', '707636.74681604' ],['2014', 
>> '649653.960606' ],['2015', '586010.31419338' ],['2016', '516242.3245408' 
>> ],['2017', '439930.02699688' ],['2018', '356644.1047416' ],['2019', 
>> '265875.75174402' ],['2020', '167148.7133953' ],['2021', 
>> '59917.699228605' ],['2022', '-56390.41369516' ],['2023', 
>> '-182373.08745055' ],['2024', '-318672.42575207' ],['2025', 
>> '-465971.57750105' ],['2026', '-624950.91354914' ],['2027', 
>> '-796369.20312719' ],['2028', '-981021.63945144' ],['2029', 
>> '-1179755.6154716' ],['2030', '-1393465.3147053' ],['2031', 
>> '-1623056.3037761' ],['2032', '-1869500.0326493' ],['2033', 
>> '-2133843.9392018' ],['2034', '-2417203.1109602' ],['2035', 
>> '-2720662.1855132' ],['2036', '-3045432.4922584' ] ]);  // Set chart 
>> options var options = {'title':'Chart1', 'width':400, 'height':300};  // 
>> Instantiate and draw our chart, passing in some options. var chart = new 
>> google.visualization.BarChart(document.getElementById('chart_div')); 
>> chart.draw(data, 
>> options); } </script> </head>  <body> <!--Div that will hold the pie 
>> chart--> <div id="chart_div"></div> </body> </html>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to