Oracle JET and Oracle APEX are best friends💕
Oracle JET and Oracle APEX are best friends 💕
While Oracle JET is commonly associated with charts in Oracle APEX, it’s capable of much more. Oracle JET offers various tools and components for building modern web applications. The Oracle JET library required by APEX is included as part of the Oracle APEX, so there’s no need for additional installation. However, only the specific Oracle JET components used by APEX are built in, and advanced use cases require separately incorporating other parts of the full Oracle JET library. So if developers require additional JET components not bundled with APEX they should manually incorporate components into their APEX applications.
What is Oracle JET?
Oracle JET (JavaScript Extension Toolkit) is a free, open-source toolkit for building modern, responsive, and accessible web applications. It leverages advanced JavaScript, HTML5, and CSS3 and incorporates popular libraries like jQuery, RequireJS, and Knockout.js technologies to provide a rich set of UI components. Oracle JET is a powerful tool for creating highly customizable and dynamic user interfaces.
Oracle JET is integrated into Oracle APEX, providing APEX developers access to its powerful visualization and UI components. Oracle JET libraries can be sourced directly from a CDN such as jsDelivr for standalone usage or custom implementations.
Relevant links for Oracle Jet:
https://cdn.jsdelivr.net/npm/@oracle/oraclejet@14.1.0/dist/js/libs/oj/min/
Where Oracle JET is Used in Oracle APEX
In APEX natively The Chart region is powered by Oracle JET and also The Text Field with Autocomplete item leverages Oracle JET to provide dynamic suggestions as users type.
1. Chart Regions
SELECT DEPTNO AS label, SUM(sal) AS value FROM emp GROUP BY DEPTNO;
In the Chart Attributes, you can adjust Labels, Colors, Tooltip formatting, and Legends actually this way you are using the interactive JET chart in Oracle APEX.
2) Create a region with static content type
require(['ojs/ojchart', 'jquery'], function (ojChart, $) {
var chartData = {
series: [
{ name: 'Dept A', items: [10] },
{ name: 'Dept B', items: [20] },
{ name: 'Dept C', items: [30] }
],
categories: ['Salery Amount']
};
$('#myChart').ojChart({
type: 'bar',
series: chartData.series,
groups: chartData.categories,
orientation: 'vertical'
...............................................
require(['ojs/ojchart', 'jquery'], function (ojChart, $) {var chartData = {
series: [
{ name: 'Category A', items: [42] },
{ name: 'Category B', items: [34] },
{ name: 'Category C', items: [24] }
]
};
$('#myChart').ojChart({
type: 'pie',series: chartData.series
});
});
...............................................
var chartType = $v('P2_CHART_TYPE');var chartData = {
series: [
{ name: 'Category A', items: [42] },
{ name: 'Category B', items: [34] },
{ name: 'Category C', items: [24] } ]
};
$('#myChart2').ojChart({
type: chartType,
series: chartData.series
});
- require([...], function (...) {...}):
- ojs/ojchart:
- jquery:
- Callback function (function (ojChart, $) {...}):

Comments
Post a Comment