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
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
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
Only "visible: false" in "categoryAxis" ?
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
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
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