Symptom
- To show only the totals in stacked bar chart and hide the absolute value labes for the stacks in Crystal Report
Environment
- Crystal Reports 2008 all Service packs
Resolution
- Create a sample Crystal Report on "Customer" table using "Xtreme" sample database
- Add a vertical "Stacked bar chart" on Report header
- Under "Chart Expert" select "Data" tab and choose "Customer.Country" and "Customer.Region" as "On change of" fields respectively
- Similarly choose "Sum of Customer.Last Year's Sales" as "Show value(s)" field
- Click on "Customer.Country" to enable "TopN" button and choose top 5 Countries
- Similarly choose top 3 Regions
- Go to "Chart Options" and select "Data Labels" Tab
- The "Show Total" check box would be disabled
- In order to enable it check "Show Data Labels" check box
- Now check "Show Total" check box
- This will show "Last Year’s Sales" total of all the Regions on top of Stacked bar along with Last years sales of respective regions as labels on each stack
- In order to hide data labels, go to "Chart Option" and uncheck "Show Data Label" check box
- Now the Stacked bar chart will only show the total "Last Year’s Sales" on top of stack and hide the Region wise "Data Labels"
Keywords
Data Label, Total, Stacked bar chart, Crystal reports, charts , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To
Product
SAP Crystal Reports all versions
SAP Knowledge Base Article - Public