Radar Graph Data Requirements

24-16 Web User Interface Developers Guide for Oracle Application Development Framework ■ ADF Data Controls: You declaratively create a databound graph by dragging and dropping a data collection from the ADF Data Controls panel. You can create a graph using a data collection that provides row set data as described in the Creating Databound ADF Graphs section in the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. ■ Hierarchical data: You can create a graph from a data control that provides hierarchical data. However, the current release does not include an implementation of a hierarchical data control that is supported by graph. ■ Tabular data: You can provide CSV comma-separated value data to a graph through the tabularData attribute as shown in Section 24.4.1, How to Create a Graph Using Tabular Data. .

24.4.1 How to Create a Graph Using Tabular Data

The process of creating a graph from tabular data includes the following steps: ■ Storing tabular data in a method in the graph’s managed bean. ■ Creating a graph that uses the tabular data stored in the managed bean.

24.4.1.1 Storing Tabular Data for a Graph in a Managed Bean

The tabularData attribute of a dvt:graph component lets you specify a list of data that the graph uses to create a grid and populate itself. To construct this list, you require an understanding of series and groups of data in a graph as well as knowledge of the structure of the list.

24.4.1.1.1 Series and Groups of Data A graph displays series and groups of data. Series

and groups are analogous to the rows and columns of a grid. Usually the rows in the grid appear as a series in a graph and the columns in the grid appear as groups in the graph. For most graphs, a series appears as a set of markers that are the same color. Usually the graph legend shows the identification and associated color of each series. For example, in a bar graph, the yellow bars might represent the sales of shoes and the green bars might represent the sales of boots. Groups appear differently in different graph types. In a clustered bar graph, each cluster is a group. In a stacked bar graph, each stack is a group. In a multiple pie graph, each pie is a group. A group might represent time periods, such as years. A group might also represent geographical locations such as regions. Depending on the data requirements for a graph type, a single group might require multiple data values. For example, a scatter graph requires two values for each data marker. The first value determines where the marker appears along the x-axis while the second value determines where the marker appears along the y-axis.

24.4.1.1.2 Structure of the List of Tabular Data The list that contains the tabular data

consists of a three-member Object array for each data value to be passed to the graph. The members of each array must be organized as follows: ■ The first member index 0 is the column label, in the grid, of the data value. This is generally a String. If the graph has a time axis, then this should be a Java Date. Column labels typically identify groups in the graph. ■ The second member index 1 is the row label, in the grid, of the data value. This is generally a String. Row labels appear as series labels in the graph, usually in the legend.