290 total views, 14 views today

How to find the ADF Bar Chart selected value?

This section we explain how to get the selected value of ADF Bar chart. The ADF Bar Chart supports selectionListener property, using this we can get the selected bar value in the backing bean. The Bar Chart has another property called dataSelection which determines how many bars user can select in the bar chart. The available values of the dataSelection are none, Single, and Multiple.

 

Final Output:  

ADF_DVT_BAR How to find the ADF Bar Chart selected value?

 

Download the project: ADF_BAR_TABLE

 

Example: ADF Bar Chart selected value using selectionListener

1. Create an ADF Fusion Web Application

 

2. Create EO & VO object of Employee table in HR schema

 

3. Create a bar chart by drag and drop the employee VO into the JSF page and select Chart, Bar Chart. Drop Salary to Y-Axis and Job-Id to X-Axis

 

122516_0532_1 How to find the ADF Bar Chart selected value?

 

4. Add the property dataSelect=”single” & bind a backing method to SelectionListsner in < dvt:barChart > as shown below

 

 


 

5. Now add a Dial Gauge Chart by drag and drop from the component window. The Gauze will point to the value that is selected in the Bar Chart.

 

6. The final JSF page will look like below

 

7. Below is the selection listener method in the backing bean. This method retrieves the selected bar value and set its value to gauge chart. 

 

8. The Result will look like


ADF_DVT_BAR How to find the ADF Bar Chart selected value?
 

govindan How to find the ADF Bar Chart selected value?
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan How to find the ADF Bar Chart selected value?
Connect me
By | 2016-12-25T01:02:31+00:00 December 25th, 2016|Categories: ADF|Tags: , , , , , |0 Comments
Like us on Facebook.
Connect!