Archive for January, 2010

XY and Radar charts added to Flex components

Friday, January 29th, 2010

The most exciting news about version 1.4.0.0 is that we added XY (or Scatter/Bubble) and Radar (Polar) charts.

Upgrading from previous version

The new chart types caused some changes in the structure, so there will be several things you’ll need to do when migrating from previous versions. We are sorry for this inconvenience but we feel it is the absolutely necessary change for the sake of consistency in all future versions.

1. AmCartesianChart class renamed to AmSerialChart – simply change the name in your applications.

2. “cartesian” folder with classes like AmGraph, ChartScrollbar, ChartCursor changed to “chartClasses” – if you import one of these classes in your Actionscript, you should change the path to the class.

3. AmChart, AmBalloon, AmLegend classes were moved from com.amcharts to com.amcharts.chartClasses. Change the paths to these classes too.

4. Even if you do not use these classes in your ActionScript, but only mxml, Flex builder can cache the old paths to these classes and show errors when compiling application. The most easy way to solve this is to remove all your amChart objects from the application, save it and bring it back exactly as it was. Now the application should compile properly.

5. CartesianChartEvent is renamed to SerialChartEvent.

6. PieChartEvent and SerialChartEvent (previously CartesianChartEvent) do not have dataUpdated event type anymore. dataUpdated event is now AmChartEvent’s type.

 

The final version of Flex components will be released on February 8. We do not plan adding new features during this time. The structure won’t change again.

Download Flex charting components

Best regards,

amCharts team.

amMap 2.5.4 Released

Wednesday, January 27th, 2010

We have just released a new version amMap 2.5.4 [Download] with the whole slew of new features, enhancements and fixes:

  • FEATURE: new <movie> attribute: active [true] (true/false)
    If set to "false" the movie will be invisible to mouse events (hover, click, etc.) even if behavior associated with it is set – the mouse will rather interact with underlying map. This feature will allow you to create map overlays that do not interfear with the map functionality.
  • FEATURE: you can now instruct amMap to preserve the original color of the area like it is set in the map SWF. Set <area><preserve_color> to "true" if you want to preserve color of all the areas. To preserve the color for individual areas you can set "preserve_color" attribute in the <area> tag in your data.
  • FEATURE: lines can now display rollover balloon. 

    Additional parameters for <line> data tag: 

    - balloon [true] (true/flase): whether to display balloon on rollover or not. 
    - title [text] (): line title

    Additional related settings: 

    - <line><balloon_text> [] ({title}): You can set any text here. Special code {title} will be replaced with whatever there is in <line>’s "title" attribute.

  • FEATURE: new setting <hover_focus>: 
    <movie><hover_focus> [false] (true/false)
    <line><hover_focus> [false] (true/false)
    <label><hover_focus> [false] (true/false) 

    If set to true hovered movie/line/label will be brought in front of other movies/lines/labels.

  • FEATURE: new setting <area><color_no_value> [] (color hex code)
    If set all areas that do not have value attribute will be painted in this color. But only if other overriding color options are not set. I.e. color attribute in <area>, or <preserve_color> setting.
  • TWEAK: amMap now supports areas with negative values correctly.
  • BUG FIX: map enlargement was not functioning properly with redraw=true, again :)
  • BUG FIX: setData and timeline slide transitions were leaving some leftover area data if some areas were missing in the new data. This is now corrected with one downside: you have to have <color_unlisted> set in your settings file, because otherwise the area will be left colored the way it was before setData/slide.
  • NEW MAP: Costa Rica

amStock 1.2.2.0 Released

Wednesday, January 20th, 2010

We have just released a new amStock 1.2.2.0 version with a whole slew of fixes and enhancements. [Download]

  • A new setting <balloon_text> was added to <data_set_selector> group. Sometimes data set title doesn’t fit in the drop-down. If you set a value like {title} here, the roll-over balloon will display full title so users can read it. You can also display {short} title and a {description} in this balloon.
  • A new setting, <disable_custom_cursors> was added. If you set it to true, custom hand and resize arrow cursors will be disabled.
  • A new setting, <chart><events><show_date> was added. If you set it to false, the date will not be displayed in the balloon (when you roll-over the event bullet)
  • When user clicks on a predefined period button, this JavaScript function is called: amPeriodSelected(chart_id, type, count, id);
  • Now you can select predefined period with this JavaScript function:

    flashMovie.selectPeriod(id);

    id is the pid attribute: <period type="DD" count="10" pid="p1">10D</period> or order number of your period if you don’t have pid attribute.

  • amClickedOn and amRolledOver JavaScript functions now return Array of objects containing data set title, short title, id and values of a clicked date:

    amClickedOn(chart_id, date, period, data_object)

    data_object’s structure:

    a) when data is not grouped into longer periods:
        values:
          volume:
            close: 21010110
        id: 0
        short: ES
        title: East Stock

    b) when data is grouped into longer periods:
        values:
          volume:
            close: 16344710
            high: 21587410
            low: 16344710
            sum: 90934150
            open: 16509710
        id: 1
        short: ES
        title: East Stock

  • FIX:In some cases event bullets were incorrectly placed above the graph.