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

No pointShape on the first and last datapoints

2 Answers 42 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, 01:46 PM
I have a series with n datapoints, and it display it using a TKChartLineSeries.

I set pointShape like this:
        series.style.pointShape = [TKPredefinedShape.alloc initWithType:TKShapeTypeCircle andSize:(CGSize){8, 8}];

Everything is ok except the first and the last datapoint. All other datapoints show the point shape, but the first and last one is not. 

I tried changing plotMode of xAxis. Tried both TKChartAxisPlotModeOnTicks and TKChartAxisPlotModeBetweenTicks. It did not work.

Then I tried expanding the xAxis range by adding 1 to maximum xAxis value, and subtracting 1 from the minimum xAxis value.
Now I have n+2 points in xAxis, but still no point shape on the first and last data points.


How can I make them appear?

2 Answers, 1 is accepted

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

By default the first and the last point are not shown ( design decision). However you can control it via style property. Please use the following setting :

series.style.shapeMode = TKChartSeriesStyleShapeModeAlwaysShow;


Let me know in case it does not fix the issue.

Regards,
Pavel Pavlov
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
EY
Top achievements
Rank 2
answered on 05 Dec 2014, 03:23 PM
It works great, thanks.
Tags
Chart
Asked by
EY
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
EY
Top achievements
Rank 2
Share this question
or