mediaInfo

Defines an image or a chart to be displayed in a pop-up window. See popupInfo to learn more about where and how to use this object.

Properties

Property

Details

caption

A string caption describing the media. This can contain a field name enclosed in {}, such as {IMAGECAPTION}.

title

A string title for the media. This can contain a field name enclosed in {}, such as {IMAGETITLE}.

type

A string defining the type of media. This can be one of the following: image | barchart | columnchart | linechart | piechart

value

A value object containing information about how the image should be retrieved or how the chart should be constructed.

Example

This example shows two mediaInfo objects in an array. The first defines an image and the second defines a column chart.

"mediaInfos": [
            {
              "title": "A picture of this thing",
              "type": "image",
              "caption": "{IMAGEDESC}",
              "value": {
                "sourceURL": "{IMAGEURL}",
                "linkURL": "{INFOURL}"
              }
            },
            {
              "title": "Number of \"Likes\"",
              "type": "columnchart",
              "caption": "Number of users who \"Liked\" this thing on our web site from 2008 - 2011.",
              "value": {
                "fields": [
                  "LIKES2008",
                  "LIKES2009",
                  "LIKES2010",
                  "LIKES2011"
                ],
                "normalizeField": null
              }
            }
          ]
12/11/2012