Skip to Main Content

DevOps, CI/CD and Automation

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!

ojChart( ''getValuesAt '',X, Y) not back correct X Axis Number Values

qzhoJun 25 2017 — edited Jun 27 2017

ojChart( ''getValuesAt '',X, Y) not back correct X Axis Number Values:

for Date X Axis is correct,

but for Number X Axis, Xvalue is not "x" axis values.

for example:

Coordinate-To-Value Conversion

$("#lineChart").mousemove(function(event) {

    // Retrieve mouse coordinates relative to the component

    var componentX = event.pageX - $("

...

  // Convert to chart axis values

    var values = $("#lineChart").ojChart("getValuesAt", componentX, componentY);

...

// Display the values

    var valuesStr = "";

    if (values.x != null)

      valuesStr += 'x: ' + new Date(values.x).toDateString() + '<br/>';

...

if X Axis is Number type,

var componentX and valuesStr += 'x: ' get not correct result.

Comments
Post Details
Added on Jun 25 2017
1 comment
220 views