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!

how to get the value of the x-axis in a chart

user1950921Sep 1 2016 — edited Sep 7 2016

Hi,

I created an application based on the drilling example (JET Site Cookbook ).

In the application I build you can drill down four layers (year, quarter, month, week)

In the drilling example there is a button where you can drill up. 

This is the code of the "drill up" button:

self.drillUpButtonClick = function(data, event) {

             self.BarSeriesValue(barYearSeries);

            self.BarGroupsValue(barYearGroups);

            self.drillingValue("groupsOnly");

            $("#drillUpButton").ojButton("option", "disabled", true);

            return true;

        }

I found there is a method in the oj.chart Class "getXAxis() . In this method there is the property title.

When I know the title I can set the correct Series and Groups for the chart.

But how can I use the method in code of the button?

Kind regards,

Herman

Comments
Post Details
Added on Sep 1 2016
4 comments
749 views