value
The value object contains information for pop-up windows about how images should be retrieved or charts constructed. For more context on how this object is used, see mediaInfo and popupInfo.
Properties
Property | Details |
---|---|
fields | Used with charts. An array of strings, with each string containing the name of a field to display in the chart. |
linkURL | Used with images. A string containing a URL to be launched in a browser when a user clicks the image. |
normalizeField | Used with charts. An optional string containing the name of a field. The values of all fields in the chart will be normalized (divided) by the value of this field. |
sourceURL | Used with images. A string containing the URL to the image. |
Example
This example shows the use of the value object in two different mediaInfo objects: an image and a 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
}
}
]