title: Vega-lite Duplicate x-axis labels
body: <p><a href="https://i.stack.imgur.com/pUlYw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pUlYw.png" alt="Duplicate x-axs labels"></a></p>
  
  <p>The image says it all really, there are duplicate labels for each day and what I really want is just one label per bar. My data set consists of 8 data points:</p>
  
  <pre><code>[
     {     
        "date":"2019-06-21T00:00:00.000Z",    
        "value":44.6,      
     },
     {      
        "date":"2019-06-22T00:00:00.000Z",      
        "value":916.4,      
     },
     {
        "date":"2019-06-23T00:00:00.000Z",    
        "value":948.4,      
     },
     {    
        "date":"2019-06-24T00:00:00.000Z",    
        "value":872.4,      
     },
     {      
        "date":"2019-06-25T00:00:00.000Z",      
        "value":952.4,      
     },
     {      
        "date":"2019-06-26T00:00:00.000Z",      
        "value":1006.4,      
     },
     {      
        "date":"2019-06-27T00:00:00.000Z",      
        "value":945.4,   
     },
     {      
        "date":"2019-06-28T00:00:00.000Z",
        "value":320.8,
     }
  ]
  </code></pre>
  
  <p>And my chart definition is as follows:</p>
  
  <pre><code>{
          '$schema': 'https://vega.github.io/schema/vega-lite/v3.json',
          'description': 'Electricity consumption by month',
          'height': 320,
          'autosize': {
              'type': 'fit',
              'resize': false,
              'contains': 'padding'
          },
          'layer': [{
              'data': {
                  'name': 'data'
              },
              'layer': [{
                  'mark': 'bar',
                  'encoding': {
                      'x': { 'field': 'date', 'timeUnit': 'day', 'type': 'temporal', 'axis': { 'grid': false, 'labelAngle': 0 } },
                      'y': {
                          'field': 'value',
                          'type': 'quantitative',
                          'axis': {
                              'format': '.2f',
                              'title': 'kwh'
                          }
                      }
                  }
              }
              ]
          }]
          }
  </code></pre>
  
  <p>Additonally, I think the values are being bucketed by day as there are 7 bars and 8 data points, but what I really want a bar per data point.</p>
  
  <p>So I think I have two questions:</p>
  
  <ol>
  <li><p>how can I remove the duplicate labels?</p></li>
  <li><p>how can I remove the bucketing but still label the x-axis with the name of the day? This chart is suppose to show "last 8 days", with a bar per day.</p></li>
  </ol>