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

Value axis invalid rendering in Stock chart

3 Answers 29 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 06 Jun 2017, 08:02 AM

has any one ran in to an issue when stock chart value axis are not rendering correctly with specific data? Any suggestions what can be causing this?

Couple of example dojos:

http://dojo.telerik.com/@chall/aJELEH

http://dojo.telerik.com/@chall/egAhu

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Jun 2017, 06:03 AM
Hello Peter,

If the issue is with the position of the valueAxis, it is caused by the values passed to the axisCrossingValues property.

Once I set a large enough value, the valueAxis were positioned correctly:

http://dojo.telerik.com/AHARu

As for the second example, I was not able to observe any issue with it, if I missed it, please advise.

Regards,
Stefan
Progress Telerik
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 (charts) and form elements.
0
Peter
Top achievements
Rank 1
answered on 09 Jun 2017, 06:37 AM
Hi, Stefan, thank you for your response. But could you explain the logic behind the crossing values "25", "26", "27", "28", because there is only 12 data points? Should I account for the generated values on dateAxis? what if the data is even more scattered, how do you count when the data is dynamic? 
0
Tsvetina
Telerik team
answered on 12 Jun 2017, 01:07 PM
Hello Peter,

These numbers represent the point values at which the given axis will be crossed by the other axes. If you specify numbers that are larger than any of the category values available, then the value axes will cross the category axis at its end. So, you can safely define these as 20000 or 200000 and you will get the same result. You just need to declare values that are large enough to be bigger than any category value.

Regards,
Tsvetina
Progress Telerik
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
Peter
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Peter
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or