Se stai cercando di serie del gruppo in un grafico a barre, allora avrete bisogno di utilizzare il metodo Chart.DataBindTable (MSDN).
basta aggiungere il seguente codice:
Chart1.DataBindTable(IEtable, "Day");
Questo produrrà un grafico che sembra qualcosa di simile al seguente:
Ecco alcuni codice fittizio da usare come test:
DataTable table = new DataTable();
table.Columns.Add("Day", typeof(string));
table.Columns.Add("Email", typeof(int));
table.Columns.Add("Calls", typeof(int));
table.Columns.Add("Contacts", typeof(int));
table.Columns.Add("Tasks", typeof(int));
table.Columns.Add("Meetings", typeof(int));
table.Columns.Add("Proposals", typeof(int));
table.Rows.Add("Monday", 1, 3, 3, 4, 5, 5);
table.Rows.Add("Tuesday", 1,6,8,2,0,3);
table.Rows.Add("Wednesday", 7, 6,3,0,2,1);
table.Rows.Add("Thursday", 1,5,5,9,3,1);
table.Rows.Add("Friday", 4,7,3,5,2,3);
//convert datatable to a IEnumerable form
var IEtable = (table as System.ComponentModel.IListSource).GetList();
//Bind the datatable to the chart using the DataBindTable method
Chart1.DataBindTable(IEtable, "Day");
È anche possibile visualizzare le etichette come descritto con ECCTMP, ma l'aggiunta di una legenda sarà probabilmente più pulita.
Puoi fornire maggiori dettagli sulla struttura di backend del datatable? –