change gap between series points/xaxis points

8 posts, 0 answers
  1. fabian
    fabian avatar
    9 posts
    Member since:
    Jul 2016

    Posted 27 Jul Link to this post

    Hi,

    I'm trying to change the gaps between the pionts of a line chart series depending on user input (watch pic). I searched for quiet a while but I cant find any answers.

    pls help.

  2. fabian
    fabian avatar
    9 posts
    Member since:
    Jul 2016

    Posted 27 Jul in reply to fabian Link to this post

    BTW: the numbers should be the gap size, not the series pionts.
  3. Kendo UI is VS 2017 Ready
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 29 Jul Link to this post

    Hi,

    The axis labels are placed uniformly for all chart types. Note that you can control the visibility of each individual label by overriding categoryAxis.labels.visual. This makes it possible to skip some labels by returning null. For example:

    categoryAxis: {
      labels: {
        visual: function(e) {
           if (e.value == xx) {
              return;
           }
     
            // Render default label
            return e.createVisual();
        }
    }

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  5. fabian
    fabian avatar
    9 posts
    Member since:
    Jul 2016

    Posted 29 Jul in reply to T. Tsonev Link to this post

    Thank you very much!
  6. fabian
    fabian avatar
    9 posts
    Member since:
    Jul 2016

    Posted 29 Jul Link to this post

    I have another question. Is there a way to set specific Major lines like 

    MajorLines:{

        set:(7,13,32)

    }

  7. fabian
    fabian avatar
    9 posts
    Member since:
    Jul 2016

    Posted 29 Jul in reply to fabian Link to this post

    would "skip" be an option?
  8. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 02 Aug Link to this post

    Hi,

    The grid lines don't provide a "visual" override, but you can turn them off completely and render your own.
    It's a bit of a learning curve, but this approach is much more flexible as well.

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  9. fabian
    fabian avatar
    9 posts
    Member since:
    Jul 2016

    Posted 02 Aug in reply to T. Tsonev Link to this post

    I already got a solution but thanks for the answer anyway
Back to Top
Kendo UI is VS 2017 Ready