[Chartjs]-Chart JS – X-Axis base on timezone

2👍

Chartjs graph convert the dates using LocalDateTime, I found this workaround which requires you to change the code of ChartJs graph – github.com/chartjs/Chart.js/issues/4334#issuecomment-386325799

or you could use a callback to generate the X-axis tick

ticks: {
  callback: (label, index, values) => {
      return moment.utc(label);
    }
}

Leave a comment