title: Kenodo ui mvc chart - Datasource grouping not working
body: <p>I have a kendo graph of running total of ounces applied. When I do not apply the “Group” setting, it is rendering the entire year to date, as intended. However, when I apply a group setting, for example by people’s names, it is only rendering 2 months’ worth of data.</p>
  
  <p>I have a list of the following class</p>
  
  <pre><code>public class BreakoutData
  {
      public string BreakoutField { get; set; }
      public decimal TotalAcres { get; set; }
      public decimal RunningAcresTotal { get; set; }
      public decimal TotalOunces { get; set; }
      [DisplayName("")]
      public decimal RunningOuncesTotal { get; set; }
      public DateTime TransactionDay { get; set; }
      public Color Color { get; set; }
  }
  </code></pre>
  
  <p>That will return a list of running totals from the begging to the year todate. Here is what it looks like with group applied.</p>
  
  <p>Code:</p>
  
  <pre><code>    @(
          Html.Kendo().Chart&lt;BreakoutData&gt;()
              .Name("BreakoutChart")
              .Title("Breakout")
              .Series(series =&gt;
              {
                  series.Line(model =&gt; model.RunningOuncesTotal,  model =&gt; model.Color.ToString(), model =&gt; model.TransactionDay.ToString()).Name("") ;
              })
              .CategoryAxis(axis =&gt; axis
                  .Categories(m =&gt; m.TransactionDay)
                  .Date()
                  .BaseUnit(ChartAxisBaseUnit.Days)
                  .Labels(labels =&gt;
                  {
                      labels.Format("MM/dd/yyyy");
                      labels.Rotation(-45);
                  })
              )
              .DataSource(d =&gt; d.Read(read =&gt; read.Action("LoadBreakOutChart", "Breakout").Data("getAdditionalData"))
                  .Group(m =&gt; m.Add(g =&gt; g.BreakoutField))
              )
              .Tooltip(
                  tooltip =&gt; tooltip.Visible(true)
                      .Template("#=kendo.toString(category, 'ddd, MMM dd,yyyy')#" +
                                "&lt;br&gt; #=series.name # : &lt;strong&gt;#=value #&lt;/strong&gt;")
              )
              .Legend(legend =&gt; legend.Position(ChartLegendPosition.Bottom))
              .Events(e =&gt; e.DataBound("HideLoading"))
              .HtmlAttributes(new { style = "height:500px;min-width:900px;" })
              .Pdf(p =&gt;
              {
                  p.FileName("text.pdf");
                  p.Author("FarmChem");
              })       
      )
  </code></pre>