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 customize ojet Chart highlight labels hide Several labels

User_RPM7NMar 10 2021

We would like to highlight a specific label of our X-Axis
Actually we highlight our selected Object of our charts with the following call
function( options ) {
options.dataFilter = function( data ) {
for (var i=0; i <data.series[0].items.length; i++) {
if ( data.series[0].items[i].name ==$("#P1_OBJECT_NAME").val()) {
data.series[0].items[i].pattern = "smallChecker";
}
}
return data;
};
return options;
}
we have lots of values and so the loading process take too much time ( only caused by this function!!!!, not caused by the SQL!!!!)
2 Reasons why we would like to change our highlighting:

  1. Performance like mentioned above
    2)We have stacked bars and already lots of colors
    ==========================================================
    Our question:
    -------------------------
  2. Is there a way to highlight a label after Refresh
    OR
    in Advanced JavaScript Initialization Code without performance problems
  3. In some cases we we like to hide negative labels of our Y-Axis. Is the a way after refresh or in the
    Advanced JavaScript Initialization Code
    MANY THANKS in advance and greetings from Munich
This post has been answered by Oleh Tyshchenko on Mar 11 2021
Jump to Answer

Comments

Oleh Tyshchenko
Answer
  1. Is there a way to highlight a label after Refresh
    I would like to see an example because it is not clear to me how it is supposed to look.
  2. In some cases we we like to hide negative labels of our Y-Axis
    Maybe a custom y axis label converter is what you are looking for. Here is an example - Chart - Invert the Y (or Y2) axis (20.1)
Marked as Answer by User_RPM7N · Mar 25 2021
User_RPM7N

⭐️ ⭐️ Sorry, for our related answer...
Yes, Perfect, very nice ... It works very fine

1 - 2

Post Details

Added on Mar 10 2021
2 comments
389 views