This is a migrated thread and some comments may be shown as answers.

scatterLine and axisCrossingValues and Date x-axis

3 Answers 148 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Tristian Fernandez
Top achievements
Rank 1
Tristian Fernandez asked on 21 Jan 2016, 06:22 PM

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 ? 

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 25 Jan 2016, 11:55 AM
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!
 
0
Tristian Fernandez
Top achievements
Rank 1
answered on 26 Jan 2016, 03:09 PM

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. 

 

0
Tristian Fernandez
Top achievements
Rank 1
answered on 26 Jan 2016, 03:31 PM
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!
Tags
Charts
Asked by
Tristian Fernandez
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Tristian Fernandez
Top achievements
Rank 1
Share this question
or