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.
Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
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 Posts
Re: Adding pie charts to maps using actionscript2011-07-11T13:48:33ZThis is the accepted answer. This is the accepted answer.Hi 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:48ZThis is the accepted answer. This is the accepted answer.
- eaullas 270002RX2Q
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 Posts
Re: Adding pie charts to maps using actionscript2011-07-29T08:43:01ZThis is the accepted answer. This is the accepted answer.
- mikeFT 270004A3J7
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,