This namespace is maintained for legacy implementations only (not using web components). New implementations should use functionality included in the web components (stxUI.js)
Lets users pick a local timezone for display on the xaxis of charts. Creates a menu structure which can be used to provide a user with timezone selection First level tier is the region. Each region has an array of cities. If the array is empty then no cities are available for that region. The timezone should be reconstructed as region/city. For instance, "America/New_York". Or for regions without cities simply "Iran". The reconstructed value can then be passed into stxx.setTimeZone();
<static> timeZoneMap :Object
The comprehensive list of timezones can be overwhelming. This is a reduced list that provides just a single entry for each valid timezone. Each entry maps back to a valid stxTimeZoneData.js entry.
<static> initialize( [initialTimeZone] [, cb])
Initialize the time zone manager with a prior saved timezone (initialTimeZone) and a callback mechanism for saving the timezone. Call this function when you initialize your UI.
Name Type Argument Description
Default timezone to use
Callback function to store a different timezone that the user might pick through the menu fc(string)
Populates the timezone dialog. This generates a list from STX.TimeZoneWidget.timeZoneMap. Generally this method is called when the menu is enabled.
Removes the time zone from registered charts, and also from the attached storage mechanism.
Selects a time zone and enables it in all registered charts.
Name Type Description
A valid time zone