Help with pie charts in pop ups?

277
0
05-24-2019 06:31 AM
DaronNichols
New Contributor III

I'm new to using the ArcGIS API for Javascript so I've been working through ESRI's official tutorial. I'm currently stuck on the popups tutorial, specifically the challenge to insert a pie chart. I cannot get the pie chart to show up at all, its title comes through just fine, and the table above it comes through fine, but never any pie chart. I've made sure the fields in the pie chart are included in the outFields: list, but still nothing. If anyone has any helpful advice it would be greatly appreciated.

Here is the code I'm using.

{
type:"media",
   mediaInfos: [
      {
         title: "<b>Count by type</b>",
         type: "pie-chart",
         caption: "",
         value: {
            fields: ["TOTAL_GOOD","TOTAL_POOR"],
            normalizeField: null,
            tooltipField: "Rating"
                    }
      }
      ]
}
Tags (1)
0 Kudos
0 Replies