BackPrevious Page Next PageNext

Inserting a Chart

Inserting a chart based on a business view

Inserting a chart based on a query resource

With the chart wizard, it is easy to create charts in a report, however, the wizard varies with the data resource type used to create the chart: business view or query resource. The 3-D chart types are only supported in page reports that are created on query resources.

A web report and library component can only use business views as the data resource. For a page report it can be created either based on query resources or business views, which is determined at the time when the page report is created by the Create Using Business View option. Once defined, all the data components in the page report can only be created on the specified data resource type.

A chart can be inserted in the report areas listed in Component placement.

Inserting a chart based on a business view

  1. Position the mouse pointer at the destination where you want to insert the chart. For a web report or library component, the destination cannot be inside any other component such as a table. For a web report it is usually best to create a unique tabular cell for each component that you add. For a page report, the destination can be in an empty area of the page report or inside a banded object.
  2. Do either of the following:

    The Create Chart wizard appears.

  3. In the Data screen, select a business view on which to create the chart.

    Create Chart wizard based on business view - Data screen

  4. In the Type screen, specify the type of the chart. JReport automatically filters out the chart types that cannot be supported in the report where the chart is to be inserted and lists only the supported types.
  5. The Display screen varies with chart types: common chart, organization chart, heat map.
  6. To apply filters to the chart so as to reduce the data displayed in the chart, go to the Filter screen. Select a predefined filter of the specified business view if there are any from the Filter drop-down list to apply, or select User Defined in the list to define a new filter. For how to define a filter, refer to Filtering the Data.

    Create Chart wizard based on business view - Filter screen

  7. In the Layout screen, specify the layout of the chart.

    Create Chart wizard based on business view - Layout screen

  8. In the Style screen, select a style for the chart.
  9. Click Finish to insert the chart.

    If the chart is to be inserted into a position other than the report body or tabular cell, after clicking Finish in the wizard, you need to click the mouse button in the destination once again in order to insert the chart there.

You can now further format elements of the chart according to your requirements.

Inserting a chart based on a query resource

  1. Position the mouse pointer at the destination where you want to insert the chart. It can be in an empty area of the page report or inside a banded object.
  2. Do either of the following:

    The Create Chart wizard appears.

  3. In the Data screen, select the data resource on which to create the chart. If the given data resources are not what you want, click the first item in the corresponding resource node to create one. When a query is selected, click the Edit button to modify the query if required. Then a new dataset based on the selected data resource is created in the page report.
  4. If you want to use an existing dataset in the current page report to create the chart, click the More Options button and then:

    Create Chart wizard based on query - Data screen

  5. In the Type screen, specify the type of the chart. You can choose to create either a single chart or a combo chart. JReport automatically filters out the chart types that cannot be supported in the report where the chart is to be inserted and lists only the supported types.

    Create Chart wizard based on query - Type screen

  6. The Display screen varies with chart types: common chart, organization chart, heat map.
  7. To apply filters to the chart so as to reduce the data displayed in the chart, go to the Filter screen and define the filter conditions. For how to define a filter, refer to Filtering the Data.

    Create Chart wizard based on query - Filter screen

  8. In the Layout screen, specify the layout of the chart.

    Create Chart wizard based on query - Layout screen

  9. In the Style screen, select a style for the chart.

    Create Chart wizard based on query - Style screen

    When you have specified to insert the chart into a banded object or table, by default the chart will inherit its parent's style. If you want to apply another style to the chart, uncheck the Inherit Style option and then select the required style from the Style box. For more information, see Inheriting Styles.

  10. Click Finish to insert the chart.

    If you have specified to insert the chart to a position other than the report body or tabular cell, after clicking Finish in the wizard, you need to click the mouse button in the destination once again in order to insert the chart there.

You can now further format elements of the chart according to your requirements. When the chart is inserted into a banded object or table, you can set up a data container link between the chart and its parent.

Tips:

BackPrevious Page Next PageNext