HighCharts xAxis - tickInterval for month

前端 未结 5 1009
被撕碎了的回忆
被撕碎了的回忆 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:37

    I simply used a minTickInterval of 28 days to account for short Feb months. The tickIntervals automatically adjust to 1 month.

    xAxis: {
      type: 'datetime',
      minTickInterval: 28*24*3600*1000
    }
    

    Works great for me.

提交回复
热议问题