title: Chartjs Legend Styling
body: <p>I am trying to to style style my Chartjs legend but for some reason it is not allowing me to override the font color. I want to change the font color to white while retaining the colors for each item in the bar chart, and then I want them to be displayed horizontally instead like this:
  <a href="https://i.stack.imgur.com/aQImo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aQImo.png" alt="enter image description here"></a> </p>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;div id="title"&gt;&lt;/div&gt;
  &lt;div id="content"&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;canvas id="myChart" style="width: 100%; height: auto;"&gt;&lt;/canvas&gt;
  &lt;/div&gt;
  &lt;div id="js-legend" class="chart-legend"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code> .chart-legend  li span{
      color: red !important;
      display: block;
      width: 12px;
      height: 12px;
      margin-right: 5px;
      list-style-type: none !important;
  
  }
  </code></pre>
  
  <p><strong>This is how it currently looks:</strong>
  <a href="https://i.stack.imgur.com/ipunu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ipunu.png" alt="enter image description here"></a></p>