Hello, Google's chart API is new to me. To test it out, I mapped forecasted temperatures using the javascript function provided to encode the data. Consider this code segment.
var myImg = "<img src=\"http://chart.apis.google.com/chart?"; myImg += "chs=450x250&"; // chart size myImg += "cht=bvg&"; // chart type myImg += "chco=4D89D9,C6D9FD&"; // chart colors myImg += "chdl=Low|Hi&" // chart legend myImg += "chxt=x,y&chxl=0:|fr|sa|su|mo|tu|we|&"; // axis label myImg += "chtt=Forcasted|Temporatures|for+New+Haven&"; // chart title var lowTemp = new Array(28,23,33,23,35,31); var hiTemp = new Array (39,38,36,42,39,48); var maxValue = 60; myImg += "chd=s:" + simpleEncode(lowTemp,maxValue); myImg += ","; myImg += simpleEncode(hiTemp,maxValue); myImg += "\" /> "; document.write(myImg); It almost gets me there but the temperature values do not map correctly to y-axis label. For example, Friday's low of 28 seems to map to 47. Strange. Do you see the problem? Thanks for your time and consideration. Sincerely, John PS. for convenience, here is the generated URL. http://chart.apis.google.com/chart?chs=450x250&cht=bvg&chco=4D89D9,C6D9FD&chdl=Low|Hi&chxt=x,y&chxl=0:|fr|sa|su|mo|tu|we|&chtt=Forcasted|Temporatures|for+New+Haven&chd=s:cXiXkg,onlrox --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api?hl=en -~----------~----~----~----~------~----~------~--~---
