Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to load a couple of charts and I'm using Datasets to fill the charts. I'm having problems loading my second chart and the rest after that aswell.

My first chart loads perfectly, but all the charts after that is one big block?

I tried to dispose and clear the datasets and so on, but cant get it working.

This is what happens on my form load: (I haven't worked with chart alot before)

C#
private void frmLPChart_Load(object sender, EventArgs e)
       {
           // TODO: This line of code loads data into the 'flagClientDataSet37.tblLP_kW111550' table. You can move, or remove it, as needed.
           this.tblLP_kW111550TableAdapter1.Fill(this.flagClientDataSet37.tblLP_kW111550);
           // TODO: This line of code loads data into the 'flagClientDataSet36.tblLP_A17' table. You can move, or remove it, as needed.
           this.tblLP_A17TableAdapter.Fill(this.flagClientDataSet36.tblLP_A17);
           // TODO: This line of code loads data into the 'flagClientDataSet34.tblLP_L3A' table. You can move, or remove it, as needed.
           this.tblLP_L3ATableAdapter.Fill(this.flagClientDataSet34.tblLP_L3A);
           // TODO: This line of code loads data into the 'flagClientDataSet33.tblLP_L2A' table. You can move, or remove it, as needed.
           this.tblLP_L2ATableAdapter.Fill(this.flagClientDataSet33.tblLP_L2A);
           // TODO: This line of code loads data into the 'flagClientDataSet31.tblLP_L1A' table. You can move, or remove it, as needed.
           this.tblLP_L1ATableAdapter.Fill(this.flagClientDataSet31.tblLP_L1A);
           // TODO: This line of code loads data into the 'flagClientDataSet30.tblLP_L3V' table. You can move, or remove it, as needed.
           this.tblLP_L3VTableAdapter.Fill(this.flagClientDataSet30.tblLP_L3V);
           // TODO: This line of code loads data into the 'flagClientDataSet29.tblLP_L2V' table. You can move, or remove it, as needed.
           this.tblLP_L2VTableAdapter.Fill(this.flagClientDataSet29.tblLP_L2V);
           // TODO: This line of code loads data into the 'flagClientDataSet28.tblLP_L1V' table. You can move, or remove it, as needed.
           this.tblLP_L1VTableAdapter.Fill(this.flagClientDataSet28.tblLP_L1V);
           // TODO: This line of code loads data into the 'flagClientDataSet26.tblLP_kW117550' table. You can move, or remove it, as needed.
           this.tblLP_kW117550TableAdapter.Fill(this.flagClientDataSet26.tblLP_kW117550);
           // TODO: This line of code loads data into the 'flagClientDataSet25.tblLP_kW115550' table. You can move, or remove it, as needed.
           this.tblLP_kW115550TableAdapter.Fill(this.flagClientDataSet25.tblLP_kW115550);
           // TODO: This line of code loads data into the 'flagClientDataSet24.tblLP_kW113550' table. You can move, or remove it, as needed.
           this.tblLP_kW113550TableAdapter.Fill(this.flagClientDataSet24.tblLP_kW113550);
           // TODO: This line of code loads data into the 'flagClientDataSet23.tblLP_kVA11950' table. You can move, or remove it, as needed.
           this.tblLP_kVA11950TableAdapter.Fill(this.flagClientDataSet23.tblLP_kVA11950);
           // TODO: This line of code loads data into the 'flagClientDataSet22.tblLP_kvar11350' table. You can move, or remove it, as needed.
           this.tblLP_kvar11350TableAdapter.Fill(this.flagClientDataSet22.tblLP_kvar11350);
           // TODO: This line of code loads data into the 'flagClientDataSet20.tblLP_kW11250' table. You can move, or remove it, as needed.
           this.tblLP_kW11250TableAdapter.Fill(this.flagClientDataSet20.tblLP_kW11250);
           // TODO: This line of code loads data into the 'flagClientDataSet19.tblLP_kW111550' table. You can move, or remove it, as needed.
           this.tblLP_kW111550TableAdapter.Fill(this.flagClientDataSet19.tblLP_kW111550);
       }



Please help me with this issue....
Thanks!!
Posted
Updated 31-Jan-12 18:30pm
v2
Comments
ZurdoDev 31-Jan-12 10:23am    
What do you mean, one big block? Are you setting the datasource on each chart to the proper dataset?
Ben Paxton 1-Feb-12 0:45am    
Yes I did
ZurdoDev 1-Feb-12 7:47am    
Where are you setting the datasource of your charts?
wizardzz 31-Jan-12 13:38pm    
Hi Ben, could you provide any code?
Christian Graus 1-Feb-12 0:34am    
Do you actually regard this code as readable ? This is winforms/WPF/what ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900