More and more I use Crystal Reports, my Sucker Level of the product (Crystal Reports, da...) is rising exponentially.
If you generate a report from a database command, XML document, or XML schema, and add a chart to the report, CR generates chart and legends automatically. In legends, it adds the table column names, which you select to get the data from.
If you use ADO.NET DataSet document (XML or .xsd files), the legend names would look like DataTableName.ColumnName for all columns you are using in the chart. Now if you want to change this default legend's text, you are out of luck. At least I wasn't able to figure it out.
After spending half a day, I gave up and came up with couple of workarounds. One was, being a GDI+ expert, I could create my own graphics which looks like legends. Alternatively, the easy approach was, create a box and color is what color your chart bars are and put a text box side by side with the name of the column. For example, if your database column names are Column1, Column2 and Column3 but you want your data legend names Fall, Summer, and Winter, you create three boxes with the color of chart bars and put TextBox with text Fall, Summer, and Winter.
This approach worked for me. If you find a better way, don't forget to share with us.

Ashutosh BhawasinkaPosted Apr 5, 2009, 11:18 PM
see the comment by "hi_its_its" (me) http://social.microsoft.com/Forums/en-US/vscrystalreports/thread/de18e72f-4cfb-403f-87ef-d970d8061c93/
Pradip RajputPosted Aug 30, 2007, 2:12 AM
I am developing a pie chart having the X-axis and Y-Axis values as X- axis Y-Axis Site1 2000 Site2 3000 Site3 4000 Total 9000 The data is in DataTable, having all four rows. While creating pie chart I bind the table directly to chart but my requirement is I don’t want to bind last row to chart but the total should be displayed at Legend. One more thing is that I want to format the Y-Axis values at Legend; 1000 should be displayed as 1,000 and 100000 should be as 100,000. Thanks and Regards Pradip.
Former membereditedPosted Aug 13, 2007, 9:09 AMEdited Aug 13, 2007, 2:05 PM
Comments from Business Objects between the HRs below. Please note that there is no option available in chart to change the legend text label at design time. In Crystal Report Standalone designer (Crw32.exe), after previewing the report, we can edit the text label by right clicking on the legend label. Please note that in .NET Crystal Report Viewer Control, we can only view the report and cannot make any changes so it is not possible to change the legend text. What I ended up doing was creating a set of reporting tables in SQL. No longer using the XML. I tried using a mix of the XML loaded in a dataset and another connection to SQL just for charts but it did not work. You want to talk about "suck" level, this is a 10+ SURFThru.com
usamaalamPosted Apr 10, 2007, 5:35 AM
I have a pie chart with dynamic pies generated based on the data. Is there a way to format the legend for this case? Thanks.