Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hello everybody
i want to use a chart in my programm which i bring it's control from CodeProject but i face problems in some points , so if anybody can help or have any idea, this is code of chart:
			string[] labels = new string[iNbProduits];
			PointPairList list1 = new PointPairList();
			double[] y = new double[iNbProduits];
			//double[] y2 = new double[iNbProduits];
			_bd.Command.CommandText = "SELECT `Nom`, `solde`" +
				"FROM Client";
			_bd.Reader = _bd.Command.ExecuteReader();

// my problem is in this loop:
			for (int i=0; i<iNbProduits; i++) {
			if(_bd.Reader.Read()) {
			labels[i] = _bd.Reader["nom"].ToString();
//			y[i]=double.Parse(_bd.Reader["solde"].ToString());
			y[i]= Math.Sin( (double)_bd.Reader["solde"]);
// here sharpdevelop underlines under (list1.Add(y[i]);) exact under list1 and y !! 
			list1.Add(y[i]);
		//y2[i] = double.Parse(_bd.Reader["prixunitaire"].ToString());
				}//if
			}//for i
			_bd.Reader.Close();

please help
and thanks everybody
thanks everybody
Posted
Updated 9-Mar-11 0:32am
v2
Comments
luisnike19 8-Mar-11 21:51pm    
Any exception? what's the problem?
Orcun Iyigun 8-Mar-11 23:11pm    
Yes, provide some more info. in which line you are getting the error? have you used the magical tool named DEBUGGER? :)

1 solution

You need to put more information regarding what problem you are having with current code, what things you have already tried.

You can post a message on forum below A flexible charting library for .NET[^]. It has a new message[^] link at the end of article.
 
Share this answer
 

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