I need to display only time labels on xAxis. I'm using Highcharts and don't fully understand how to do it. On xAxis there should be time labels in format like 21:00. I do not need dates, only time is needed. In addition, the difference between two labels should be 00:30 (half an hour) or 01:30 and it should be zoomable. My PHP script writes some value in database every half an hour and I need to display it on a graph. Sorry for my poor English, I'm Russian. Any help would be appreciated :)
相关问题
- How to account for clock offsets in a distributed
- Java Instant.parse on Date java 8
- Linux get system time since power on
- Calculate sum time in Oracle
- Is Sleep() inaccurate?
相关文章
- Change color of bars depending on value in Highcha
- Changing Highcharts data series type dynamically
- Get POSIX epoch as system_clock::time_point
- D3 grouped bar chart: How to rotate the text of x
- how to subscript the x axis tick label
- Rails: always include the milliseconds with create
- Will getting the current date/time be thread-safe
- strtotime('today') returning incorrect tim
In xAxis of your chart you need to provide
tickinterval
anddateTimeLabelFormats
. Following code gives the tick interval of 1.5 hours. You can change that to any number of hours you want by replacing 1.5 intickInterval: 1.5 * 3600 * 1000,