title: How to Set Chart Series Colors in MVC 3?
body: <p>I'm using </p>
  
  <blockquote>
    <p>System.Web.Helpers.Chart</p>
  </blockquote>
  
  <p>to display charts in my MVC3 application. </p>
  
  <pre><code>@{
      var myChart = new Chart(width: 600, height: 400)
          .AddTitle("Resource Utilization in Projects in Week 1")
          .AddSeries(
              name: "Project1",
              chartType: "StackedColumn",
              xValue: new[] { "W1", "W2", "W3", "W4", "W5" },
              yValues: new[] { 80, 60, 40, 20, 10}
          )
          .AddSeries(
              name: "Project2",
              chartType: "StackedColumn",
              xValue: new[] { "W1", "W2", "W3", "W4", "W5" }, 
              yValues: new[] { 10, 10, 0, 10, 10 }
          )
          .AddSeries(
              name: "Available",
              chartType: "StackedColumn",
              xValue: new[] { "W1", "W2", "W3", "W4", "W5" }, 
              yValues: new[] { "10", "30", "50", "70", "80" }
          )
          .AddLegend();        
  
          myChart.Write();
  }
  </code></pre>
  
  <p>However the colors of series are picked randomly by how many series there are on the chart. Does anyone know how to set specific color to certain series?</p>
  
  <p>I found Charting samples online for setting colors, but they are using the namespace </p>
  
  <blockquote>
    <p>System.Web.UI.DataVisualization.Charting</p>
  </blockquote>