I’m trying to make a chart of Michigan’s Coronavirus cases on a log scale using Vega-Lite. I’ve got the chart, but all of my data is offset slightly to the left of the x-axis, which is time. I really can’t figure out what’s going wrong here. Code is below:
viewof lineCircle = vl.data(miData)
  .encode(
    vl.x().fieldT('date'),
    vl.y().fieldQ('cases').scale({type: 'log'}).axis({tickCount: 5})
  )
  .layer(
    vl.markLine(),
    vl.markCircle({size: 60})
      .encode(
        vl.tooltip().field('cases')
      )
    ).width(500).height(500).render()
Link to the notebook is here: https://observablehq.com/@biskwikman/michigan-covid-19-cases