## Chart Wizard

This wizard is displayed after you right-click a chart and then click Chart Wizard from the shortcut menu. It helps you to bind/change data or dataset and specify/modify the type/style of the chart.

The wizard consists of the following screens:

- Data screen
- Type screen
- Display screen
- Layout screen
- Style screen

Back

Goes back to the previous screen.

Next

Goes to the next screen.

Finish

Finishes creating a chart report and closes this wizard.

Cancel

Does not retain changes and closes this wizard.

Help

Displays this help document.

### Data screen

Indicates the dataset used by the chart. You can specify a new dataset for the chart. See the screen.

Define a dataset for the object

Indicates the dataset used by the chart.

- New
  If checked, select a data source from the catalog resources to create a dataset that will be used to build the chart. When you choose to create the dataset from a query, you can click the Modify button to edit the query in the Query Editor if required.
- Existing
  If checked, select a dataset from the ones existing in the opened report set to create the chart. Click the Modify button to edit the dataset in the Dataset Editor if required.
- Current
  If checked, the current dataset used by the parent object will be applied to the chart.

Note: Specifying a new dataset may result in some existing fields in the chart that cannot be found in the new dataset. Once you finish the wizard, the fields which are not in the new dataset will be removed from the chart.

### Type screen

Indicates the type of the chart. You can refer to the section Chart types supported by JReport which describes each of the chart type in detail. See the screen.

Single chart

Specifies to create a single chart.

- Chart Type
  Lists all the chart types that can be used to create a single chart.
- Sub Type
  Lists all the sub types of the selected chart type.
- Description
  Displays the description of the selected chart type.

Combo chart

Specifies to make more than one type use the primary or secondary axis. The types should be featured as Combination charts. Two types of data markers are used to represent different data values.

- Chart Type
  Lists all the chart types that can be added as a combo chart.
- Sub-Type
  Lists all the sub-types of the selected chart type.
- Description
  Displays the description of the selected chart type.
- Chart Type Groups
  Lists all the chart types that are to be used in the combo chart.
  - Primary Axis
    - <Add Combo Type>
      Adds a chart type to the primary axis.
  - Secondary Axis
    - <Add Combo Type>
      Adds a chart type to the secondary axis.
- Removes a specified chart type from the Chart Type Groups box.

### Display screen

Indicates the data fields of the chart. You can change them. See the screen.

Resources

Lists all the available data resources in the selected dataset.

Adds the selected fields to be displayed in the chart.

Removes the selected fields from the chart if they are not required.

Replaces the unmatched field in the chart with the specified field in the Resources panel.

Category/Series

Lists the fields you want to display in the category/series axis of the chart.

- Sort Order
  Opens the Sort Order dialog to set sorting options of the specified field.
- Special Function
  Opens the Special Function dialog to define some special function to the field.
- Select N
  Opens the Select N dialog to specify the Select N condition in the chart.

Show Values

Lists the values you want to show in the chart.

- Moves the selected value one step up.
- Moves the selected value one step down.

### Layout screen

Indicates the layout of the chart elements. You can redefine the layout. See the screen.

Data

- Category Start Offset
  Specifies the start offset of category from which the chart will be displayed.
- Category End Offset
  Specifies the end offset of category to which the chart will be displayed.
- Series Start Offset
  Specifies the start offset series from which the chart will be displayed.
- Series End Offset
  Specifies the end offset of series to which the chart will be displayed.
- Reverse Category
  Specifies whether to reverse the display order of the categories.
- Reverse Series
  Specifies whether to reverse the display order of the series.
- Swap Groups
  Specifies to display values from different data fields by switching data between the category and series axes, the category and values axes.

Notes:

- If values are set to be less than 0, it means the categories or series will be displayed without any offset.
- If values are set to be greater than 0 and the value of Category/Series Start Offset is greater than that of Category/Series End Offset, all of the categories or series will be displayed.

Title

- Chart Title
  Specifies the title of the chart.
- Category(X) Axis Title
  Specifies the title of the X-axis.
- Value(Y) Axis Title
  Specifies the title of the Y-axis.
- Value(Y2) Axis Title
  Specifies the title of the Y2-axis.

Axis

- Show Category(X) Axis
  Specifies whether to show the category(X) axis in this chart.
- Show Value(Y) Axis
  Specifies whether to show the value(Y) axis in this chart.
- Show Value(Y2) Axis
  Specifies whether to show the value(Y) axis in this chart.
- Show Series(Z) Axis
  Specifies whether to show the series(Z) axis in this chart.

Wall

- Show Wall
  Specifies whether to show the wall in this chart.
- Show Floor
  Specifies whether to show the floor in this chart.

Gridlines

- Show Category(X) Axis Gridlines
  Specifies whether to show the gridlines of category(X) axis.
- Show Value(Y) Axis Gridlines
  Specifies whether to show the gridlines of value(Y) axis.
- Show Value(Y2) Axis Gridlines
  Specifies whether to show the gridlines of value(Y2) axis.
- Show Series(Z) Axis Gridlines
  Specifies whether to show the gridlines of series(Z) axis.

Legend

- Show Legend
  Specifies whether to show the legend in this chart.

Export

- Mapping Component
  Specifies the component to which the chart will be mapped. For details, see Creating dynamic chart in Excel.

### Style screen

Indicates the style of the chart. You can apply another style to the chart. See the screen.

Style

Lists the available styles.

- <Custom>
  There is no any style information on it and it is only used to cover previous-version report which did not bind any style or the bound style cannot be found in the style list.

Preview

Displays a diagram illustrating the effect of the selected style on the chart.

Inherit Style

Specifies whether to make the chart take the style of its parent. Available only when the chart is inserted into a banded object or table.