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!

Jet charts apex 5.1: how to make visible a serie chart when press a button after chart be rendered

David PujolJan 21 2017 — edited Feb 12 2017

We're implementing a jet chart with 3 series. In javascript callback function of chart region (apex), we execute this code for hiding one serie:

function( options ) {

options.dataFilter = function( data ) {

    data.series\[ 2 \].visibility = "hidden";

    data.series\[ 2 \].displayInLegend = "off";

    return data;

};

   return options;

}

This code runs ok:

pastedImage_0.png

We have 3 series (Metric1, Metric2 and hidden SystemMetricShadow). Now, we want to make visible this last serie when press a button.

We're trying with this code but it doesn't run ok:

-- Dynamic Action with execute javascript

$("#SystemMetrics_jet").ojChart(

                             {

                                 series: \[{ id:2, "visibility":"visible"}\]

                             }

                         );

I've read ojChart options and I know that series is an array of objects.

Can somebody help me about how-to write the correct code for achieving this?

A lot of thanks

This post has been answered by Hugh Zhang-Oracle on Jan 23 2017
Jump to Answer
Comments
Post Details
Added on Jan 21 2017
1 comment
1,397 views