Get all properties with HIChartContext on tap for iOS
In reference to Issue #34 on GitHub: https://github.com/highcharts/highcharts-ios/issues/44#
Please add a function to get all available properties of the point without specifically providing the names in second argument of HIFunction. If any of the mentioned properties are not present in a chart, the corresponding closure is not getting called. PFB the corresponding code for reference:
HIFunction * function = [[HIFunction alloc] initWithClosure:^(HIChartContext *context) {
NSLog(@"Y value: %@", [context getProperty:@"y"]);
NSLog(@"Index: %@", [context getProperty:@"index"]);
NSLog(@"Category: %@", [context getProperty:@"category"]);
} properties:@[@"y", @"index", @"category"]];
point.events.click = function;
Also , the following function is only returning the UUID:
- (instancetype)initWithClosure:(HIClosure)closure;
being able to get all the available properties would really help with quick implementation of tap event for different kinds of charts.