This example demonstrates how to dynamically change the y-axis minimum and maximum values, based upon values selected by the end user.
JavaScript Code - Use the chart-level advanced attribute to initialize the chart using JavaScript code that uses the values of page items to set the y-axis minimum and maximum values.
function (options) {
options.yAxis = {
min: $v('P1_Y_MIN'),
max: $v('P1_Y_MAX')
};
return options;
}
... where P1_Y_MAX and P1_Y_MIN would be the two page items used for setting the values.
Dynamic Action - Use a dynamic action, triggerd by the click of a button, to update the chart with y-axis minimum and maximum values selected by the end user.
For more information on the Oracle JET ojChart yAxis object, refer to the Oracle JET ojChart API ojChart: yAxis object.