Negative values in the chart (shifts date)

5 posts, 0 answers
  1. alex
    alex avatar
    7 posts
    Member since:
    Mar 2016

    Posted 15 Mar Link to this post

    There is a graph in which the date and sent to different values, the values can be both positive and negative.
    In advance it is not known what it is understandable, we must first of all to sort data, time-consuming
    Is there any comprehensive solution to display the date at the bottom of the graphs (categoryAxis.categories)?

    ________________

     
    Есть график, в который отправляются даты и различные значения, значения могут быть как отрицательные так и положительные.
    Заранее это не известно, что бы это понятно , надо предварительно производить сортировку всех данных,  что трудоемко
    Существует ли какое-нибудь универсальное решение выводить даты  внизу графиков(categoryAxis.categories), как для положительных так и для отрицательных значений?

     

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 17 Mar Link to this post

    Hi Alex,

    For this scenario I would suggest using two category axes and specify valueAxis.axisCrossingValue. For your convenience here is a basic example.

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. alex
    alex avatar
    7 posts
    Member since:
    Mar 2016

    Posted 18 Mar in reply to Iliana Nikolova Link to this post

    Thank you
    Tell me please,how to fix it (screenshot)? Is there any ready-made solution?

    or i have to write a function that checks whether there are negative or not negative values?

    sorry for bad english

  5. alex
    alex avatar
    7 posts
    Member since:
    Mar 2016

    Posted 18 Mar in reply to Iliana Nikolova Link to this post

    Only "visible: false" in  "categoryAxis" ?

  6. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 22 Mar Link to this post

    Hi Alex,

    To avoid this outcome you should set the internal categoryAxis _overlap option to true
    //....
    categoryAxis: [{
        //...
        _overlap: true
    }, {
        categories: [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011],
    }],


    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready