Introduction
When building
data-driven dashboards in Oracle APEX, it is common to need more than one data
series on a single bar chart. In our scenario we want to compare ordered
quantity against receipt quantity for each supplier, side by side, in the same
chart.
This article guides
how to add a second series to an existing bar chart in Oracle APEX, configure
its data source, and customize the color of each series for clarity.
Prerequisites
- A page in
Oracle Apex Application containing a Bar Chart region
- At least one
series already configured on the chart (in our example Ordered Qty. mapped
to the Order Qty. column.
How to Add a
Second Series to a Bar Chart
Step 1: Open Page Designer
Navigate to your application in
Oracle APEX and open the relevant page in Page Designer.
In
the left-hand rendering tree, find your existing Chart region and click the
arrow next to it to expand it. You will see its child components, including any
existing series beneath it.
Step 3: Add a New Series
Right-click on the Chart region
in the rendering tree. From the context menu, select:
1.
Right-click the Chart region
2.
Select Create > Series
A new series entry will appear
as a child of the Chart region in the rendering tree.
Step 4: Configure the New Series
Click on the newly created
series to select it. In the right-hand Properties panel, configure the
following settings:
•
Name: Receipt Qty
Under the Column Mapping section:
•
Label: SUPPLIER
•
Value: RECEIPT_QTY
Once saved, run the page. Both series will now appear together on the bar chart, displayed side by side for each supplier.
Customizing Series Colors
To make the chart easier to
read, assign a distinct color to each series:
2.
Click on Series 1 (e.g., Ordered Qty) to select it.
3.
In the Properties panel on the right, scroll to the Appearance
section.
4.
Locate the Color property and either pick a color from the palette
or enter a hex code directly (for example, #4472C4 for blue or #ED7D31 for
orange).
5.
Repeat the same steps for Series 2 (e.g., Receipt Qty), choosing a
contrasting color.
6.
Save your changes and run the page.
The completed chart will now
display both series with distinct, customized colors, making it straightforward
for end users to distinguish between ordered and received quantities at a
glance.

Conclusion
Adding multiple series to a bar chart in
Oracle APEX is simple. By right-clicking the Chart region and selecting Create
Series, you can layer as many data series as your query supports. Customizing
the color of each series makes the chart easier to read and more visually
informative for end users.
This pattern can be applied to any chart type
in APEX that supports multiple series, such as line charts and combination
charts.








Comments
Post a Comment