Archive for December, 2008

Map of Denmark added

Monday, December 22nd, 2008

Map of Denmark was added to amMap package.

amMap v 2.2.1 released

Monday, December 22nd, 2008

New features:

JavaScript function setSettings(settings, rebuild) added.

JavaScript function getSettings() added.

JavaScript functions are cued now – previously you could call one JS function at time and call another only after the map finished the previous process. Now, you can call several functions one after another, without waiting for the map to finish doing something. The functions are cued and all of them will be executed.

New JavaScript function amProcessCompleted(chart_id, process) added. This function is called after some process initialized by some JS function is finished. For example, if you make the map to reload data by calling reloadData function, after the data is reloaded, the chart will call amProcessCompleted unction and the “process” parameter will be “reloadData” – the same as the unction name you called. 

JavaScript function amError(chart_id, message) is called if the error, such as file not found occurs.

JavaScript function amReturnImageData(chart_id, data) is called when the chart finishes collecting image data when exporting the map as an image.

Fixes:
<object_list><color_hover> and <object_list><color_selected> settings are accepted.

Map no longer flickers on setData(data) function.

When <redraw> was set to true, the lines of higher then the top level disappeared when the window was resized.

Stock chart v 1.1.2.0 released

Thursday, December 18th, 2008

New features in this version:

Background under y axis values
A couple of new settings, <bg_alpha> and <bg_color> were added to the values’ settings of the chart’s y axes. They allow you to have a background under the y axis values, like in this example.

Units for the y axes
Units, such as $, USD or any other can be added to the left or right side of the y axis values. <unit> and <unit_position> settings were added for this purpose.

Trailing zeros for y axes values
You can se the minimum number of digits which will be displayed after decimal for the y axis values. If there will be less digits then specified, the trailing zeros will be added. This is useful if your chart displays prices. A new group, <digits_after_decimal> was added for <chart><values><y_left> and <chart><values><y_right> for this purpose.

Trailing zeros for the legend values
The same as with the y axes values – you can set the minimum number of digits after decimal separately for each graph. A new group, <digits_after_decimal> was added for <chart><graphs><graph><legend> for this purpose.

Line and step line can display gaps if data is missing
A new setting, <connect> was added for the graph settings. If you have some data missing, and this setting is set to false, the graph will display gap for the dates with missing data.

Scrollbar can also display gaps
The graph of a scrollbar can also show gaps if data is missing. The same setting, <connect> was added for the <scroller>.

Date format for the events
a new setting, <events> was added to <date_formats> setting group. It allows you to set how the date should be displayed in the balloon, which is shown when you roll-over the event bullet.

JavaScript functions are cued now
Previously, you could call one JS function at a time and call another only after the chart finished the previous process. Now, you can call several functions one after another, without waiting for the chart to finish  doing something. The functions are cued and all of them will be executed.

New JavaScript function amProcessCompleted(chart_id, process) This function is called after some process triggered by some JavaScript function is finished. For example, if you make the chart to reload data by calling reloadData function, after the data is reloaded, the chart will call amProcessCompleted function and the “process” parameter will be “reloadData” – the same as the function name you called.

Fixes in this version:

The first data set was always selected as main, even the <main_drop_down selected=”true”></main_drop_down> was set for some other data set. 

Events, hidden with JavaScript appeared again after scrolling.

When the empty data was passed with setData(data) JS function, the chart didn’t display the “no data” message.

New features in 1.1.1.0:

“From” and “to” dates can be set in data file
You can set custom “from” and “to” dates now in:
<period_selector>
  <from></from>
  <to></to>
</period_selector>

Dashed horizontal and vertical lines can be used with events

<border_alpha> setting for events added

Fixes in 1.1.1.0:

FIXES:
The scrollbar graph dropped to 0 if the values were missing, now it connects the points as the main graph does.

If settings were passed directly from HTML, context menu settings were ignored.

resize_pointer_color was ignored.

chart_id wasn’t passed to JS functions after setSettings function was used.