scatterLine and axisCrossingValues and Date x-axis

4 posts, 1 answers
  1. Tristian Fernandez
    Tristian Fernandez avatar
    18 posts
    Member since:
    Nov 2009

    Posted 21 Jan Link to this post

    I have a combo chart with both bubble and scatterLine chart types and I would like to have two y-axis's (one on the right and one on the left).  I can use the axisCrossingValues for numeric x-axis, but when I'm using dates, it doesn't work.  Can someone help me with a workaround ? 

     

  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 25 Jan Link to this post

    Hi Tristian,

    For this scenario you should set xAxis.axisCrossingValues as dates (documentation link). For your convenience here is a basic dojo.

    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. Tristian Fernandez
    Tristian Fernandez avatar
    18 posts
    Member since:
    Nov 2009

    Posted 26 Jan Link to this post

    Thank you for the reply.  I think this is definitely the right direction.  However, I'm using scatterLine graphs with date along the x-axis and when I try to do the axisCrossValue with a scatterLine chart, it shrinks the chart to something unrecognizable. 

    Take your example and change the chart type to be scatterLine and you will see what I'm talking about. 

     

  5. Tristian Fernandez
    Tristian Fernandez avatar
    18 posts
    Member since:
    Nov 2009

    Posted 26 Jan in reply to Tristian Fernandez Link to this post

    Nevermind on this.  The main difference between the scatterLine and other chart types is that you declare which y-axis to use by name, which is what I was doing and it was shrinking the chart to something odd.  I removed the name and it worked!  Thanks for your help!
Back to Top
Kendo UI is VS 2017 Ready