title: DotNet.HighCharts - PieChart by populating data by code
body: <p>I'm looking at DotNet.HighCharts and just starting to try to understand it. 
  I was thinking of doing something more "simple" just to get the hang of it like the pie chart. </p>
  
  <p>I looked at the following link <a href="https://stackoverflow.com/questions/9226560/dotnet-highcharts-populates-a-pie-with-the-result-of-a-query">DotNet HighCharts , Populates a pie with the result of a query</a>  and wanted to try to populate the data from code behind.  I wanted to dumb-it-down a lot just so i can learn and understand it. Learn how to crawl first before i learn to run with it and populate from the database.</p>
  
  <p>I'm thinking that I'm not understanding how to set up the series data correctly.
  This is how I'm populating a series object:</p>
  
  <pre><code>  var browers = new List&lt;object[]&gt;();
    browers.Add(new object[] { "Firefox", 35.0 });
    browers.Add(new object[] { "IE", 25 });
    browers.Add(new object[] { "Safari", 20 });
    browers.Add(new object[] { "Opera", 15 });
    browers.Add(new object[] { "Others", 5 });
  
    List&lt;Series&gt; browserSeries = new List&lt;Series&gt;();
  
    //I think this is causing the problem
    browserSeries.Add(new Series
    {
          Name = "Browsers",
          Data = new Data(browers.ToArray())
    });
  </code></pre>
  
  <p>And then it is done here just like the link:</p>
  
  <pre><code>    .SetSeries(new Series
             {
                 Type = ChartTypes.Pie,
                 Name = "Browser share",
                 Data = new Data(browserSeries.Select(b =&gt; new { Name = b.Name, Y = b.Data }).ToArray())
             });
  </code></pre>
  
  <p>Currently the chart does not display any data.  It's just blank. 
  Can someone point me in the right direction of what i've done wrong?</p>
  
  <p>Thanks a lot for the help.</p>