I send it as Data type List to a chart but the data is not displayed, check the method that makes the query and if you return the values, but chart does not load them
public void loadDataLinq()
{
this.chart1.Palette = ChartColorPalette.EarthTones;
this.chart1.Titles.Add("Mascotas");
ConexionBd spQuery = new ConexionBd("Mascotas");
this.chart1.DataSource = spQuery.mLinq();
this.chart1.DataBind();
}
public List<object> mLinq()
{
var Mascotas = from tMAscota in Context.Mascotas
select new
{
Mascota = tMAscota.Mascota1,
CantidaD = tMAscota.Cantidad,
};
return Mascotas.AsEnumerable<object>().ToList();
}