Hi All,

I created a column chart and it's not showing in IE but it shows in Chrome 
and Firefox.  I've done this before and it worked in IE but not this time. 
 Any ideas?

Here's the error message:
Webpage error details

*Message: 'dataValues[...].0' is null or not an object*
*Line: 714*
*Char: 3*
*Code: 0*
*URI: http://isaac.issharepoint.com/Shared%20Documents/ReportDashboard.aspx*


Here's the site

http://isaac.issharepoint.com/Shared%20Documents/ReportDashboard.aspx

Here's my code

*<script type="text/javascript">*
*//The Google Visualization library implements several classes and methods 
that you'll need to manipulate all charts*
*google.load("visualization", "1", {packages:["corechart"]});*

*_spBodyOnLoadFunctionNames.push("buildColumnChartFunc");*

*function buildColumnChartFunc()*
*{*
* var Total = 0;*
* var under30 = 0;*
* var dataValues = [*
* ['Oct', 0, 0],*
* ['Nov', 0, 0],*
* ['Dec', 0, 0],*
* ['Jan', 0, 0],*
* ['Feb', 0, 0],*
* ['Mar', 0, 0],*
* ['Apr', 0, 0],*
* ['May', 0, 0],*
* ['Jun', 0, 0],*
* ['Jul', 0, 0],*
* ['Aug', 0, 0],*
* ['Sep', 0, 0],*
* ];*
* var data = new google.visualization.DataTable();*
* data.addColumn('string', 'Month');*
* data.addColumn('number', 'Total');*
* data.addColumn('number', 'Over 30');*
* //Get Fiscal Year*
* var fiscalYear = (new Date).getFullYear();*
* var prevYear = fiscalYear - 1;*
* var beginFY = prevYear + "-10-01";//2013-10-01*
* var endFY = fiscalYear + "-09-30";//2013-09-30*
* <!-- Step 2 - Prepare your data --> *
*$().SPServices({*
*    operation: "GetListItems",*
*    async: false,*
*    listName: "Log",*
* CAMLViewFields: "<ViewFields><FieldRef 
Name='AssignToAnalyst'></FieldRef><FieldRef 
Name='Days'></FieldRef></ViewFields>",*
* //CAMLRowLimit: 0,*
*    completefunc: function (xData, Status) {*
*      $(xData.responseXML).SPFilterNode("z:row").each(function() { *
*  var monthProjectedIndex = 
fyMonthIndex($(this).attr("ows_AssignToAnalyst"));*
*  dataValues[monthProjectedIndex][1]++;*
*  //alert("Days: "+valSplit($(this).attr("ows_Days")));*
 
*  if (valSplit($(this).attr("ows_Days")) > 30)*
*  {*
* //alert("Over 30");*
* dataValues[monthProjectedIndex][2]++;*
*  }*
 
*      });*
*     }*
*  });*
 * $.each (dataValues, function(index, value) {*
* data.addRow([dataValues[index][0], dataValues[index][1], 
dataValues[index][2]]);*
*});*
*<!-- Customize your chart using Options -->*
*      var options = {*
*          title: 'Days',*
*          hAxis:  {title: 'Month', titleTextStyle: {color: 'red'}}*
*        }; *

*<!-- Instantiate the Chart class -->*
*      var chart = new 
google.visualization.ColumnChart(document.getElementById('chart_div')); *

*<!-- Call chart.draw() function, passing in 'data' and 'options' --> *
*        chart.draw(data, options);  *
*}*

*</script>*
*<table>*
* <tr><td><div id="chart_div" style="width: 650px; height: 
400px;"></div></td></tr>*
*</table>*

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