views:

53

answers:

1

Hi everyone,

I'd like to create cool lines and bars charts dynamically, from xml data.

Since I'm not an expert in Flash, I wanted to get a tool to accomplish this. So far, I've tried Flex Builder 3, but I can't figure how to draw the chart dynamically, as the xml data is constantly changing. I just see examples on the internet with xml like "Orange, Banana, Apple", when what I'd like to see is something like "......" and get each item's value and attributes to show in the chart.

+1  A: 

You need to use [Bindable] on the variable you use to assign to the dataprovider for the chart. This will allow your chart's data to change with the changing of the data in the variable the chart is bound to. I am not sure what you mean by the second part of your question

when what I'd like to see is something like "......" and get each item's value and attributes to show in the chart
but I think you are refering to a datatip. A datatip is shown when the user mouses over the chart data point. You can define a datatipfunction to show a custom string to display the information you want.

asawilliams
Oh, I'd written an xml example and it seems it's showing "......" instead.I meant I'd like to read an xml like <items><item id=""></item><item id=""></item></items> and put its data into the chart, and I'm finding it so hard with Flex.
Brian Roisentul