title: Rotate left legend chartjs
body: <p>Is their a way to rotate the legend on the left side of a bar chart vertically (in chartjs)? I can't seem to find it in the documentation.</p>
  <h2>Current:</h2>
  <p><a href="https://i.stack.imgur.com/rkhCc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkhCc.png" alt="enter image description here" /></a></p>
  <h2>Wanted:</h2>
  <p><a href="https://i.stack.imgur.com/QT5no.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QT5no.png" alt="enter image description here" /></a></p>
  <h2>Code:</h2>
  <p>chartData is an array containing the char data where chartData[&quot;yas&quot;] is equal to the &quot;Samples&quot; legend title</p>
  <pre><code>let myChart = new Chart(chart, {
      type: 'bar',
      data: {
          labels: chartData['labels'],
          datasets: [{
              label: chartData[&quot;yas&quot;],
              data: chartData['values'],
              backgroundColor: '#6FB98F'
          }]
      },
      options: {
          responsive: true,
          plugins: {
              legend: {
                  position: 'left'
              }
          },
          scales: {
              y: {
                  ticks: {
                      beginAtZero:true,
                      minRotation : 0
                  }
              }
          }
      }
  });
  </code></pre>