theraven
theraven

Reputation: 5035

How to access CALayer of individual bar in core-plot?

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

Answers (2)

Yagyesh
Yagyesh

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

Eric Skroch
Eric Skroch

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

Related Questions