Let's say I have a bar chart that display 3 sets of data, e.g bar1, bar2 and bar3. When I change the data source with 1 set of data and reload the chart, bar1 has been changed to the new data set which is correct. But bar2 and bar3 remain in the chart even if I didn't specify any other data set.
Currently the only work around I have is to specify bar2 and bar3 with data set that has no value item (empty array list). It will cause bar2 and bar3 to disappear but the side effect is bar1 becomes thinner than it suppose to be because space still reserved for the empty data set (bar2 & bar3). Is there any command that can remove the pervious data set? Or is there any way to refresh the whole chart without reloading the flash object? Thanks.