Plotting a point inside TKChartCandlestickSeries

Thread is closed for posting
3 posts, 0 answers
  1. Leo
    Leo avatar
    2 posts
    Member since:
    Mar 2014

    Posted 15 Dec 2014 Link to this post

    I am using an licensed version of Telerik from my clients account. I would like to know is there any way to plot a point inside the box in the candlestick graph?
  2. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 16 Dec 2014 Link to this post

    I guess the white points come with coordinates or some data series . 

    The best way to render them is to add a second series over the candlestick series ( e.g. a TKChartLineSeries). 
    This way you can precisely set where the white dots appear .
    Additionally you will need to hide the line and maybe adjust the size/shape of the white points  in the line series.

    Sample code bellow. 
    //series is a TKChartLineSeries instance
    //Make points white , round and small = [[TKPredefinedShape alloc] initWithType:TKShapeTypeCircle andSize:CGSizeMake(4, 4)];
    TKChartPaletteItem *pointPaletteItem = [[TKChartPaletteItem alloc] init];
    pointPaletteItem.fill = [TKSolidFill solidFillWithColor:[UIColor whiteColor]];
    TKChartPalette *pointPalette = [[TKChartPalette alloc] init];
    [pointPalette addPaletteItem:pointPaletteItem]; = pointPalette;
    //Hide the line NS  leave only the points visible. = [TKSolidFill solidFillWithColor:[UIColor clearColor] ]; = [TKStroke strokeWithColor:[UIColor clearColor] ];

    In case you have troubles implementing this approach , just let me know and I will  gather a small sample for you .

    Pavel Pavlov

    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. Leo
    Leo avatar
    2 posts
    Member since:
    Mar 2014

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

    Hi Team, thank you for the response. I instead used scatter chart along with the candlestick. It served the purpose. Thank you.
Back to Top