title: How do I change chart parameters (e.g. pie slice colors) in chart created using Razor chart helper?
body: <p>I'm following the <a href="http://www.asp.net/webmatrix/tutorials/7-displaying-data-in-a-chart" rel="nofollow">ASP.NET Razor Pages guide to generate charts</a> in an ASP.NET MVC 3 view.</p>
  
  <p>I can generate/display a pie chart. But I can't see how to change the colors of the pie slides - or explode a slice.</p>
  
  <p>I've tried to reference the "Series" collection of the Chart object, but there doesn't see to be one.</p>
  
  <p>Here's the code snippet I currently have.</p>
  
  <pre><code>&lt;td&gt;
      @{                
          Chart chart =
              new Chart(width: 100, height: 100)
                  .AddSeries(chartType: "Pie", name: "Dafault", xValue: new[] { "Yes", "No" }, yValues: new[] { 70.2m, 29.8m });
  
          chart.Write();
      }
  &lt;/td&gt;
  </code></pre>
  
  <p>Can anyone tell me how I'd go about this?</p>