Flex Component: How it works
Introduction
AnyChart Stock Flex version can be used in Flex Builder 3 and Flash Builder 4.
Flex version is configured using the same XML format, which is used to configure SWF based version, and it has the full-featured API to work with chart and events it generates.
Basics
AnyChart Stock for Flex is somewhat different from usual Flex components: it is configured using its own special XML format - not MXML. You can learn about this XML format and how to work with it at:
XML config for the component can be set in two ways: using XML variable or external XML settings file, as it is shown on illustration below.
- config property - XML variable with settings can be assigned to this property.
- xmlFile property - URL of the file with XML config can be set to this property, component will load its content.
Simple project that uses this config property can be found here:
Component configuration
To configure the component properly you need to know AnyStock XML format, here is a short list of resources you need study:
- Working with Data - creating data sources, configuring series, grouping and data compression.
- Chart Settings, Layout and Appearance - working with chart panels, axes, timeline and so on.
- Series Types and Settings - series configuration and tuning.
- Legend - working with legend.
- Tooltips - setting tooltips for series and technical indicators.
- Technical Indicators - adding technical indicators to the charts.
- Event Markers - using event markers.
- Scroller - configuration of scroller, a fast way to navigate through the data.
- Range Selector - setting visible range and configuring range selector.
- Number Formatting - how to format built-in values and tokens.
- Date-Time Formatting - how to format date time data and tokens.
- Adaptive Date-Time Formatting - altering format depending on the data grouping.
- Localization - localizing charts and date time standards.