Pallatte not displaying for first and last data points

5 posts, 1 answers
  1. Ranganathan
    Ranganathan avatar
    4 posts
    Member since:
    Mar 2017

    Posted 13 Nov Link to this post

    Hi 

    I am using Point Labels with Line series.

    I noticed that TKChartPaletteItem is not displaying for first point and last point. Please see the attached screen shot, first and last point does not have the star and circle palette.

    I am already using the Chart Delegate, but unfortunately, I m not sure how to make them visible

     

    Thanks

    Ranga

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 16 Nov Link to this post

    Hello, Ranga,

    Can you try setting the PlotMode of the HorizontalAxis to AxisPlotMode.BetweenTicks and test if the behavior will be different at your end?

    Regards,
    Stefan Nenchev
    Progress Telerik
    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
  3. Ranganathan
    Ranganathan avatar
    4 posts
    Member since:
    Mar 2017

    Posted 16 Nov in reply to Stefan Nenchev Link to this post

    Hi Stefan,

    Thank you. I have already tried this option, but it is not working

     

    Thanks

  4. Answer
    Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 21 Nov Link to this post

    Hello, Ranganathan,

    You can set the range of the XAxis in the example you are referring to. Here is the approach that worked at my end - customizing the NumericalAxis used as XAxis right after the YAxis update:

        TKChartNumericAxis yAxis = new TKChartNumericAxis (new NSNumber (40), new NSNumber (80));
    yAxis.MajorTickInterval = new NSNumber (10);
    chart.YAxis = yAxis;
     
         TKChartNumericAxis xAxis = new TKChartNumericAxis(new NSNumber(-1), new NSNumber(10));
         yAxis.MajorTickInterval = new NSNumber(1);
         chart.XAxis = xAxis;

    Please give it a try at your end as well.

    Have a great rest of the week.

    Regards,
    Stefan Nenchev
    Progress Telerik
    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
  5. Ranganathan
    Ranganathan avatar
    4 posts
    Member since:
    Mar 2017

    Posted 21 Nov in reply to Stefan Nenchev Link to this post

    Hi Stepan,

    Thank you. I tried the following numbers and it works.

    TKChartNumericAxis xAxis = new TKChartNumericAxis(new NSNumber(-1), new NSNumber(11));

    But one issue is x-axis displaying -1 and 11. Hope can I hide those columns. I am not able identify how to hide specific x axis columns.

    Thanks

    Ranga

Back to Top