This blog is concerned with the ADF/BPM technology provided by Oracle. I Hope this blog helps fellow Oracle ADF/BPM Developers

Thursday, March 5, 2015

ADF Graphs Configurations

In this post I will show how you can make some configurations on ADF graphs.

1- Change Y-axis minimum
valeSometimes you need to start Y-axis by specific value (by default it start by 0) but what if you need Y-axis start by 20 or 50 or .... you can do the following:Settings:In the graph component insert dvt:y1Axis and from property inspector set AxisMinValue by the the desire value or by expression and set AxisMinAutoScaled to false

Note: You can use MarkerTooltipType and SeriesTooltipLabelType properties to display/hide some information from graph tooltip

Result:

11- Display a horizontal line inside bar graph

Sometime we need to display a horizontal line in bar graph the line value will be a specific value to know which bar value will be above the line and which will be below the line value.To do that insert inside dvt:barGraph --> referenceObjectSet --> referenceObjectasSettings:

Result:

12- Change bubble graph background and vert/horiz lines colorThe original graph will be like this

You can fill the graph by set dvt:graphPlotArea fillColor="#bac5d6" and fillTransparent="false" asthe result will be like

if you want to change the color of the vertical and horizontal lines you can change it by adding dvt:y1MajorTick and dvt:x1MajorTick inside as

the result will be like:

If you want to hide all vertical and horizontal lines set dvt:y1MajorTick and dvt:x1MajorTick as

The result will be

13- Formatting Metric and Tick Labels for a Gaugethe metric and tick labels are by default displaying their values as e.g "2.0K". Also, the metric label is displayed below the gauge which takes unnecessary vertical space.if you want to display the values like 2000 instead of 2.0K :Settings:set gauge tickLabel and metricLabel scaling="none"

Result:

14- Display bar values of dvt:barGraph in the top of each barInside the bar add dvt:markerText like:Result: