First item of category/series position of line chart

1 Answer 54 Views
Charts
Max
Top achievements
Rank 1
Max asked on 21 Dec 2021, 10:15 PM | edited on 21 Dec 2021, 10:19 PM

Dear sirs, I can't get a result.

As you can see, the first value for (01.01.2021) is located in the middle of first step.

Can you help me guess please, how should I configure the chart to bring the 01.01.2021 with it's value (0) right to the zero level of X line?

I'd like the chart values move left in a half of the cell step.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 24 Dec 2021, 11:17 AM

Hello Max,

You can set the XAxis.axisCrossingValue value to "0.5" in order to achieve the desired layout.

For example: https://dojo.telerik.com/UYoDimuf

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Max
Top achievements
Rank 1
commented on 11 Jan 2022, 01:19 PM | edited

Hello Vessy, thank your for solution you gave. 

However, look: 

How can I set the margin of majorGridLines to 0.5?

We just moved the majorGridLines left, which is not really acceptable, as you can see on the pic.

 

Vessy
Telerik team
commented on 14 Jan 2022, 12:59 PM

Hi Max,

You can skip the first majorGridLine and set margin to the valueAxis label like follows:

https://dojo.telerik.com/UYoDimuf/6

Another possible approach would be to set the categoryAxis min value directly to some value between 0 and 0.5 (to keep the first markers visible):

https://dojo.telerik.com/IFEJufEF

 

 

Max
Top achievements
Rank 1
commented on 20 Jan 2022, 08:05 AM

Dear Vessy, thank you so much!
Vessy
Telerik team
commented on 21 Jan 2022, 08:23 AM

You are welcome, Max :)
Tags
Charts
Asked by
Max
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or