HighCharts xAxis - tickInterval for month

前端 未结 5 1010
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 05:49

Am trying to plot spline graph for the no of passed/failed testcases and grouping them based on hour/date/month/year and I am getting this value as irr

5条回答
  •  没有蜡笔的小新
    2021-01-22 06:46

    Try the following, setting ordinal false fixes the time intervals and not changed for best visualization.

    xAxis: {
        type: 'datetime',
        minTickInterval: 3600*24*30*1000,//time in milliseconds
        minRange: 3600*24*30*1000,
        ordinal: false //this sets the fixed time formats                        
    },
    

提交回复
热议问题