title: Is it possible set the "Use row x as headers" option for a chart using Google Sheets API?
body: <p>I'm currently trying to build charts with and set the legend labels correctly, but I can't seem to find a way to do this using the API.</p>
  <p>Seems like it is possible with Apps Script, but I don't want to do this workaround unless there is no other way.</p>
  <p>Here's a picture of what I want
  <a href="https://i.stack.imgur.com/jydBe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jydBe.png" alt="enter image description here" /></a></p>