HighCharts show datetime format on xAxis

后端 未结 4 687
误落风尘
误落风尘 2021-02-08 21:00

I am trying to display dateTime in day/weekly/month format on the x axis of high charts I have the data formatted as x utc date time format and y (magnitude). I was under the im

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-08 21:47

    You can try this also -

    1. {value:%Y-%b-%e %l:%M %p }
    labels: {
          format: '{value:%Y-%b-%e %l:%M %p }'
    },
    

    Output- 2017-Apr-27 8:49 PM

    1. format: '{value:%Y-%b-%e %l:%M}'
    labels: {
              format: '{value:%Y-%b-%e %l:%M %p }'
    },
    

    Output- 2017-Apr-27 8:49

    1. format: '{value:%Y-%b-%e}'
     labels: {
                  format: '{value:%Y-%b-%e}'
     },
    

    Output - 2017-Apr-27

    1. format: '{value:%Y-%b-%e %H:%M}'
    labels: {
          format: '{value:%Y-%b-%e %H:%M}'
    },
    

    output 2017-Apr-27 20:49

提交回复
热议问题