No pointShape on the first and last datapoints

3 posts, 0 answers
  1. EY
    EY avatar
    7 posts
    Member since:
    Nov 2014

    Posted 04 Dec 2014 Link to this post

    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. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 05 Dec 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. EY
    EY avatar
    7 posts
    Member since:
    Nov 2014

    Posted 05 Dec 2014 in reply to Pavel Pavlov Link to this post

    It works great, thanks.
Back to Top