var att = f.attributes; var TOTAL2K = parseInt(att.TOTAL2K); var WHITE2K = parseInt(att.WHITE2K); var HISPAN2K = parseInt(att.HISPAN2K); var BLACK2K = parseInt(att.BLACK2K); var AM_IND2K = parseInt(att.AM_IND2K); var ASIAN2K = parseInt(att.ASIAN2K); var PAC_ISLAND2K = parseInt(att.PAC_ISLAND2K); var OTHER2K = parseInt(att.OTHER2K); WHITE2K = (WHITE2K / TOTAL2K) * 100; BLACK2K = (BLACK2K / TOTAL2K) * 100; HISPAN2K = (HISPAN2K / TOTAL2K) * 100; AM_IND2K = (AM_IND2K / TOTAL2K) * 100; ASIAN2K = (ASIAN2K / TOTAL2K) * 100; PAC_ISLAND2K = (PAC_ISLAND2K / TOTAL2K) * 100; OTHER2K = (OTHER2K / TOTAL2K) * 100; var chart = { content:"<div style='width:260px; height:155px;'><b>Total 2000 Census Block Population is " + TOTAL2K + ".</b><br />The ethnicity breakdown is as follows. <br />" + "<img src='http://chart.apis.google.com/chart?chco=92BF23,cc0000&chf=c,s,EFEFEF00&cht=p3&chs=260x130&chd=t:" + WHITE2K + "," + BLACK2K + "," +HISPAN2K+","+ AM_IND2K + "," + ASIAN2K + "," + PAC_ISLAND2K + "," + OTHER2K + "&chdl=White (" + Math.round(WHITE2K)+"%)|Black (" + Math.round(BLACK2K)+"%)|Hispanic (" + Math.round(HISPAN2K)+"%)|Am Ind (" + Math.round(AM_IND2K)+"%)|Asian (" + Math.round(ASIAN2K)+"%)|Pac Isl (" + Math.round(PAC_ISLAND2K)+"%)|Other (" + Math.round(OTHER2K)+"%)' /></div>" }; return chart.content;
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.