Reputation: 5035
I am trying to perform an animation on each bar in the chart, however I am not quite sure how to access the calayer of each individual bar.
Upvotes: 1
Views: 718
Reputation: 31
I have another approach to this considering any performance issues you may face in future if your bars increases. You have a temporary CPTBarPlot with only one bar, to be used just for animation purpose. Use it to perform any animation and remove/hide it once you are done with animation.
Upvotes: 2
Reputation: 27381
There isn't one. All of the bars are drawn in one layer. If you need to animate them individually, make a separate CPTBarPlot
(a subclass of CALayer
) for each bar.
Upvotes: 2