Charting Overview

Objective

After completing this lesson, you will be able to present data using the Chart Expert.

Chart Data and Location

See the following scenario to improve report visualization using charts.

In a bright, modern open office with plants and shelving, two colleagues stand at a glass partition—one arranging orange sticky notes while the other watches and points—as speech bubbles discuss charting capabilities and a “Chart Expert” dialog with sample charts appears on the right.

Watch this video to learn about Chart Expert.

Chart Expert Overview

The Chart Expert dialog box allows you to choose the type of chart to display, select the data on which the chart is based, apply conditional color highlighting, as well as customize the options and formatting for the chart.

A screenshot of a software dialog titled Chart Expert showing the Type tab with a left-hand list of chart types (icons and labels such as Bar, Line, Area, Pie, Doughnut, 3D Riser, etc.) with Bar highlighted, a central pane displaying three small bar-chart thumbnails labeled Side by side bar chart, Stacked bar chart, and Percent bar chart plus a descriptive text box beneath, radio buttons for Vertical/Horizontal (Horizontal selected), a Use depth effect checkbox, and action buttons OK, Cancel, and Help along the bottom.

Using the Chart Expert

The Chart Expert is a tabbed dialog box. As you work through each tab, be aware that some options are not for use with some types of chart.

The tabs in the Chart Expert are:

  • Type

  • Data

  • Axes

  • Options

  • Color Highlights

  • Text

The Type Tab

The Type tab in the Chart Expert offers different predefined chart styles to choose from. To select a particular style, double-click the icon for the desired report.

Screenshot of a Windows-style Chart Expert dialog for selecting chart options in a data-visualization application, with the Bar type highlighted in a left-hand list of chart types (including Line, Area, Pie, Doughnut, 3D Riser, XY Scatter, Radar, Bubble, Stock, Gauge, Gantt, Funnel, Histogram), a central preview area showing three colorful bar-chart subtype thumbnails labeled Side by side, Stacked bar chart, and Percent bar chart with explanatory text beneath, radio buttons for Vertical/Horizontal (Horizontal selected) and an unchecked Use depth effect box, and standard dialog buttons OK, Cancel, and Help along the bottom.

The most common chart types are:

Bar
A side-by-side bar chart displays a series of vertical bars and is best suited for showing data for several years over a period of time. A stacked bar chart also displays data as a series of vertical bars and is best suited for representing three series of data with each series displayed as a different color stacked in a single bar.
Pie

A pie chart displays data as a pie, split and filled with color or patterns, and can only be used with one group of data.

The Data Tab

In the Data tab, you select the chart layout type you want to use.

A Chart Expert dialog box from a reporting application is open on the Data tab, showing layout icons (Advanced, Group, Cross‑Tab, OLAP) in a left pane and two dropdown fields in the main pane — On change of: Customer.Country and Show: Sum of Customer.Last Year's Sales — with OK, Cancel, and Help buttons along the bottom, indicating configuration of how the chart groups and displays sales data.

The charting layout types are:

Advanced
Use the Advanced layout when you have multiple chart values or when you do not have any group or summary fields in the report.

The Advanced chart layout supports one or two condition fields; with these condition fields, you can create a 2D or 3D chart. Other specific functions with the Advanced layout include:

  • Values can be grouped in ascending, descending, or specified order, as well as by Top N or Sort totals.

  • Values can be plotted for each record.

  • Values can be plotted as a grand total for all records.

  • Charts can be based on formula and Running Total fields.

You cannot drill down on an advanced chart because the chart is already displaying all the data for that field.

Group

With this option, you can create charts based on any group summary or subtotal values.

In order to create a chart using the Group layout, you must have at least one group and at least one summary field in the report.

Cross-Tab

The Cross-Tab option is available when a report contains a cross-tab object and enables you to present the data in the cross-tab graphically. A Cross-Tab chart uses the fields in the cross-tab for its condition and summary fields.

OLAP

On-Line Analytical Processing (OLAP) is a business intelligence tool with the ability to perform "slice and dice" operations for multidimensional viewing and manipulation of data. Use the OLAP layout to chart on an OLAP grid.

Once you have selected your chart type, the appropriate choices are presented within the Data tab. If you have running totals in your report, you can select running totals fields to display them in the chart. Also, if you want to chart on all records so that the grand totals display, then select For all records from the drop-down list on the right side of the dialog box and specify a chart placement of Once per report. You also select the placement and data in the Data tab.

The Axes Tab

In the Axes tab you can specify properties that control the occurrence and frequency of data that divides axes on your chart.

A screenshot of a Chart Expert configuration dialog (Axes tab selected) in which the top tab row (Type, Data, Axes, Options, Color Highlight, Text) is visible and the pane shows Show gridlines with only the Data axis Major checkbox checked, a Data values section with Auto range enabled and the Min/Max numeric fields disabled, a Number of divisions section set to Automatic (not Manual), and OK, Cancel and Help buttons along the bottom.

By default, the data axis is not scaled automatically and always starts at zero. If you turn the Auto scale check box on, the data axis scales automatically. However, depending on the data, the data axis may not start at zero.

The Options Tab

A screenshot of a desktop application Chart Expert settings dialog on the Options tab showing a neutral, utilitarian interface where users can configure chart color (Color or Black and white), data points (unchecked Show label and Show value checkboxes), layout (Auto-arrange), legend (checked with Placement set to Right), and right-side customization options including Transparent background, Marker size set to Medium, Marker shape set to Rectangle, Bar size set to Large, with OK, Cancel and Help buttons along the bottom.

In the Options tab, you can set the color of the chart, data points, customize settings, and choose whether or not to include a legend. If you do include a legend in a pie or doughnut chart, you can choose to display the data in percentages or in amounts.

The Color Highlight Tab

The Color Highlight tab lets you conditionally apply color based on chart value fields. You apply a color to the selected item by specifying a condition.

A screenshot of a Chart Expert dialog box open to the Color Highlight tab shows an empty Item list on the left with New and a disabled Remove button, and on the right an Item editor where the grayed Value of: Customer.Country field is set to is equal to Australia above a scrollable list of color options (Black, Maroon, Green, Olive, Navy, Purple, Teal, etc.) and standard dialog buttons OK, Cancel, and Help along the bottom.

The tab is divided into two areas: The Item list area displays the formula conditions and the Item editor area is where you create the formula conditions.

Note

If your chart type is line, the chart must have data markers before you can see conditional formatting. An area chart must have two On change of values for conditional formatting to appear.

The Text Tab

The Text tab lets you specify different titles to be placed on your report explaining the various components. This tab always presents all options, even though some charts may not use them. For example, a pie chart would not have a group title or data title as available text options.

An open Chart Expert dialog on a Windows-style interface displays the Text tab of a chart configuration panel, showing a Titles section where Subtitle and Footnote are checked, Group title is checked with the Auto-Text Country, Data title is checked with Sum of Last Year's Sales, the main Title box is unchecked, and a Format area shows a font preview (AaBbCcXxYyZz), a Font... button, a selectable list of title types (Title, Subtitle, Footnote, Legend title, Group title), and the action buttons OK, Cancel, and Help, presenting a clear, neutral configuration view for customizing chart text.

If you accidentally exit the Chart Expert, you can return at any time by right-clicking the chart in your report and selecting Chart Expert from the shortcut menu.

The chart you see in the Design window is a placeholder that prints the actual chart information when you switch to the Preview window. Therefore, the chart in the Design window will probably be different from what you were expecting based on your data. You can always return to the Chart Expert to redesign your chart.

If you place the cursor over the chart while in the Preview tab, a tool-tip with detailed information appears. For example, a chart that shows sales for different countries would read "USA: Sum of Customer.1997 Sales: 3410088.85."

No matter what type of chart you choose, the basic steps to produce a chart are the same.

Summary

  • Crystal Reports enables the inclusion of sophisticated, colorful charts using various data types like summary fields, details, formulas, cross-tab summaries, and OLAP data, to improve report visualization.
  • The placement of the chart within the report determines the data displayed; charts in the Report Header show data for the entire report, while those in Group Header/Footer show group-specific data.
  • The Chart Expert dialog box offers extensive customization options, including choosing chart types, selecting data, applying conditional color highlighting, and adjusting formatting with tabs for Type, Data, Axes, Options, Color Highlights, and Text.