Event Historical Chart Widget
The Event Historical Chart Widget is used to show the historical data of a calendar event as a chart.
- Demo
- HTML (basic)
- HTML (advanced)
Parameters
To learn how to set the widget parameters dynamically, please read this.
event-id
Required.
The recurrent event ID. It can be retrieved using the Economic Calendar API.
Examples
5e5f6e2f-7e6f-404e-bd1a-456558f0de11
- Gross Domestic Product (MoM) - UK9cdf56fd-99e4-4026-aa99-2b6c0ca92811
- Nonfarm Payrolls - US
culture
Optional.
Sets the language in which the widget should be displayed. The language codes can be found here.
Default: en
(English)
timezone-offset
Optional.
Sets the timezone in which the dates and times should be displayed, represented as the time zone difference (in minutes), from the desired timezone to UTC. Please see a list of all timezones, here.
Default: 0
(Coordinated Universal Time - UTC+00:00)
caution
The time-zone offset is the difference, in minutes, from the desired time to UTC. Note that this means that the offset is positive if the local timezone is behind UTC and negative if it is ahead.
For example, for time zone UTC+10:00 (Australian Eastern Standard Time, Vladivostok Time, Chamorro Standard Time), -600
will be correct parameter value.
Usage
zoomable
Optional.
It defines whether the chart should be zoomable (mouse-scroll and zoom-in & zoom-out buttons). If the window width is less than 768 pixels, it is always false
.
Default: true
allow-download
Optional.
It defines whether the widget should allow the download of an SVG or PNG image of the chart. If the window width is less than 768 pixels, it is always false
.
Default: true