C
C
Coder3212017-06-10 02:02:45
JavaScript
Coder321, 2017-06-10 02:02:45

Why is highcharts clipping the label?

There is a chart whose xAxis has the datetime type, here is its config:

private get xAxisConfig(): any {
    return {
      type: 'datetime',
      tickInterval: 3600 * 1000,
      startOnTick: true,
      endOnTick: true,
      dateTimeLabelFormats: {
        second: '%H:%M',
        minute: '%H:%M',
        hour: '%H:%M',
        day: '%H:%M',
        week: '%H:%M',
        month: '%H:%M',
        year: '%H:%M'
      },
      title: {
        text: 'Date'
      }
    }
  }

but for some reason it rounds minutes down. That is, if the first incoming time is 01:55, then the chart draws the first label 01:00. I need that if the first element is 01:55 then the first one was 01:55. Can anyone help?
d35272a1275343709e8a4f4569c5b3b7.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question