c3js › Timeseries x values not evenly spaced

前端 未结 4 1091
自闭症患者
自闭症患者 2021-01-17 14:54

I am having an issue with the labels assigned to the values of my graph.

The graph is a timeseries. I add values using the \'columns\' property of c3js.

I

4条回答
  •  日久生厌
    2021-01-17 15:28

    Set tick.fit to false can make the ticks be positioned according to x value of the data points.

    http://c3js.org/reference.html#axis-x-tick-fit

    axis: {
      x: {
        tick: {
          fit: true
        }
      }
    }
    

    Here's the sample from official site http://c3js.org/samples/axes_x_tick_fit.html

提交回复
热议问题