title: asp.Net MVC How to set colors to each bar in chart?
body: <p>I am using System.Web.Helpers in a MVC application.</p>
  
  <p>The application creates multiple charts and after many attempts I finaly made it work. </p>
  
  <pre><code>foreach (var m in model[0].HistoryValues)
  {
  
      var chart = new Chart(width: 600, height: 400)
      .AddTitle(m.LastUpdateSTR)
      .AddSeries(
          name: m.LastUpdateSTR,
          xValue: new[] { "Server", "Db", "Tickets" },
          yValues: new[] { m.ServerPerformance, m.Databaseperformance, m.SoldTicketsLastThirtyMin == 0 ? 10 : m.SoldTicketsLastThirtyMin }        
      );
  
      m.Bytes = chart.GetBytes("jpeg");
  };
  </code></pre>
  
  <p>Result:</p>
  
  <p><a href="https://i.stack.imgur.com/tY8kl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tY8kl.png" alt="enter image description here"></a></p>
  
  <p>The thing is that I want to be able to change the color on the bars. 
  like so:</p>
  
  <p><a href="https://i.stack.imgur.com/nRkeZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nRkeZ.png" alt="enter image description here"></a></p>
  
  <p>I have not been able to find any recent articles on how to do this. 
  The ones I have found show me how to set a theme on the chart but how do I set a specific color on each bar? </p>