var params = dojo.mixin({ chf:"bg,s,FFFFFF50", chs:wd + "x" + ht, chd: "t:" + white + "," + black + "," + hispanic + "," + asian + "," + other }, chartParams);
var params = dojo.mixin({ chf: "a,s,000000CD", chbh:"a,4,2", chds:"0,20", chxr:"0,0,20", cht: "bvg", chs:"275x110", chxt: +SAMPLEDATE +"," +NO3NO2, chxl:"0:|2004|2005|2006|2007|2008|2009", chd:"t1:" +NO3NO2, chco:"A2C180,3D7930", chtt:"Water+Quality+Data", } /* should contain a value right here */ );
function addToMap(idResults, evt){ var chart_html = []; for (var i = 0, il = idResults.length; i < il; i++) { var idResult = idResults; if (idResult.layerId === 0) { var feature, attributes, NO3NO2, SAMPLEDATE, graphics; feature = idResult.feature; attributes = feature.attributes; NO3NO2 = parseFloat(attributes.NO3NO2); var params = dojo.mixin({ chf: "a,s,000000CD", chbh:"a,4,2", chds:"0,20", chxr:"0,0,20", cht: "bvg", chs:"275x110", chxt: +SAMPLEDATE +"," +NO3NO2, chxl:"0:|2004|2005|2006|2007|2008|2009", chd:"t1:" +NO3NO2, chco:"A2C180,3D7930", chtt:"Water+Quality+Data", }); //create symbol for selected features on the map var mySymbol = new esri.symbol.SimpleMarkerSymbol(); mySymbol.setStyle(esri.symbol.SimpleMarkerSymbol.S TYLE_SQUARE); mySymbol.setSize(10); mySymbol.setColor(new dojo.Color([255,255,0,0.5])); feature.setSymbol(mySymbol); map.graphics.add(feature); map.infoWindow.setTitle("NO3NO2") console.log(NO3NO2); chart_html.push("<img src='" + "http://chart.apis.google.com/chart?" + decodeURIComponent(dojo.objectToQuery(params)) + ' />" ); } map.infoWindow.setContent(chart_html.join('<hr />')) map.infoWindow.show(map.toScreen(identifyParams.geometry) , map.getInfoWindowAnchor(map.toScreen(identifyParams.geometry))); } }