Hallo,
Ich muss einen Diagrammtyp Chart Control mit C # und unserer Datenbank erstellen.
Ich habe das Projekt angefangen.
Ich gebe die Datenquelle mit folgende code.
Aber beim Kompielieren wird nichts gezeigt und ich bekommen folgende meldung bei meiner Main() function.
Woran kann das liegen?
Danke im Vorraus
Ich muss einen Diagrammtyp Chart Control mit C # und unserer Datenbank erstellen.
Ich habe das Projekt angefangen.
Ich gebe die Datenquelle mit folgende code.
Code:
public partial class Chart_Ansicht_Infos : Form { public Chart_Ansicht_Infos() { InitializeComponent(); } BibliothequeEntities db = new BibliothequeEntities(); private void Chart_Ansicht_Infos_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'barForceDataSet1.SlitteApp' table. You can move, or remove it, as needed. this.slitteAppTableAdapter1.Fill(this.barForceDataSet1.SlitteApp); chart1.Series[0].XValueMember = "Jahre"; chart1.Series[0].YValueMembers = "Date"; slitteAppBindingSource.DataSource = barForceDataSet.SlitteApp.FirstDownloadBtnWPDateColumn; // TODO: This line of code loads data into the 'barForceDataSet.SlitteApp' table. You can move, or remove it, as needed. this.slitteAppTableAdapter.Fill(this.barForceDataSet.SlitteApp); }
Code:
unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.DataVisualization.dll Additional information: Series data points do not support values of type System.Data.DataColumn only values of these types can be used: Double, Decimal, Single, int, long, uint, ulong, String, DateTime, short, ushort.
Woran kann das liegen?
Danke im Vorraus
Comment