title: 401 login required error while displaying chart using easy dashboard javascript library
body: <p>I am displaying line chart using easy dashboard java script library.But it is throwing error 
  401 login required.I created project in Google developer console and generated keys for it.
  As 401 error code explains that credentials are wrong.Tell me what is the fault.
  Any help will be appreciated.Thanks in advance
  Here is the code for this</p>
  
  <pre><code>&lt;!DOCTYPE&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;title&gt;GA Dash Demo&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
  
    &lt;!-- Add Google Analytics authorization button --&gt;
    &lt;button id="authorize-button" style="visibility: hidden"&gt;
          Authorize Analytics&lt;/button&gt;
  
    &lt;!-- Div element where the Line Chart will be placed --&gt;
    &lt;div id='line-chart-example'&gt;&lt;/div&gt;
  
    &lt;!-- Load all Google JS libraries --&gt;
    &lt;script src="https://www.google.com/jsapi" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="gadash-1.0.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="https://apis.google.com/js/client.js?onload=gadashInit" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
          // Configure these parameters before you start.
      var API_KEY = 'AIzaSyA2LNhLKC4yvO9CmYXhp3tKjEvtd9GGZbc';
      var CLIENT_ID = '1096873113711-c8j9vt2ilnh6gbb0rshhfk3j89qv9pb5.apps.googleusercontent.com';
      var TABLE_ID = 'ga:91837123';
      // Format of table ID is ga:xxx where xxx is the profile ID.
  
      gadash.configKeys({
          'apiKey': API_KEY,
          'clientId': CLIENT_ID
      });
  
      // Create a new Chart that queries visitors for the last 30 days and plots
      // visualizes in a line chart.
      var chart1 = new gadash.Chart({
          'type': 'LineChart',
          'divContainer': 'line-chart-example',
          'last-n-days': 30,
          'query': {
              'ids': TABLE_ID,
              'metrics': 'ga:visitors',
              'dimensions': 'ga:date'
          },
          'chartOptions': {
              height: 600,
              title: 'Visits in January 2011',
              hAxis: { title: 'Date' },
              vAxis: { title: 'Visits' },
              curveType: 'function'
          }
      }).render();
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>