Search code examples
ioscalayercore-plot

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.


Solution

  • 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.