
To use SWC files in your Flex projects, you should add them to the project's library path.
| Simple stock chart example | Flex 3 MXML | Flex 4 MXML |
| Add remove panels | Flex 3 MXML | Flex 4 MXML |
| Stock events | Flex 3 MXML | Flex 4 MXML |
| Drawing trend lines | Flex 3 MXML | Flex 4 MXML |
features added to AmCharts bundle v 1.8.3.0 available in this version.
Some minor problems fixed.
Some minor problems fixed.
dataSet property added to StockGraph. You can specify a different data set for each graph now. In case your data set's have different series and you wish to combine these series, set combineSeries to true for this graph.
openField can be used with line/step graph types now to draw range graphs (area between open and close values can be filled with color). In case you'd like to have a different periodValue for your openField values, use openPeriodValue property to set it.
Problem with balloon/label height with new version of Chrome fixed.
firstDayOfWeek property added to AmStockChart class. Default value is 1 (Monday). Set it to 0 if your week starts on Sunday. Calendar view will change, grid on CategoryAxis will be placed on Sunday and data will be grouped into weeks starting from Sunday.
property size added to StockEvent Class. It will influence size of arrowUp and arrowDown bullets.
FIX: dataUpdated event used to fire before all the panels were updated with new data.
Some issues with axis value on chart cursor fixed
Some issues with event positioning fixed.
Some issues with axis value on chart cursor fixed.
Axes of panels can display titles. The following properties were added for this purpose to the AxisBase class: title, titleAlignment, titleTextSize and titleTextColor. Note, in order vertical axis to display the title, you need to embed fonts.
ChartCursor can display value next to value Axis. showValueAxisValue boolean property was added to ChartCursorSettings to enable this.
FIX: when parseDates and equalSpacing properties of CategoryAxis were set to true, labels of Category axis could overlap in some situations.
disableResizing property added to PanelsSettings.
Some issues with min/max calculation when logarithmic scale was used fixed.
FIX: design mode in Flash Builder 4.5 used to break with our component.
"flag" type of stock event can expand now and display more than one letter in it.
compareGraphBalloonText property added to StockGraph. Sets custom balloon text for comparing graphs.
maxColumnWidth style added to AmSerialChart (StockPanel extends this clase). Sets maximum width of columns.
precision property added to ValueAxis. Sets minimum number of decimals which should be displayed near axis' values.
showBulletAt property added to AmGraph (StockGraph extends this class). Specifies at which value (open/close/high/low) bullet should be shown. Valid only for candlestick and ohlc graphs. Event bullets will also be shown on a specified value.
showFirstLabel and showLastLabel properties added to ValueAxesSettings.
ChartCursor can display horizontal line now. Set crosshair property of ChartCursorSettings to true to enable this feature.
New advanced stock events available - text and polygons. With polygons you can create bullets like arrows for buy/sell signals and similar. Check stock events example to see this in action./p>
All the features added to v 1.7.0.0 of amCharts bundle for flex are available in this version of stock chart.
Private to Protected
We changed most of properties and methods from private to protected. If you have sources of our components this will allow extending our components more easily.
A possibility to draw trend lines added. Check drawing trend lines example to see how it works.
You can also display preset trend lines on the chart. StockPanel has new property "trendLines", and methods "addTrendLine" and "removeTrendLine".
usePrefixes added to PanelsSettings. Using it You can set value for all panels at once. If you want this to be set explicitly on some panels, do it directly on a StockPanel.
If a compare list was invisible in DataSetSelector, the extra empty space appeared below a dropdown. We fixed this problem in this version.
Performance when working with multiple data sets was increased.
Time (not date) input field in PeriodSelector wasn't reacting if time was changed in it.
This is important update!
Some changes which might affect previous behavior were made in this version, read the following carefully.
AmLegend Class no longer extends Canvas, it extends UIComponent instead. This means that AmLegend doesn't support styles/properties/methods specific to Canvas anymore. It still has styles backgroundColor, backgroundAlpha, borderColor and borderAlpha. This change might cause error on your application if you used Canvas specific styles or properties. If you need them anyway, you can always put our legend into Canvas container.
Bug fixes:
sometimes zoomed event was fired multiple times.
when data sets were compared, and size of a window changed, the chart changed base date.
when recalculateToPercents was set to "always", the legend still displayed absolute values
limitToAvailableDates property added to PeriodSelector, default value is true. If false, the period selector calendars will allow selecting dates which are out of data providers range.
changed event added to PeriodSelector
Some minor bugs fixed.
Fix: when compiling application with SDK 4, checkboxes in list and combobox were not colored.
showOnAxis property added to StockEvent. Allows placing events on category axis instead of the graph.
compareGraphVisibleInLegend property added to StockGraph.
url and urlTarget properties added to StockEvent.
milliseconds in category balloon can be displayed (use fff String, for example: chartCursorSettings.categoryBalloonDateFormats="{[{period:'fff', format:'JJ:NN:SS.fff'}]}").
lineThickness of graph will also affect high and low lines of Candlesticks.
showBalloonAt property added to AmGraph. In case your graph's type is candlestick or OHLC, you can set where value balloon should appear. Default value is "close", other options are "open", "high" and "low".
Some other minor bugs fixed.
Some minor bugs fixed.