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

Angular 4 - Manipulating Min, Max on Axes

3 Answers 107 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Georgi
Top achievements
Rank 1
Georgi asked on 11 Aug 2017, 09:16 AM

Hello,

 

I am trying to manipulate min max of an axis item but the axis values are not correct.

Here is an example of the scenario - plunker

It is interesting when the axis values are whole numbers for example from 1 to 10 and you enter 5 the axis units are 50 for 5 then 51 for 6 and so on.

 

Another way of achieving what I want, that I can think of, is using the narrowRange property of the axis and then filtering the data but the property is not working at all..

 

Thanks

Georgi Mitev

3 Answers, 1 is accepted

Sort by
0
Georgi
Top achievements
Rank 1
answered on 14 Aug 2017, 09:56 AM
The topic is in wrong category. It should be in Kendo UI Chart category not Grid. Sorry about that.
0
Accepted
T. Tsonev
Telerik team
answered on 15 Aug 2017, 07:37 AM
Hi,

I'm not quite sure I understand what the desired behavior is.

The only problem I can spot with the example is that the input's value is a string, hence the NaN labels upon typing in it.
Changing it to a number input fixes this.

The majorUnit  from min. If min=1, majorUnit=5 the steps would be [1, 6, 11, 1 + n * 5].

Regards,
T. Tsonev
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.
0
Georgi
Top achievements
Rank 1
answered on 15 Aug 2017, 11:53 AM

Yes, forgot the type of the input, the default was a string, that was the problem. Thank you!

Tags
Charts
Asked by
Georgi
Top achievements
Rank 1
Answers by
Georgi
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or