This section includes the following topics:
Use X-Y graphs to plot data pairs. An X-Y graph data item consists of two values—the x-value and the y-value—which represent the coordinates of that data item. The data item is displayed as a symbol, but you can add a lines, bubbles, or fill areas to better delineate the data. Because of the nature of the data, X-Y Plot graphs do not have categories.
The example below shows how an X-Y graph works.
X-Y graphs are in the Plot Data Class.
X-Y Plot graphs can be used for:
Identifying relationships between large data sets
Identifying trends in large data sets
To create an X-Y graph with ITXML, use a command similar to the following:
<cit:xy-plot-graph Name=”graph”/>
For more information about ITXML, see ITXML in the Corda® 7 Developer Reference.
Listed below are the X-Y graph subtypes.
The graph depicted in the example above is an X-Y Line graph. In an X-Y Line graph, all data items in a series are connected by the same line.
To create an X-Y Line graph in ITXML, use a command similar to the following:
<cit:xy-plot-graph Name=”graph” type=”xy-line”/>
Note: For more information about ITXML, see ITXML in the Corda 7 Developer Reference.
Sorting the data items in an X-Y Line graph prevents the line from weaving back and forth between data items. For more information on sorting data items, see Sorted Data.
X-Y Scatter graphs are like X-Y Line graphs without any lines. Only symbols are plotted for each data item.
To create an X-Y Scatter graph in ITXML, use a command similar to the following:
<cit:xy-plot-graph Name=”graph” type=”xy-scatter”/>
Note: For more information about ITXML, see ITXML in the Corda 7 Developer Reference.
X-Y Combo graphs display data series using one or more of the following effects: symbols, lines, and fill area.
While you can create an X-Y Combo graph after the fact by adding area fills, lines, or symbols to any X-Y graph, it is easier to use a command similar to the following:
<cit:time-graph Name=”graph” type=”time-combo”/>
Note: For more information about ITXML, see ITXML in the Corda 7 Developer Reference.
For information on adding or changing the effects for a data series, see Formatting Options below.
X-Y Combo graphs can take advantage of dual y-scales, or independent vertical scales on each side of the graph. Each data series is associated with one of the two y-scales. The two y-scales operate independently of each other.
In the example below, all y-values in the data series associated with the left scale are less than 60, while all y-values in the data series associated with the right scale are in the hundreds; therefore, the left scale range is 0 to 60, while the right scale range is 500 to 900.
To create a Dual-Y Scale graph in ITXML, use a command similar to the following:
<cit:xy-plot-graph Name=”graph” type=”xy-combo-(dual-y-scale)”/>
Note: For more information about ITXML, see ITXML in the Corda 7 Developer Reference.
To associate a series with the left or right y-scale, override its SeriesDefinition property by setting the Scale attribute to either Left or Right.
For example, to associate the third data series in a graph with the right scale, use a command similar to the following:
<cit:filled-line-series series-uses=”right-scale”/>
For more information about overriding the ITXML properties, see ITXML Transformations in the Corda 7 Developer Reference.
The X-Y Bubble subtype is discussed in the Bubble Graphs.
X-Y graphs support the following formatting options.
Data points are usually connected in the order that they are provided. This means that if data items are provided in non-sequential order, the a line that connects the data series might cross over itself. To avoid this, connect the data items in order of their x-coordinates. To do this, enable Plot Settings > Sort in Object Properties.
Warning: Do not use static hover text, drilldown effects, or notes when sorting data items. Dynamic features of this type work, but be aware that the target data points are enumerated by sort order as opposed to list order.