title: Google Charts set default date range
body: <p>I've created a dashboard with the Google Charts API that has a <code>DateRangeFilter</code> and a <code>ComboChart</code> with a data point for every Monday over 3 months. It contains an actual series (<em>which can be <code>null</code></em>) as a bar graph, and a goal series that always has data associated with it.</p>
  
  <p>Ideally, I would like to set the <code>DateRangeFilter</code> to show just the current and previous week, as well as 2 weeks ahead, but still allow me to manipulate the range filter to show additional data. </p>
  
  <p>So far I've tried setting <code>hAxis.viewWindow.max</code> and <code>hAxis.viewWindow.min</code> to the correct dates, but this just crops the graph, and won't let me go back to the points that get cropped out. </p>
  
  <p><strong>Dashboard setup:</strong> </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var rangeFitter = new google.visualization.ControlWrapper({
    'controlType': 'DateRangeFilter',
    'containerId': 'filter_div',
    'options': {
      'filterColumnLabel': 'Closed Date'
    }
  });
  
  var lineChart = new google.visualization.ChartWrapper({
    'chartType': 'ComboChart',
    'containerId': 'chart_div',
    'options': {
      animation: {
        duration: 500,
        startup: true,
        easing: 'out'
      },
      hAxis: {
        gridlines: {
          count: 4,
          units: {
            days: {
              format: ['MMYY']
            }
  
          }
        },
        //this crops the graph :c
        viewWindow: {
          min: new Date(2016, 0, 11),
          max: new Date(2016, 2, 7)
        }
      },
      'height': 300,
      tooltip: {
        isHtml: true,
        trigger: 'selection'
      },
      seriesType: 'bars',
      series: {
        0: {
          targetAxisIndex: 0
        },
  
        1: {
          type: 'line',
          pointSize: 5
        }
      }
    }
  });
  
  dashboard.bind(rangeFilter, lineChart);</code></pre>
  </div>
  </div>
  </p>