title: Kendo Pie Chart MVC Data Binding
body: <p>I'm having an issue with Telerik's Kendo UI Pie Chart in MVC.  I can't find any decent code examples on their site.  The one demo I've found only shows half of the code, so I tried guessing at how to get it working.  I'm getting an error, and no matter what I've tried to eliminate the error, nothing seems to work.  It's having an issue with the series.Pie section where you actually bind the data.  I copied the code that was in their example, and used the lambda expression just like they did.  model => model.Percentage and model => model.StatusName to work with my view model.  But it errors out on the very first lambda, with this error message:</p>
  
  <p>CS1660: Cannot convert lambda expression to type 'string' because it is not a delegate type</p>
  
  <p>Here is the relevant code:</p>
  
  <p>ViewModel / View:</p>
  
  <pre><code>public class StatusPercentageViewModel
  {
      public string StatusName { get; set; }
      public int Count { get; set; }
      public double Percentage { get; set; }
  }
  
  
  @model IEnumerable&lt;StatusPercentageViewModel&gt;
  @(Html.Kendo().Chart(Model)
      .Name("StatusBreakdown")
      .Legend(legend =&gt; legend
          .Position(ChartLegendPosition.Bottom)
      )
      .Series(series =&gt;
      {
          series.Pie(
              model =&gt; model.Percentage,
              model =&gt; model.StatusName,
              null,
              null
          );
      })
      .Tooltip(tooltip =&gt; tooltip.
          Template("${ category } - ${ value }%").Visible(true)
      )
  )
  </code></pre>