Oracle APEX Chart | Stack Unstack | Horizontal Vertical Orientation - Part 25

Tech Mining
20 Nov 202211:31

Summary

TLDRTech mining's video tutorial introduces a graphical report using Oracle JET bar charts to visualize order amounts by category. The interactive chart features multiple slices for different order types, with tooltips for detailed amounts. It includes drill-down functionality to customer profiles, customizable chart orientation, and options for stacked or unstacked data presentation. The tutorial guides through the creation process, from SQL queries to dynamic actions for orientation and data stacking, ensuring an engaging and informative experience.

Takeaways

  • πŸ“Š The video demonstrates creating a graphical report using Oracle JET bar chart to display order amounts by category.
  • πŸ” Each bar in the chart has multiple slices representing different orders, with tooltips showing amounts when hovered over.
  • πŸ”„ The chart includes drill-down functionality, allowing users to click a bar and navigate to a detailed customer profile page.
  • πŸ”§ Users can change the chart's orientation between horizontal and vertical.
  • πŸ“ˆ The chart can be presented in both stacked and unstacked formats, offering flexibility in data visualization.
  • πŸ“ The source code for the project is provided in the video description for reference.
  • πŸ—‚οΈ The SQL query used fetches summarized order figures categorized by men, women, and accessories.
  • πŸ“Š The 'stack' property in the chart determines whether data items are displayed as stacked bars.
  • 🎨 Automatic animation settings are applied for the chart, enhancing the visual experience when data changes.
  • πŸ“‘ The 'location' and 'source' attributes specify where to extract the data for the chart series from the SQL query.
  • πŸ”‘ The 'label' and 'value' attributes define the x-axis labels and the ordered values on the chart, respectively.
  • πŸ”— Clicking a chart bar drills down to a specific page for customer details, with the link active only for the 'kids' category.
  • πŸ› οΈ Additional buttons are added to change the chart's orientation and to render the series data as stacked or unstacked.
  • 🌐 The chart's orientation change applies to bar, line, area, combo, and funnel charts, enhancing versatility in presentation.

Q & A

  • What is the main feature of the graphical report demonstrated in the Tech mining video?

    -The main feature is an Oracle Jet bar chart that displays the amount of orders by category, with each bar having multiple slices representing different orders. It also includes drill-down functionality and the ability to change the chart's orientation.

  • How does the tooltip in the bar chart provide additional information?

    -When you move your mouse over the slices in the bar chart, a tooltip displays the corresponding amount for each order, providing more detail about the data.

  • What happens when you click on a bar in the bar chart?

    -Clicking a bar in the bar chart enables drill-down functionality, taking you to page 7 where you can see the profile of the selected customer.

  • Can the orientation of the bar chart be changed, and if so, how?

    -Yes, the chart's orientation can be changed between horizontal and vertical by clicking the respective buttons provided in the interface.

  • What are the two additional options provided for presenting the data in the bar chart?

    -The two additional options for presenting the data are as a stacked or unstacked bar chart.

  • What is the purpose of the 'stack' property in the bar chart?

    -The 'stack' property specifies whether the data items are stacked on top of each other in the bar chart, which is useful for comparing the relative sizes of different categories.

  • What does the 'automatic animation' setting in the chart do?

    -The 'automatic animation' setting specifies whether animation is shown when data is changed on the chart, enhancing the user experience with visual transitions.

  • How does the 'label' attribute in the chart define the x-axis?

    -The 'label' attribute selects a column name that is used for defining the labels of the x-axis on the chart, categorizing the data accordingly.

  • What is the significance of the 'value' property in the chart?

    -The 'value' property is used for defining the ordered value on the chart, representing the quantity or amount of orders for each category.

  • How can the series data be rendered as stacked or unstacked?

    -There are buttons provided that, when clicked, trigger dynamic actions to render the series data as stacked or unstacked, offering different visual representations of the data.

  • What is the role of the 'static ID' in the customer orders region?

    -The 'static ID', set to 'dual chart', allows the region to be recognized and manipulated by JavaScript code when changing the chart's orientation or other properties.

Outlines

00:00

πŸ“Š Interactive Bar Chart Tutorial

This paragraph introduces a tutorial on creating a graphical report using Oracle Jet bar charts. The chart displays the amount of orders by category, with each bar featuring multiple slices for different order types. Users can interact with the chart by hovering over slices to view tooltips with specific amounts. The chart includes drill-down functionality, allowing users to click on a bar and navigate to a detailed customer profile page. The video also covers how to change the chart's orientation and presentation style between stacked and unstacked. The source code for the project is provided in the video description, and the script includes a SQL query to fetch summarized order figures categorized by gender and accessories.

05:11

πŸ”„ Chart Customization and Dynamic Actions

The second paragraph focuses on customizing the bar chart with additional features such as currency formatting and dynamic actions for changing the chart's orientation. It details how to add buttons to switch between horizontal and vertical orientations and to toggle between stacked and unstacked series presentations. The paragraph explains the use of dynamic actions in Oracle Apex to trigger JavaScript code that alters the chart's orientation using the OJ chart class. It also discusses setting the static ID property for the region, which allows the chart to be recognized and manipulated by the defined actions.

10:23

πŸ› οΈ Testing the Interactive Chart Application

The final paragraph guides the user through testing the interactive chart application. It instructs how to save the work, run the application, and navigate to the specific page to view the chart. The user is encouraged to interact with the chart by moving the cursor over the bars to see tooltips and clicking buttons to change the chart's orientation and series presentation. The paragraph concludes by highlighting the animated effects observed when toggling between stacked and unstacked series.

Mindmap

Keywords

πŸ’‘Graphical Report

A graphical report is a visual representation of data, often used in business intelligence and data analysis to communicate information effectively. In the video, the graphical report is based on Oracle JET bar chart, which displays the amount of orders by category. This helps viewers understand the volume of orders placed by customers in a visually engaging way.

πŸ’‘Oracle JET

Oracle JET (JavaScript, HTML5, and SVG) is a framework for building modern web applications. In the context of the video, Oracle JET is used to create interactive and dynamic charts, such as the bar chart that displays order amounts. It provides a robust set of tools for developers to create rich user experiences.

πŸ’‘Bar Chart

A bar chart is a popular method of displaying data using rectangular bars, where the length of each bar is proportional to the value it represents. In the video, the bar chart is used to represent the amount of different orders by category, making it easy to compare the quantities at a glance.

πŸ’‘Drill Down Functionality

Drill down functionality refers to the ability to navigate from a higher-level overview to more detailed data. In the video, when a user clicks a bar in the chart, they are taken to a detailed profile of the selected customer, providing a deeper insight into the data.

πŸ’‘Tooltip

A tooltip is a small, interactive, pop-up box that displays information when the user hovers over an element on a screen. In the video, tooltips are used to display the corresponding amount of orders when the user moves their mouse over the slices of the bar chart.

πŸ’‘Chart Orientation

Chart orientation refers to the direction in which the data is presented, either horizontally or vertically. The video describes how the chart's orientation can be changed to suit different viewing preferences or data analysis needs, enhancing the user's interaction with the data.

πŸ’‘Stacked and Unstacked

In data visualization, stacked and unstacked refer to how multiple data series are displayed in a chart. A stacked chart shows the data series layered on top of each other, while an unstacked chart displays them side by side. The video explains how users can toggle between these two views for a different perspective on the data.

πŸ’‘SQL Query

An SQL (Structured Query Language) query is used to retrieve and manipulate data in a database. In the video, an SQL query is mentioned as being used to fetch summarized order figures by customers for each category, which is essential for populating the bar chart with data.

πŸ’‘Dynamic Action

Dynamic action is a feature in Oracle Application Express (APEX) that allows developers to create interactive web applications without writing JavaScript code. In the video, dynamic actions are used to change the chart's orientation and to render the series data as stacked or unstacked when buttons are clicked.

πŸ’‘Static ID

A static ID is a unique identifier assigned to a component in a web application, used for referencing and manipulating the component in code. In the video, the static ID 'dual chart' is set for the customer orders region, allowing the chart to be recognized and controlled through JavaScript.

πŸ’‘Currency Property

The currency property in data visualization is used to format numerical values as currency, taking into account the correct symbol and decimal places. The video mentions setting the currency property when the format type is set to currency, ensuring that the order amounts are displayed correctly on the chart.

Highlights

Introduction to a graphical report based on Oracle JET bar chart to display orders by category.

Each bar in the chart represents different orders with multiple slices.

Tooltip displays corresponding order amounts when hovering over slices.

Drill-down functionality to view customer profiles on clicking a bar.

Option to change chart orientation between horizontal and vertical.

Capability to present data in stacked or unstacked format.

Source code provided in the video description for reference.

SQL query used to fetch summarized order figures by category.

Stack property to specify whether data items are stacked.

Automatic animation settings for the chart with Oracle JET's default.

Behavior of the chart when clicking a legend item to hide or show series.

Data extraction from SQL query for the customer orders region.

Label attribute for defining x-axis labels on the chart.

Value property for defining the ordered value on the chart.

Drill-down link activation specific to the 'kids' category.

Creation of new series for different customer categories.

Title attribute display at the bottom of the chart.

Currency property specification for format type 'currency'.

Adding buttons to change chart orientation dynamically.

Dynamic actions associated with buttons for chart orientation change.

JavaScript code execution for controlling chart orientation.

Static ID property for recognizing the region in Oracle Apex.

Buttons for rendering series data as stacked or unstacked.

Dynamic actions for buttons to change data presentation.

Testing the graphical report with interactive features.

Interactive tooltips, orientation changes, and data presentation options.

Transcripts

play00:00

a very warm welcome to Tech mining

play00:02

this video demonstrates graphical report

play00:05

which is based on Oracle jet bar chart

play00:07

to display amount of orders by category

play00:09

placed by customers each bar in the

play00:12

chart has multiple slices representing

play00:14

amounts of different orders when you

play00:16

move your mouse over these slices a

play00:18

tooltip displays the corresponding

play00:20

amount this chart will be created with

play00:22

drill down functionality that is when

play00:24

you click a bar you will be taken to

play00:26

page 7 where you will see profile of the

play00:28

selected customer

play00:30

you will also make provision to change

play00:32

the chart's orientation horizontally and

play00:35

vertically

play00:35

[Music]

play00:45

and will also provide options to present

play00:48

at either a stacked or unstacked

play00:51

[Music]

play00:55

so let's start our work

play00:58

we'll go through same approach as we did

play01:00

in previous video to create reports list

play01:02

page

play01:03

[Music]

play01:15

thank you

play01:19

[Music]

play01:37

foreign

play01:43

source code is provided in description

play01:45

of this video by opening part 8 folder

play01:48

you will get the file used this query

play01:51

fetches summarized order figures by

play01:53

customers for each category men women

play01:56

and accessories

play01:57

[Music]

play02:05

stack property specifies whether the

play02:08

data items are stacked

play02:11

foreign

play02:12

[Music]

play02:17

automatic animation setting for the

play02:19

chart which applies the Oracle Jet's

play02:22

default animation settings it specifies

play02:24

whether animation is shown when data is

play02:27

changed on the chart

play02:28

this hide and show behavior is performed

play02:31

when you click a legend item risk ale

play02:33

value rescales the chart as you select

play02:35

or deselect a legend this is useful for

play02:37

series with largely varying values

play02:40

[Music]

play02:42

in this new node location region source

play02:45

specifies that the data of this series

play02:47

is to be extracted from the SQL query

play02:49

defined for the customer orders region

play02:51

in the label attribute you select a

play02:53

column name that is used for defining

play02:55

the labels of the x-axis on the chart

play02:57

while this accessories column selected

play02:59

for the value property is used for

play03:01

defining the ordered value on this chart

play03:03

when you click a chart bar you are

play03:05

drilled down to page 7 to browse

play03:07

customer details

play03:10

foreign

play03:15

foreign

play03:17

[Music]

play03:27

this above link will be active for the

play03:29

kids category only

play03:31

that's why create a new series for men

play03:33

as well

play03:34

[Music]

play03:52

thank you

play03:54

[Music]

play04:24

thank you

play04:26

create one more series for women also

play04:29

[Music]

play04:50

foreign

play04:55

[Music]

play05:11

this title attribute will appear at the

play05:14

bottom of the chart at runtime

play05:16

thank you

play05:20

foreign

play05:23

[Music]

play05:31

if the format type is set to currency it

play05:33

is required that the currency property

play05:35

also be specified which will be used

play05:38

when formatting the value on the chart

play05:40

in this step we are adding two buttons

play05:43

to the customer orders region when these

play05:45

buttons are clicked they will change the

play05:47

chart's orientation to horizontal and

play05:49

vertical

play05:51

foreign

play05:53

[Music]

play06:03

tributes says that this button is

play06:05

associated with a dynamic action which

play06:07

fires when the button is clicked

play06:11

[Music]

play06:34

now add two Dynamic actions for these

play06:37

two buttons

play06:38

this Dynamic action is named horizontal

play06:40

orientation you are free to give it any

play06:42

other name you feel suitable

play06:44

these next three properties specify that

play06:47

this Dynamic action should trigger when

play06:49

only the horizontal button is clicked

play06:52

[Music]

play06:56

when the horizontal button is clicked

play06:58

this JavaScript code is fired in this

play07:01

code dual chart is a static ID which we

play07:04

will set in next step for the customer

play07:05

orders region charts orientation is

play07:08

controlled through the OJ chart class

play07:10

which has two options horizontal and

play07:13

vertical where vertical is the default

play07:15

option

play07:19

create one more Dynamic action to add

play07:21

vertical orientation

play07:23

in these steps we are informing the

play07:25

Oracle Apex engine to display the chart

play07:27

horizontally and vertically when their

play07:30

specific button is clicked

play07:32

note that the chart orientation only

play07:34

applies to Bar line area combo and

play07:38

funnel charts

play07:40

[Music]

play07:56

foreign

play08:05

switch back to the rendering tab in the

play08:08

advanced section for the static ID

play08:10

property enter dual chart as the value

play08:13

now this region can be recognized by

play08:15

this static ID

play08:16

add two more buttons under the previous

play08:18

two buttons these buttons will be used

play08:21

to render the series data as stacked or

play08:23

unstacked

play08:25

[Music]

play08:32

foreign

play08:38

[Music]

play08:50

thank you

play08:53

[Music]

play08:59

more Dynamic actions for these two

play09:01

buttons also

play09:03

[Music]

play09:08

foreign

play09:12

[Music]

play09:39

foreign

play09:43

[Music]

play10:23

thank you

play10:27

[Music]

play10:30

click the save button to save your work

play10:33

now everything is set

play10:35

Let's test our work

play10:38

click this run application button

play10:42

in the navigation menu click this

play10:45

reports option

play10:47

click the first customer orders card to

play10:49

access page 17.

play10:51

you will see a chart as shown earlier in

play10:54

this video

play10:55

move your cursor over the chart bars and

play10:57

different portions within a particular

play10:59

bar you will see a tooltip showing order

play11:02

amount of the corresponding customer

play11:05

click the vertical and horizontal

play11:06

buttons to change the chart's

play11:08

orientation

play11:10

[Music]

play11:17

similarly click the stack and unstack

play11:20

buttons to see respective animated

play11:21

effects

play11:23

foreign

play11:26

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Oracle JetBar ChartCustomer OrdersData VisualizationDrill DownDynamic ActionsChart OrientationStacked ChartsUnstacked ChartsTooltip InfoAnalytics Tools