private void GraficaTitoVentaProducto() { DataTable DtProducto = new DataTable(); if (comboProyecto.Text == "TODOS LOS PROYECTOS") { DtProducto = producto.CantTipoVentaProductos(); } else { DtProducto = producto.CantTipoVentaProductosProyecto(comboProyecto.SelectedValue.ToString()); } ArrayList tipo = new ArrayList(); ArrayList numero = new ArrayList(); for (int i = 0; i < DtProducto.Rows.Count; i++) { tipo.Add(DtProducto.Rows[i]["Tipo"].ToString()); numero.Add(DtProducto.Rows[i]["Numero"].ToString()); } chart5.Series[0].Points.DataBindXY(tipo, numero); }