This content has been marked as final. Show 7 replies
I've gone over the property editor of the Y1Axis and the graph itself but couldn't find an attribute called 'AxisAutoScaledFromZero'. I then tried editing the XML with something like:
<dvt:y1Axis AxisAutoScaledFromZero ="false"/> but JDeveloper gives me an error saying 'Attribute AxisAutoScaledFromZero not defined on element dvt:y1Axis.
Is this attribute not a Y1Axis attribute? Where do I set it?
The thing is that I can set the attribute axisAutoscaledFromZero anywhere, not through the UI Designer and not directly in the XML, ADF simply does not recognize the attribute (I tried all sorts of cases).
I found the following link on the web-http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12063/oracle/dss/graph/BaseGraphComponent.html#a_axisAutoScaledFromZero it says that this member is protected and it also says: "For internal use only. Application developers should not use this".
So, perhaps this was a public parameter back in Jdeveloper 10 but seems that in current 11.1.x releases I can't really use this flag directly.
The only two flags I see for the y1Axis are AxisMinAutoScaled and AxisMaxAutoScaled which I tried setting to true and false but in both cases the Y Axis still starts at zero, regardless of the minimum value.
By the way, the forum thread that was attached to the previous response points to a question that hasn't been answered.
Any idea if there's some other parameter which is for public use instead of axisAutoscaledFromZero?
I haven't found an out of the box solution to this problem, all of my graphs always used zero as the starting point of the Y Axis.
The way I was able to address the issue was only programmatically, I created a backing bean through which I have iterated over the graph values, identified the minimum and maximum and then set the Axis min and max value with something like:
(after I have calculated min and max, of course).