1

Gantt chart

In any chart wrong date is showing as you can see from the image, 14th March is the actual date given but the output is displaced by 1 and showing 13th March.

I googled all over and found nothing

Diliban B
  • 19
  • 1
  • Could you please provide more information, such as HTML, CSS, JS, Data, and your AnyChart version? This will allow us to reproduce the problem on our end and provide you with a solution. – AnyChart Support Mar 06 '23 at 15:00
  • Hi I'm using the data given the quick start (Resource chart). There also the date is one day before the actual given – Diliban B Mar 28 '23 at 10:28
  • Thank you for responding! We will look into this issue and get back to you as soon as we have a solution. – AnyChart Support Mar 30 '23 at 07:24

1 Answers1

0

Unfortunately, we were unable to reproduce the problem.
However, almost every date-related issue can be solved by adjusting the zoom level.

// zoom the timeline to the given dates
function zoomToDates() {
  chart.zoomTo(Date.UTC(2018, 1, 3), Date.UTC(2018, 1, 6));
}

We encourage you to try out the zoom setting demo in our Playground.
We hope you find this solution to be suitable for you!

AnyChart Support
  • 3,770
  • 1
  • 10
  • 16
  • 1
    Thanks for your reply. I will definitely go through what you suggested. I suspect there is a problem with the time zone. My timezone is Indian Standard time (IST Asia/Calcutta GMT+05:30). I added anychart.format.outputTimezone( (-18 * 60)); line to fix it temporarily. – Diliban B Apr 04 '23 at 14:00