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

Negative values in the chart (shifts date)

6 Answers 69 Views
Charts
This is a migrated thread and some comments may be shown as answers.
alex
Top achievements
Rank 1
alex asked on 15 Mar 2016, 01:34 PM

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), как для положительных так и для отрицательных значений?

 

6 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 17 Mar 2016, 08:31 AM
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!
 
0
alex
Top achievements
Rank 1
answered on 18 Mar 2016, 02:19 PM

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

0
alex
Top achievements
Rank 1
answered on 18 Mar 2016, 02:25 PM

Only "visible: false" in  "categoryAxis" ?

0
Iliana Nikolova
Telerik team
answered on 22 Mar 2016, 09:53 AM
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!
 
0
Ranjith
Top achievements
Rank 1
answered on 01 Nov 2019, 06:04 AM

Hi Alex,

I'm new to this kendo but i need a kendo chart with negetive axis as such your screen shots, can i have a code link for that.
It may help to understand the kendo charts better.

 

Thanks & Regards

Ranjith

0
Tsvetomir
Telerik team
answered on 04 Nov 2019, 11:20 AM

Hi Ranjith,

A Kendo UI Chart example which incorporates negative values and showing them mirrored to the positive values could be found here:

https://demos.telerik.com/kendo-ui/bar-charts/column

In case you have more specific questions, or any queries at all, I would be happy to assist you further.

 

Kind regards,
Tsvetomir
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Charts
Asked by
alex
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
alex
Top achievements
Rank 1
Ranjith
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or