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

Kendo Graph setting the padding dynamically

3 Answers 39 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 14 Feb 2017, 06:53 AM

Hello All, 

I have created a Kendo Graph with negative values. In this graph the x-axis is over lapping when the values are bug in number. 

http://dojo.telerik.com/ukErA

How can i avoid this type of overlapping. Is there a way to set the padding dynamically based on the value coming in?

Please provide inputs

Thanks, 

Aditya

3 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 15 Feb 2017, 03:22 PM
Hi Aditya,

Generally speaking, you could set padding dynamically via the setOptions method. However, for the current scenario I would suggest using two category axes and setting valueAxis axisCrossingValues: [0, -Infinity] instead. Take a look at the modified dojo - http://dojo.telerik.com/@Iliana/IBoro.

Regards,
Iliana Nikolova
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Adam
Top achievements
Rank 1
answered on 16 Feb 2017, 05:55 AM

Tried to set the axisCrossingValues in the chart that i have. the same is not working. 

Dojo link - http://dojo.telerik.com/UkajAN

Can you please provide inputs?

0
Iliana Nikolova
Telerik team
answered on 17 Feb 2017, 09:13 AM
Hi Aditya,

To achieve the expected result you should define two category axes and hide the first one. Please check the modified example: http://dojo.telerik.com/@Iliana/UleTi

Regards,
Iliana Nikolova
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Adam
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Adam
Top achievements
Rank 1
Share this question
or