AnsweredAssumed Answered

How do I add X-Axis labels to graph in PopupTemplate?

Question asked by NMWRRI on Mar 24, 2016

I have a column chart that shows up with values from my Field Attributes on the Y-Axis every time I click in the pop-up. Is there a way to display the X-Axis labels or would I have to go around and create a chart in my code? If that is the case, how to I link them? Thanks in advance!

 

var WPRinpopup = new PopupTemplate({

  title: "{NAME} Water Planning Region Average Estimated Precipitation",

  description: "Graph below depicts avereage estimated yearly values of Precipitation in {NAME} Water Planning Region. <

  fieldInfos: [

  {fieldName: "F2004", label: "2004", },

  {fieldName: "F2005", label: "2005", },

  {fieldName: "F2006", label: "2006", },

  {fieldName: "F2007", label: "2007", },

  {fieldName: "F2008", label: "2008", },

  {fieldName: "F2009", label: "2009", },

  {fieldName: "F2010", label: "2010", },

  {fieldName: "F2011", label: "2011", },

  {fieldName: "F2012", label: "2012", },

  {fieldName: "F2013", label: "2013", }

  ],

 

  mediaInfos:[{

  caption: "Maximize Popup Window to view Graph.",

  type: "columnchart",

  value:{

  theme: "Julie",

  fields:[ "F2004", "F2005", "F2006", "F2007", "F2008",

  "F2009", "F2010", "F2011", "F2012", "F2013"]

  }

  }]

 

 

  });

Outcomes