This question is locked. New answers and comments are not allowed.
My chart can display point shapes by setting them directy like below:
series.style.pointShape = [TKPredefinedShape.alloc initWithType:TKShapeTypeCircle andSize:(CGSize){8, 8}];
TKChartPaletteItem *pointPaletteItem = TKChartPaletteItem.new;
pointPaletteItem.fill = [TKSolidFill solidFillWithColor:UIColor.whiteColor];
pointPaletteItem.stroke = [TKStroke strokeWithColor:UIColor.greenColor];
TKChartPalette *pointPalette = TKChartPalette.new;
[pointPalette addPaletteItem:pointPaletteItem];
series.style.shapePalette = pointPalette;
But how to display point shapes with delegate protocol?
I tried this:
- (TKShape *)chart:(TKChart *)chart shapeForSeries:(TKChartSeries *)series atIndex:(NSUInteger)index
but it seems it is not working.
series.style.pointShape = [TKPredefinedShape.alloc initWithType:TKShapeTypeCircle andSize:(CGSize){8, 8}];
TKChartPaletteItem *pointPaletteItem = TKChartPaletteItem.new;
pointPaletteItem.fill = [TKSolidFill solidFillWithColor:UIColor.whiteColor];
pointPaletteItem.stroke = [TKStroke strokeWithColor:UIColor.greenColor];
TKChartPalette *pointPalette = TKChartPalette.new;
[pointPalette addPaletteItem:pointPaletteItem];
series.style.shapePalette = pointPalette;
But how to display point shapes with delegate protocol?
I tried this:
- (TKShape *)chart:(TKChart *)chart shapeForSeries:(TKChartSeries *)series atIndex:(NSUInteger)index
but it seems it is not working.