Flash charts Flex charts WPF & Silverlight charts Flash maps
amCharts The best flash charts *
Home Home
Charts Charts
Download Download
Buy Buy
FAQ FAQ
Documentation Documentation
Support forum Support forum

2009-04-08 New features of Stock chart

Date format for date input fields
You can set custom date format for the period selector date-input fields. This can be done using this setting: <period_selector><date_format>. Note, you can't use "month" here - only "MM".

Custom background image can be loaded
A new setting, <background><file> was added. The file should be placed in the "path" folder.

Get and set status of a chart with JavaScript function
JavaScript functions for getting and setting current status of a chart added: if you call flashMovie.getStatus() function, the chart will return the current status of a chart in a query string, for example:

<code>from=2008-01-01&to=2008-03-05&main=4&comparing=6,3</code>

As you see, it returns the selected period, the id of the main data set and the ids of data sets, selected for comparing. To set this or some other status, you should call:

<code>flashMovie.setStatus("from=2008-01-01&to=2008-03-05&main=4&comparing=6,3");</code>

This is very comfortable when user navigates away from the page and you want to keep the same status when the user comes back.

JavaScript functions are called when main and comparing data sets are changed:
amSelectDataSet(chart_id, did) - called when main data set was changed
amCompareDataSet(chart_id, did) - called when data set for comparing was selected
amUncompareDataSet(chart_id, did) - called when comparing data set was unselected

Vertical legend
A new setting <legend_position> was added. The default value is "top", the other available - "left" and "right". In case you use "left" or "right", you can control the width of the legend with the <legend_width> setting. The default value is 150. Check vertical legend example.

The items in the legend can arranged in the reverse order. 
A new setting, <reverse_order> was added to the chart's legend settings.

The graph can be hidden when the chart is initialized.
If you set <graph><hidden>true</hidden></graph>, the graph will be hidden when the chart is first loaded. Check this example to see this in action.

Download stock chart


amCharts for WPF RSS feed Subscribe to our RSS feed to be notified about new releases and updates.
<< Previous | All news | Next >>
© amCharts | About us | Contact and feedback: info@amcharts.com Subscribe to amcharts news feed by e-mail or RSS reader Follow amCharts on Twitter * many people say so ;)