title: charts_flutter - How to set the interval on x axis ticks
body: <p>I'm plotting a few live time series line charts using the following snippet:</p>
  
  <pre><code>  new SizedBox(
      height: MediaQuery.of(context).size.height / 4,
      child: new charts.TimeSeriesChart([
        new charts.Series&lt;HistoryData, DateTime&gt;(
            id: 'test',
            colorFn: (_, __) =&gt; colourArray[dataArrayName],
            data: dataArray,
            domainFn: (HistoryData sales, _) =&gt; sales.date,
            measureFn: (HistoryData sales, _) =&gt; sales.historyValue)
      ],
          animate: true,
          dateTimeFactory: const charts.LocalDateTimeFactory()),
    )
  
  class HistoryData {
    final DateTime date;
    final double historyValue;
  
    HistoryData(this.date, this.historyValue);
  }
  </code></pre>
  
  <p>The data displays fine but I've noticed that there is only one x axis labels:</p>
  
  <p><a href="https://i.stack.imgur.com/sCc1h.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sCc1h.jpg" alt="enter image description here"></a></p>
  
  <p>I was wondering if anyone could help me figure out how to make it so there are many evenly spaced ticks on the x axis.</p>
  
  <p>Thanks</p>
  
  <p>EDIT: <code>dataArray</code> is a variable of type <code>List&lt;HistoryData&gt;</code></p>
  
  <p>This is the print:</p>
  
  <p><code>I/flutter (19864): [Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryData', Instance of 'HistoryDat...</code></p>
  
  <p>There are 60 <code>HistoryData</code> objects in this <code>List</code> and each <code>date</code> value in each <code>HistoryData</code> is 2 seconds apart from each other.</p>