The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Chart Control in Visual Studio 2010 (Web and Windows Explained)
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

ashok pagidipallisPosted Sep 25, 2014, 1:33 AM
i have one problem.every time series add datapoints but requriement not adding datapoint on series. if (dt.Rows.Count > 0) { for (int i = 1; i < dt.Columns.Count; i++) { for (int j = 0; j < dt.Rows.Count; j++) { // Series series = new Series(); if (chart1.Series.Where(x => x.Name == dt.Rows[j][i].ToString()).Count() > 0) { } else { Series series = new Series(dt.Rows[j][i].ToString()); //series.Name = " "; foreach (Series seriess in chart1.Series) { if (dt.Rows[i][i].ToString() == seriess.Name) { seriess.Points.AddXY(Convert.ToDateTime(dt.Rows[j][0]).ToString(), Convert.ToDouble(dt.Rows[j][i])); } //chart1.Series.Add(seriess); } chart1.Series.Add(series); chart1.Series[i].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; //chart1.Series[i].XValueMember = "DateTime"; //chart1.Series[i].YValueMembers = chanelselected; } } }
Soni SamuelPosted Jul 3, 2012, 2:23 AM
I am trying to use a network path for the images as I have a WebFarm which is loadBalanced using CISCO ACE appliance. The reason I am using a network shared folder is that at times the Chart does not show the PNG images. The problem with displaying the PNG images in the Web Farm comes when I had initially the web.config setting as shown below. <add key="ChartImageHandler" value="storage=file;timeout=10;dir=c:\TempImageFiles\;" /> So I used the network Shared path as per (blogs.msdn.com/.../managing-chart-generated-images-with-chart-image-handler.aspx) , where I have FULL Permissions on EVERYONE, NETWORK Service. Below is my current setting for the Network shared folder path and I keep getting this error: Invalid temp directory in chart handler configuration <add key="ChartImageHandler" value="storage=file;timeout=10;dir=\\servername\TempImageFiles\;" /> Can someone help. Rgds,
Anshul GuptaPosted Mar 6, 2012, 1:42 AM
i will try today ...
janaki janakiPosted Dec 22, 2011, 5:26 AM
hi i have one problem with asp.net chart control tootip that is if less number of coloumns are there it showing correctely but if more number of coloumns are there like 15 it will not show correctely, means if data is more than 30 characters to any coloumn it will cutting last coloumn please help its very urgent for me string lToolTipTxt = "Project\t\t\t: " + ProjetcData.Rows[i][PPM_PROJECT] + Environment.NewLine +"Description\t\t: " + ProjetcData.Rows[i][PPM_DESCRIPTION] + Environment.NewLine +"Strategic Value\t\t: " + ProjetcData.Rows[i][PPM_STRATEGICVALUE] + " %" + Environment.NewLine +"NPV\t\t\t: " + ProjetcData.Rows[i][PPM_BUBBLESIZE] + Environment.NewLine +"Budget\t\t\t: " + (ProjetcData.Rows[i][PPM_BUDGET].ToString()) + Environment.NewLine +"Risk Rating\t\t: " + ProjetcData.Rows[i][PPM_RISKTYPE] + Environment.NewLine +"Requestor(s)\t\t: " + ProjetcData.Rows[i][PPM_REQUESTOR] + Environment.NewLine +"Approver(s)\t\t: " + ProjetcData.Rows[i][PPM_APPROVER] + Environment.NewLine +"Manager\t\t: " + ProjetcData.Rows[i][PPM_SPONSOR] + Environment.NewLine +"Sponsor(s)\t\t: " + ProjetcData.Rows[i][PPM_PLANSTART] + Environment.NewLine +"Planned Start\t\t: " + ProjetcData.Rows[i][PPM_PLANEND] + Environment.NewLine +"Planned End\t\t: " + ProjetcData.Rows[i][PPM_PLANEFFORT] + Environment.NewLine +"Planned Effort\t\t: " + ProjetcData.Rows[i][PPM_PROJECTCATEGORY] + Environment.NewLine +"Category\t\t: " + ProjetcData.Rows[i][PPM_PROJECTTYPE] + Environment.NewLine +"Type\t\t\t: " + ProjetcData.Rows[i][PPM_PROJECTCATEGORY] + Environment.NewLine +"Requesting Organization\t: " + ProjetcData.Rows[i][PPM_REQORG] + Environment.NewLine +"Sponsoring Organizaion\t: " + ProjetcData.Rows[i][PPM_SPONORG] + Environment.NewLine + Environment.NewLine + Environment.NewLine + Environment.NewLine; datapoint.tootip=lToolTipTxt; if i give like this it will show above issue
Angelina ErinPosted Jul 26, 2011, 12:19 AM
Good One
Mercy DecostaPosted Jul 26, 2011, 12:12 AM
I am going to try this today. Thank you for sharing nice article.
Dinesh BeniwalPosted Jul 25, 2011, 3:49 AM
Step by step explanation, thanks