Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add a reference area on xAxis in a Line Chart (Time Axis) within Oracle APEX

Ismoil IsroilovJun 3 2018 — edited Jun 5 2018

Hi,

I would like to edit the Line Chart (Time Axis) in the Packaged App "Sample Charts" by adding a reference area on xAxis. On the legend one can see that the reference area was added, but on the chart itself it doesn't appear. Could you please help me by solving this issue. Thank you in advance.

Here is JS Code:

function( options ) {

// Define Reference Object line on Y Axis of chart

var constantLineX = \[ {text:"Reference Object", type: "area", low: "28/01/2017", high: "14/02/2017", color: "#A0CEEC", displayInLegend: "on", location: "back", shortDesc: "Sample Reference Area"}\];

// Set the referenceObjects option as part of the chart initialization

options.xAxis.referenceObjects = constantLineX;

return options;

}

}

apex.JPG

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2018
Added on Jun 3 2018
6 comments
1,099 views