AAChartKit icon indicating copy to clipboard operation
AAChartKit copied to clipboard

饼图点击的代理moveOverEventWithMessage不走

Open a123478we opened this issue 3 years ago • 2 comments

设置了 self.chartView.delegate = self; 同时 option.touchEventEnabledSet(true);//支持用户点击事件

柱状图是走了代理了 按理说饼图也应该会走阿

a123478we avatar May 13 '22 10:05 a123478we

怎么看Demo里面 现在用

#pragma mark - AAChartView Event Handler
- (void)didFinishLoadHandler:(AADidFinishLoadBlock)handler {
    self.didFinishLoadBlock = handler;
}

- (void)moveOverEventHandler:(AAMoveOverEventBlock)handler {
    self.moveOverEventBlock = handler;
}

不用之前的moveOverEventWithMessage了?

a123478we avatar May 16 '22 03:05 a123478we

不用之前的moveOverEventWithMessage了?

因为 block 写起来比代理更简便一些, 所以 demo 中的点击事件使用示例换成了 block

AAChartModel avatar May 16 '22 08:05 AAChartModel