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

Two ValueAxes problems

1 Answer 81 Views
Charts
This is a migrated thread and some comments may be shown as answers.
kako
Top achievements
Rank 1
kako asked on 25 May 2018, 08:09 AM

Hi!

My chart has two ValueAxes. There are two problems.

1. When taking a positive value, I want to set 0 as the starting point of the axis.

    But that is not possible.

    I set narrowRange to true, but it still did not work properly. How can I start from 0?

2. When taking a negative value, we want to align the 0 positions of the two ValueAxes horizontally, but I can not.

    Is there a way?

https://dojo.telerik.com/UhIkUwif

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 May 2018, 05:37 AM
Hello, Kako,

Thank you for the example and the details.

Regarding the questions:

1) The starting value of the axis can be achieved by setting the min value of the axis to 0:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/valueaxis.min

2) This could be achieved, but it will require setting the same min and max on both valueAxis. Still, please have in mind that there still can be misalignment as the Chart is making the steps based on the data:

https://dojo.telerik.com/UhIkUwif/2

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 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
kako
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or