popupElement media

Configures media in popup elements.

Referenced by: popupElement

Properties

Property Details
mediaInfos An array of mediaInfo objects representing an image or chart for display. If no mediaInfos property is provided, the popupElement will display whatever is specified in the popupInfo.mediaInfos property.
type Type: String
Valid value of this property media

Additional information

Each popupElement has a type property. This string value indicates the type of popupElement used.

popupElement media imag Example

{
  "mediaInfos": [
    {
      "type": "image",
      "title": "<div><p style='font-weight:bold;'><span>Image</span></p></div>",
      "caption": "<div><p><span>californiaa flag</span></p><p><span /></p></div>",
      "value": {
        "sourceURL": "http://www.50states.com/flag/image/nunst0006.gif"
      }
    }
  ],
  "type": "media"
}

popupElement media chart Example

{
  "mediaInfos": [
    {
      "type": "columnchart",
      "title": "<div><p style='font-weight:bold;'><span>Chart</span></p></div>",
      "caption": "<div><p><span style=\"color:#DF73FF;\">This shows Rotation and size.</span></p></div>",
      "value": {
        "fields": [
          "rotation",
          "size"
        ]
      }
    }
  ],
  "type": "media"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.