title: Multi-series Charts in Google Analytics Embed API
body: <p>I am using the Embed API to create a "LINE" chart of sessions per-day, per-medium (ga:sessions, ga:date, ga:medium, respectively), but I can only succeed in creating a single series (sessions per day).</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var chart = new gapi.analytics.googleCharts.DataChart({
    query : {
      "ids"        : view_id,
      "start-date" : "30daysAgo",
      "end-date"   : "yesterday",
      "dimensions" : "ga:date", // Works, but only produces single series
      // "dimensions" : "ga:date,ga:medium", - Doesn't work
      "metrics"    : "ga:sessions",
    },
    chart : {
      type : "LINE",
      container : "ga-chart",
      options : {
        width: "100%",
        title : title,
      }
    },
  });
  chart.execute();</code></pre>
  </div>
  </div>
  </p>
  
  <p>Using the commented line above produces the error "All series on a given axis must be of the same data type".</p>
  
  <p>How do I get a separate series for each value of ga:medium ("referral", "organic" and "(none)").</p>