The value object contains information for popup windows about how images should be retrieved or charts constructed.
Referenced by: mediaInfo
Properties
Property | Details |
---|---|
colors[] | Used with charts. An optional array of colors where each color sequentially corresponds to a field in the fields property. When the value for mediaInfo.type is linechart , the first color in the array will drive the line color. If colors is longer than fields , unmatched colors are ignored. If colors is shorter than fields or colors isn't specified, a default color ramp is applied. |
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. |
tooltipField | String value indicating the tooltip for a chart specified from another field. This field is needed when related records are not used. It is used for showing tooltips from another field in the same layer or related layer/table. |
Example
{
"fields": [
"Population2010",
"Population2020"
],
"colors": [
[
237,
81,
81,
255
],
[
20,
158,
206,
255
]
]
}