I need to add pie charts to a map, but don't want to do it using MXML as it is slowing down my application, so I want to add them with Actionscript. I have been unable to achieve this so far. Attached is what I've been trying to do. I can't seem to add the pie charts to each map feature which seems like the intuitive route to me.
This topic has been locked.
4 replies Latest Post - 2011-08-02T09:07:52Z by mikeFT
Pinned topic Adding pie charts to maps using actionscript
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-08-02T09:07:52Z at 2011-08-02T09:07:52Z by mikeFT
eaullas 270002RX2Q2 PostsACCEPTED ANSWER
Re: Adding pie charts to maps using actionscript2011-07-11T13:48:33Z in response to mikeFTHi Mike,
Can you specify the version of elixir that you are using ? (I guess 2.5 if I remember correctly from another post you wrote ?)
As for adding the legend on top of the heatmap, I do not think that adding your pie charts as children of map features would be the way to go.
Have you had a look at sales.mxml demo (provided that you do use Elixir 2.5) ? It features a map dashboard with pie charts overlay.
The idea is to use the 'symbols' property of the map component. You would create your array of MapSymbol instances (acting as a wrappers of your pie charts), one for each map feature, and set the array as 'symbols' on the map.
See createSymbol3D() function in sales.mxml sample to get more details on how to achieve this.
Hope this helps,
Re: Adding pie charts to maps using actionscript2011-07-28T15:53:48Z in response to eaullasHi Erwan,
Thanks for the great response. We've actually decided to put the pie charts on the back burner for now but may want them in the future so I'd like to make sure I can get them working. Can you tell me where I can find Sales.mxml please?
MDurocher 270002P521138 PostsACCEPTED ANSWER
Re: Adding pie charts to maps using actionscript2011-07-29T08:43:01Z in response to mikeFTHi,
You will find the sample under the 'samples' directory of the distribution. On my machine it is located at C:\Program Files\IBM\ILOG\Elixir 2.5\samples\sales and the source files are in the src directory.
Hope this helps,