Here's the problem. I'm stuck! There is no documentation of any merit. It's all by trial and error, and that takes too damn long! Oh, and the sample code provided is a big fat joke.
A very simple explanation would suffice in the help file, but alas, it's not to be found, ohhhhhhhh but the help file sure looks fantastic now doesn't it? Man, the layout is supreme! Dig those colors! no substance, but what the heck, who the heck uses the help files and furthermore, who over there at Infragistics even gives a damn to make them meaningful and substantive.. to the point?
At this particular moment, I'm trying very hard to figure out how to get a simple Pie chart to show in the legend the contents of a field, RATHER THAN THE FREAKING ROW NUMBER! Yes, I've tried just about everything. Including using the Help system.
Check this out.. I navigated to the "FormatString Property" (URL: ms-help://INFRAGISTICS_NETEN72CLR2_HELP/NetAdvantage_NETEN72CLR2/Web_NETEN72CLR2/WebElements/Infragistics2.WebUI.UltraWebChart.v7.2~Infragistics.UltraChart.Resources.Appearance.LegendAppearance~FormatString.html) and what does the single line of "remarks" say? Please see Labelling and Label Formats under the Key Features Overview for detailed information about Label formats. Wow! So I'm supposed to navigate somewhere else eh? Isn't this *HTML* help? Doesn't that mean that Infragistics can provide a freakin' link in the contents of anything on any page in the entire Help system? Why yes, Perry, it sure does! Does this mean that Infragistics doesn't freakin' care about how much time it takes one of their customers to use their NON-DOCUMENTED and EXPENSIVE tools effectively? Why, yes, I believe it does. You know why? Because I cannot find ANYWHERE in the entire documentation any "Key Features Overview" so that I could maybe find "Labelling and Label Formats" embedded within it. It simply DOES NOT FREAKIN' EXIST YOU DUMB IDIOTS! (I'm talking at Infragistics staffing, I think you can tell).
I've asked for help and assistence before on reporting a very bad bad bad bug that caused this company I work for to lose clients over (exporting from a grid to Excel files), and I've been put on the back of the back of the back burner. I've written many emails, none of which ever got responded to. So, I'm a wee bit frustrated even before having this Ultra-problem with the Ultra-chart.
The problem is very simple. How does one actually use this thing? Simple problem. Now, how many weeks will it take me to actually get the freakin' data to show up instead of the Row number? Good question Perry! Guess we'll find out............
Oh yeah, I forgot to mention...
I have two columns in my dataset. One column contains a numeric value to be charted (integer, actually). The other column should be what shows up in the legend. So, say you had a column called Fruit and another column called Count, and this was a chart to show how many fruits were in stock, and say you had 10 Apples and 12 Oranges, the pie chart would have two sections, very close to being 50/50 in section size with the Orange section only slightly larger, and in the legend down below the text would say "Apples" and "Oranges" to correspond with the data in the pie chart. Simple, eh?
......... ay de mi!
The pie chart automatically picks up the first available string column for the row labels. Can't recall this being a bug at any point, but it works in both 7.2 and 7.3. The column can also be specified by RowLabelsColumn property:
DataTable dt = new DataTable();dt.Columns.Add("col1", typeof(int));dt.Columns.Add("col2", typeof(string));dt.Rows.Add(new object[ { 10, "apples" });dt.Rows.Add(new object[ { 12, "oranges" });this.ultraChart1.ChartType = ChartType.PieChart;this.ultraChart1.Data.RowLabelsColumn = 1;this.ultraChart1.Data.UseRowLabelsColumn = true;this.ultraChart1.Legend.Visible = true;this.ultraChart1.Data.DataSource = dt;this.ultraChart1.Data.DataBind();The help link that you were referring to is an API documentation link. API docs are extracted from the source code's triple slash comments and are not meant to serve as a the actual how to pages. I suggest giving the online help a try. For example, specifying row labels can be found here:http://help.infragistics.com/Help/NetAdvantage/NET/2007.2/CLR2.0/html/Chart_Specify_Row_Labels.html
If you want to see the available topics for the winchart, go to http://help.infragistics.com, expand Windows Forms -> Developer's Guide -> The Toolset -> Controls and Components -> WinChart. Information on working with pie charts can be found here:http://help.infragistics.com/Help/NetAdvantage/NET/2007.2/CLR2.0/html/Chart_Working_with_2D_Pie_Chart_Data.htmlHope this helps
I too am looking for the format definitions and I am having trouble finding them. I navigated to the FormatString member in the documentation http://help.infragistics.com/NetAdvantage/NET/2007.3/CLR2.0/ and found the following comment:
"For detailed information on the possible format strings, please see the documentation on Labeling and Label Formats." but there is no link. So I am still struggling to find this important piece of documentation. That is how I came to this post. Please provide a link in the documentation.
I am trying to work out how to format a currency value in millions ie $3.28M. Also, I would like to apply this "Infragistics format algorithm" to my own number. Is there a method I can call where I pass in a number and the format and get the formatted string?
Cheers,Jim.
Hello dickbarney,
I have created the following case for you : CAS-75617-TP7GLB
The links provided by Tom are referencing an older help pages which were taken down from our web site.
I believe the the links below are the ones that you are looking for:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=Chart_Use_Predefined_and_Custom_Label_Styles.html
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=Chart_Label_Formatting.html
Please feel free to let me know if you have any other questions here or through your case.
THESE LINKS ARE DEAD on 10/20/11!!!!!!!!!!!!!!!!!!!!!!!
You could at least leave the links live and redirect to the new page.
Hey everyone,
The links point to the older, 2007 version of the help, which was taken down. Here are links to the newer help topics:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/Chart_Use_Predefined_and_Custom_Label_Styles.html
and
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/Chart_Label_Formatting.html
All of these links are dead. what happened???
Thanks to Max for providing the link to the label formatting. I had the exact same frustration as the other posters, wherein I got to the page stating "see [other page]" without actually linking to it. Hopefully Infragistics will see fit to enhance their documentation, which is really quite hit or miss at times.
p.s. Thanks for the laugh, Perryway! I needed that...