How to Shows the Datapoint values in CustomAnimation-line chart?

Thread is closed for posting
2 posts, 0 answers
  1. Nandu
    Nandu avatar
    12 posts
    Member since:
    Aug 2015

    Posted 03 Sep 2015 Link to this post


     Im using TKChart, i have done the line graph X-axis ​dates and y-axis integer values. But how i can show the graph data point values?

    Im using below method.

    - (void)chart:(TKChart *)chart didSelectPoint:(id<TKChartData>)point inSeries:(TKChartSeries *)series atIndex:(NSInteger)index
        NSLog(@"A point tapped!");
        UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"" message:[NSString stringWithFormat:@"%@",[serverData objectAtIndex:index]] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles: nil];
        [alert show];

    above method im showing 1 alert, but i don't want to alert. I want to shows the data points in label or any other way.




  2. Sophi
    Sophi avatar
    103 posts

    Posted 04 Sep 2015 Link to this post

    Hello Nandu,

    To show the values of your data points you should make the point labels of the series visible. = NO; = UIOffsetMake(0, -15);
    There is an article, in our online documentation, dedicated to the point labels and their usage.

    In case you want to have a custom appearance of the point labels you should conform to the TKChartDelegate and provide custom labels as you implement the chart:labelForDataPoint:inSeries:atIndex: method.
    You can find examples of point labels customization in our  point labels customization article.

    In case you have other or further questions, feel free to write us back any time.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top