I'm actually hoping to animate the individual bars moving as the data
changes, not the plot as a whole.
It looks like the plot is a CALayer, but each individual bar is hand-
drawn in Quartz in -[CPTBarPlot drawBarInContext].
Potentially the implementation could be changed to render each
individual bar as a CALayer that is then composited by the system and
animated. However, it's not really clear what would be the best way
to handle other changes (such as plot space changes) where reusing a
previous bar might be a bad idea.
Does this sound like a reasonable plan of attack, or are there other
issues to be aware of? Presumably Quartz was used here for some
reason...
On May 18, 6:41 pm, Eric <
eskr...@mac.com> wrote:
> Core Plot doesn't discard the plot layer when you give it new data; it just
> forces it to redraw. You might be able to animate stretching the plots
> between the old and new sizes. Start the animation, let it finish, and then
> call -reloadData to make the plot redraw at full resolution with the new
> data.
>
> Eric
>
>
>
>
>
>
>
> On Thursday, May 17, 2012 7:22:31 AM UTC-4, Drew Crawford wrote:
>
> > Hi guys,
>
> > I've got a stacked bar chart that looks like this:
>
> >
http://dl.dropbox.com/u/59605/Screen%20Shot%202012-05-17%20at%206.05....
>
> > I am trying to achieve an effect where the sizes of the regions within
> > a bar undergo a shrink or grow animation when reloadData is called and
> > new data is provided.
>
> > I've seen examples like
>
> >
http://stackoverflow.com/questions/2070993/core-plot-iphone-animation...
>
> >
http://groups.google.com/group/coreplot-discuss/browse_thread/thread/...