How to Change the Appearance of Lines in a Graph Series

24-42 Web User Interface Developers Guide for Oracle Application Development Framework lineStyle=LS_SOLID dvt:referenceObject index=6 type=RO_LINE association=SERIES series=0 location=RO_FRONT color=ffff66 lineValue=16730 lineWidth=3 lineStyle=LS_SOLID dvt:referenceObject index=7 type=RO_LINE association=SERIES series=1 location=RO_BACK color=99cc66 lineValue=500 lineWidth=3 lineStyle=LS_SOLID dvt:referenceObject index=8 type=RO_LINE association=SERIES series=1 location=RO_BACK color=99cc66 lineValue=1711 lineWidth=3 lineStyle=LS_SOLID dvt:referenceObjectSet dvt:barGraph

24.8.1.3 How to Create Reference Lines or Areas Dynamically

If you want to create reference objects dynamically at runtime, then you use only the dvt:referenceObjectSet tag. You set the referenceObjectMap attribute on this tag with a method reference to the code that creates a map of the child component reference objects. The method that creates this map must be stored in a managed bean. To create reference lines or areas dynamically: 1. Write a method that creates a map of the child component reference objects that you want to create during runtime. Example 24–9 shows sample code for creating this method.

2. In the Structure window, right-click the graph node, then choose Insert inside

dvt:typeGraph ADF Data Visualization Reference Object Set. 3. In the Property Inspector, specify in the referenceObjectMap attribute a method reference to the code that creates the map of child component reference objects. For example, for the managed bean sampleGraph and the method getReferenceObjectMapList, the attribute should be set to the following value: referenceObjectMap={sampleGraph.referenceObjectMapList} Example 24–9 Code for a Map of Child Reference Objects Managed bean SampleGraph.java : public Map getReferenceObjectMapList { HashMap map = new HashMap; ReferenceObject referenceObject = new ReferenceObject; referenceObject.setIndex1; referenceObject.setColorColor.red; referenceObject.setLineValue30; referenceObject.setLineWidth3; map.putnew Integer1, referenceObject; return map; }

24.8.2 Using Gradient Special Effects in Graphs

A gradient is a special effect in which an object changes color gradually. Each color in a gradient is represented by a stop. The first stop is stop 0, the second is stop 1, and so on. You can specify any number of stops in the special effects for a subcomponent of a graph that supports special effects. You can define gradient special effects for the following subcomponents of a graph: