This is a migrated thread and some comments may be shown as answers.

How to display point shapes with delegate protocol

3 Answers 60 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
EY
Top achievements
Rank 2
EY asked on 04 Dec 2014, 06:23 PM
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.

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 05 Dec 2014, 02:18 PM
Hello Erkan,

It looks like an issue in TKChart. I confirm that this method is never called. I logged the issue and it will be addressed in our upcoming release in Q1 2015. Here is a link to our feedback portal where you can track/vote/or comment on that issue. I updated also your Telerik points for reporting it. I hope the specified time frame is feasible for you.

Should you have other questions, do not hesitate to ask.

Regards,
Jack
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Eytan
Top achievements
Rank 1
answered on 14 Jan 2015, 02:18 AM
Hello, 

I don't think it's intentional, but you can cause the delegate method to trigger by defining the pointShape on series.style. Here's my line of hackery that gets the ball rolling:

series.style.pointShape = [[TKPredefinedShape alloc] initWithType:TKShapeTypeCircle andSize:CGSizeZero];
0
Jack
Telerik team
answered on 14 Jan 2015, 08:45 AM
Hi Eytan,

Thank you for pointing that out. I confirm that in this case the shapeForSeries:atIndex: method is being called. However, this method should be called in all cases. The good news is that this issue is already addressed in our development branch and the fix will be available with our upcoming release in February.

Should you have other questions, we will be glad to assist.

Regards,
Jack
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
EY
Top achievements
Rank 2
Answers by
Jack
Telerik team
Eytan
Top achievements
Rank 1
Share this question
or