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

Multiple Axis how can I set origin at zero

5 Answers 145 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Devid
Top achievements
Rank 1
Devid asked on 24 May 2019, 02:37 PM
I have the following chart as seen in the attachment image.

How can I synchronize the Y Axis so that they both have 0 at the same horizontal line ?

5 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 28 May 2019, 08:28 AM
Hi Devid,

To achieve your requirement you can manually adjust the ranges of the axes. To do this, set the Minimum, Maximum and MajorStep properties of the axes.

Regards,
Martin Ivanov
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.
0
Devid
Top achievements
Rank 1
answered on 29 May 2019, 02:34 PM
But the Series don't have to scale the same, they just have to have the zero align. 
0
Martin Ivanov
Telerik team
answered on 30 May 2019, 09:04 AM
Hello Devid,

In order to align the 0 values of the axes, you will need to use the same ranges for the both axes. Otherwise, the zeroes will be placed at different positions in the UI. 

Can you send me a drawing of the expected result?

Regards,
Martin Ivanov
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.
0
Devid
Top achievements
Rank 1
answered on 31 May 2019, 09:18 AM
We have a customization where the user creates the series. So the chart is created generically. That is why it is not easy to define the ranges. 

I have a image of the chart bellow. In our charts we have always 0. So it would be nice to align the series to the zero point. Otherwise the comparison of the series is difficult for the user.
0
Martin Ivanov
Telerik team
answered on 03 Jun 2019, 08:53 AM
Hello Devid,

I've attached a small example showing a possible approach to achieve the desired effect. Basically, I am setting the Minimum and Maximum properties of the both axes, based on the plotted data, in order to have the same range. This way the zero values will be positioned on the exact same positions. I hope this helps.

Regards,
Martin Ivanov
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
ChartView
Asked by
Devid
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Devid
Top achievements
Rank 1
Share this question
or