AnsweredAssumed Answered

Incorporating graphs into eSearch Widget results

Question asked by jbridwell_Dewberry on Aug 6, 2018
Latest reply on Aug 6, 2018 by rscheitlin

I am using Robert's eSearch Widget to bring in some ACS census data in certain areas. Graphically, it displays the results like this: 

 

Lets say I wanted to display the race results as a pie graph. I can easily use `(Math.floor((Total Pop/RacialGroup) * 100).toFixed(1) + "%"); ` or something like that to get the percentage> I have no idea how I could create and insert a small pie graph in the Results under Race to display. Currently, I am using the following to display the results in the widget.js. 

 

thisVar.featLayerTracker +=layerConfig.Label.Population + ": " + sumPOP + "<br>";

 So, I am thinking that I need to perhaps look to layerConfig inthe config_eSearch.json perhaps to set something like this up. Any ideas or suggestions?

Outcomes