[CLOSED] API Styling for Secondary X-Axis in Graph
Does anyone know the API code for changing the rotation of the secondary x-axis on a graph? The below code works to change my first x-axis.
setTextRotation(getO1Label(),1);
I can't get the label of the nested x-axis to stay horizontal.This message has been edited. Last edited by: Kerry,
WebFOCUS 8.09 Windows, All Outputs
January 07, 2013, 03:54 PM
Waz
Maybe I am missing something but what about getO2Label()
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
January 08, 2013, 01:09 PM
peechy23
I tried that but apparently that only works for 3D graphs. What I need is to style the secondary axis of a nested x-axis graph. Similar to the graph pictured in the link below.
Did you download the 1300 page manual for this ? It is available on the information builders website. Wf77graph.pdf. It should give you more answers then you need.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
January 08, 2013, 03:17 PM
peechy23
I did look at the instructions they provide and I guess I can't make sense of what they are saying or I am looking in the wrong spot.
This was all I was able to find when it came to nested labels.
Using Nested/Multi-Dimensional Labels Nested/multi-dimensional labels are supported on the O1 axis with these properties and methods: setO1LabelCallback(); This method assigns a callback function to the nested labels interface. getO1LabelCallback(); This method determines if a callback function has been assigned with setO1LabelCallback(). NestedLabels (true/false); This property enables/disables nested labels. Use the following procedures to implement the nested labels interface: WebFOCUS Graphics 113 2. Using WebFOCUS Graphics 1. Create your own version of the nested labels callback. It must implement all of the abstract methods defined in TDGNestedLabel.Java. They are: abstract int getNumLevels(); abstract int getNumLabelsOnLevel(int nLevel); abstract Vector getAllLabels(int nLevel); abstract String getLabel(int nGroup, int nLevel); abstract int getLabelGrouping(int nGroup, int nLevel); 2. Register the callback with the setO1LabelCallback() method. For example: m_chart.setO1LabelCallback (TDGNestedLabel cb); 3. Enable the NestedLabel property. For example: m_chart.setNestedLabels (true);
WebFOCUS 8.09 Windows, All Outputs
January 09, 2013, 11:31 AM
VLozovsky
The object id to control nested axis labels is getNestedO1Labels0(). However, if you rotate 01Labels, then nested labels should rotate as well. Is that not the case for you?
January 09, 2013, 11:45 AM
peechy23
The nested label does rotate, what I am trying to accomplish is have the first label vertical and the second horizontal. I will give the getNestedO1Labels0() a try. Thank you.
WebFOCUS 8.09 Windows, All Outputs
January 11, 2013, 11:35 AM
peechy23
So I tried adding
setTextRotation(getNestedO1Labels0(),0);
and it still rotates both nested lables.
WebFOCUS 8.09 Windows, All Outputs
January 16, 2013, 10:49 AM
Kerry
Hi peechy23,
If you still experience difficulties in this issue, please contact Customer Support Services and open a case so that we can have someone dedicated to better help you. You may call 1-800-736-6130, or access online at InfoResponse.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.