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!

Starting yAxis at something else than 0

Dom_from_QcMay 24 2017 — edited May 24 2017

I'm trying to make a line a dual Y line chart with 1 y Axis at % (range between 99% and 100%). Used the http://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=lineChart&demo=dualY as a starting point. I can't seem to find how to specify a min and a max on my Y Axis so it looks like this:

pastedImage_1.png

this is the code

<div id="lineChart" data-bind="ojComponent: {

        component: 'ojChart',

        type: 'line',

        series: lineSeriesValue,

        groups: lineGroupsValue,

        animationOnDisplay: 'auto',

        animationOnDataChange: 'auto',

        orientation: orientationValue,

        splitDualY: dualY,

        splitterPosition: splitterValue,

        legend: {position: 'top'},

        yAxis: {title: 'Y1 Axis Title'},

        y2Axis: {title: ''}

    }"

     style="max-width:500px;width:100%;height:350px;">

I've tried to use the yAxis.dataMin and yAxis.dataMax: yAxis: {title: 'Y1 Axis Title', dataMin: '99', dataMax: '100'}

but it doesn't seem to work..

Any suggestions?

Tkx

Comments
Post Details
Added on May 24 2017
3 comments
388 views