In the Property Inspector, select the Appearance attributes category and do the

Using ADF Graph Components 24-45 products P1, P2, P3, P4, when you move the cursor over product P2 in January, all the P2 bars are highlighted, and the P1, P3, and P4 bars are dimmed. Because the graph refers to all the data markers in a given set of data such as all the P2 bars as a series, then the ability to highlight the data markers in a series is part of the graph’s series rollover behavior feature. Series rollover behavior is available only in the following graph types: bar, line, area, pie, scatter, polar, radar, and bubble graphs. To dim all the data markers in a series: 1. In the Structure window, right-click the graph node and choose Go to Properties. 2. In the Appearance attributes category, in the SeriesRolloverBehavior field, use the dropdown list to select RB_DIM.

24.8.4.2 How to React to Changes in the Zoom and Scroll Levels

You can provide custom code that will be executed when the zoom and scroll levels change on a graph. In a managed bean you store methods that takes as input a ZoomEvent or ScrollEvent. With these events, users can determine which axis is zoomed, as well as the current extent of the zoomed axes. To provide custom behavior in response to zooming and scrolling in a graph: 1. In a managed bean, write a custom method that performs the desired behavior when a zoom or scroll event is triggered. Example 24–11 shows sample code for creating this method.

2. In the Structure window, right-click the graph node and choose Go to Properties.

3. Select the Behavior attributes category and expand the Advanced node and do

one or both of the following: ■ In the zoomlListener field, specify a reference to the method that you stored in the managed bean. For example, if the method setZoom is stored in the managed bean SampleGraph, then the setting becomes: {sampleGraph.zoom. ■ In the scrollListener field, specify a reference to the method that you stored in the managed bean. For example, if the method setScroll is stored in the managed bean SampleGraph, then the setting becomes: {sampleGraph.scroll. Example 24–11 Sample Code to Set Zoom and Scroll Managed bean sampleGraph.java public void setZoomZoomEvent event { System.out.printlnStart Group: + event.getAxisStartGroupZoomEvent.O1AXIS; System.out.printlnGroup Count: + event.getAxisGroupCountZoomEvent.O1AXIS; System.out.printlnStart Group Label: + event.getAxisStartGroupLabelZoomEvent.O1AXIS; public void setScrollScrollEvent event { System.out.printlnEnd Group Label: + event.getAxisEndGroupLabelScrollEvent.O1AXIS; System.out.printlnAxis Min: + event.getAxisMinScrollEvent.O1AXIS; System.out.printlnAxis Max: +