Verán tengo un datatable de la siguiente estructura:
ID----FECHA ----Score1----Score2
80970----2013-06-26 17:19:00.000----100.00----0.00
81279----2013-06-28 16:00:00.000----100.00----100.00
81280----2013-06-28 18:00:00.000----50.00----100.00
Cuando quiero Bindear mi datatable a un control chart y quiero representar una serie no hay conflicto, lo hago así:
Código C:
Ver original
DataTable dt = new DataTable(); dt = ds.Tables[9]; chart1.DataSource = dt; chart1.Series[0].XValueMember = dt.Columns[1].ToString(); //Col Fecha chart1.Series[0].YValueMembers = dt.Columns[2].ToString(); //Col Score 1 chart1.DataBind();
Pero yo lo que quiero hacer es algo así:
Código C:
Ver original
chart1.DataSource = dt; chart1.Series[0].XValueMember = dt.Columns[1].ToString(); //Col Fecha chart1.Series[0].YValueMembers = dt.Columns[2].ToString(); //Col Score 1 chart1.Series[1].YValueMembers = dt.Columns[1].ToString(); //Col Fecha chart1.Series[1].YValueMembers = dt.Columns[3].ToString(); //Col Score 2 chart1.DataBind();
Alguna idea, es para poder desplegar las 2 series (Que previamente ya hice en el diseñador de Visual Studio)
Saludos y gracias de antemano.