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

Range Bar Chart Not Displaying Correct Dates

5 Answers 183 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ted
Top achievements
Rank 1
Ted asked on 16 Aug 2016, 02:35 PM

Click here to view dojo.

The date labels at the bottom are wrong. They should all be five days apart, but the labels "11-06-16" and "11-10-16" are only four days apart. This messes up the remaining date sequence.

I also noticed this. The second task's (JP task) bar representation does not go from beginning to end dates, but the first task (Ted task) displays properly.

Please advise.

Thank you for your help with this matter.

 

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 18 Aug 2016, 11:24 AM
Hello,

The duration between Nov 1 to Nov 5 is 4 full days.

To display every 5th within the month you need to start on Oct 31.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ted
Top achievements
Rank 1
answered on 18 Aug 2016, 02:14 PM

Hello T. Tsonev,

Thank you for taking the time to respond.

I ran the dojo with the Oct 31 date that you suggested: here

The data ranges should all be 5 days on this chart.

But, the second date range that is displayed is 11-05-16 to 11-09-16 (four days), which is wrong.

Shouldn't the second date range be FIVE days:11-5-16 to 11-10 -16?

Regards,

Ted

0
T. Tsonev
Telerik team
answered on 23 Aug 2016, 07:52 AM
Hello,

Please accept my apologies for the delayed response.

I had trouble reproducing the issue until I realized we were in different time zones. Switching to EST showed the issue right away.

I'm afraid the Chart can't handle the time zones in this case as the value axis is not a true date axis.
My recommendation is to look at the Timeline View of the Scheduler component. It is designed specifically for this purpose and handles time zones out of the box.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Ted
Top achievements
Rank 1
answered on 25 Aug 2016, 07:37 PM

Hello,

Thank you for your response.

Unfortunately, the Timeline View does not look like it will work for me.

This presents a challenge because I have a requirement to show a Range Bar Chart and  a Line Chart on the same page with identical dates.

Here is an example of what I am trying to explain: here

The dates on both charts should be five days apart.

The Line Chart properly shows the dates (11-05-16 to 11-10-16: FIVE days) ,but the Range Bar Chart does not (11-05-16 to 11-09-16: FOUR days).

Is there anyway the Range Bar Chart can be enhanced to display the dates properly?

I want to use Kendo Charts for this project, but I won't be able to unless this is fixed.

Regards,

Ted


 

0
T. Tsonev
Telerik team
answered on 29 Aug 2016, 11:33 AM
Hello,

Okay, I don't think it makes sense to try to get the range bar to work with dates. This is possible, but we'll have to retrofit the value axis to fully support date ranges.

We can try to plot the data manually, as we do in this help article. I've prepared an annotated sample that you can use for reference.
The sample is based around the idea that we need to keep the two charts fully in sync. To that end, I've simply taken the configuration for the second chart and hid the series.
On top of it, I've plotted the task data using the now populated axes as reference.

I hope this makes sense. Let me know if the annotations do not cover some important aspect.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Charts
Asked by
Ted
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Ted
Top achievements
Rank 1
Share this question
or