private void GraficaTitoProducto() { DataTable DtProducto = new DataTable(); if (comboProyecto.Text == "TODOS LOS PROYECTOS") { DtProducto = producto.CantTipoProductos(); } else { DtProducto = producto.CantTipoProductosProyecto(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()); } chart4.Series[0].Points.DataBindXY(tipo, numero); }