I have a ArrayCollection (that holds 12 items) which is given
as data provider to the column chart. The ArrayCollection keeps
changes every 5 mins, so that the new collection item will be added
to the end of the collection and the first item from the collection
would be removed. The collection is a bindable one. However, the
chart does not pick up these changes. It retains the old item ie..
the first item which was removed from the collection.
The strange thing I observed is that, if I print the length
of the collection it shows the correct value as 12. But when the
chart renders the x axis using this collection items it shows 13
It would be really helpful if someone could throw some light
Perhaps a stupid question but when you change your
arraycollection do you do arraycollectioname.refresh()? If not,
that should be your problem, without the refresh method your visual
object will not update but your arraycollection will.
Never with a Chart but numerous times with a Datagrid or
List. The dataprovider method for those and the Chart component
work the same way, so it would be quite similar. Perhaps you can
post some code?