Focal Point
[CLOSED] Graph X Axis Label Options

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1117097706

August 01, 2011, 08:07 PM
Cubesmith
[CLOSED] Graph X Axis Label Options
Hi there

How do I display two levels of labels on the X axis of a bar graph?

What I'm trying to do is show the change in SOH of various sizes over the various colours of a product.

My graph code is basically (the full code is too long):

GRAPH FILE TEMP_FILE
SUM
COMPUTE NEGVALUE/D8C = IF CUR_SOH LT PRE_SOH THEN (PRE_SOH-CUR_SOH) ELSE 0; NOPRINT
COMPUTE STRVALUE/D8C = (PRE_SOH-NEGVALUE); OVER
COMPUTE POSVALUE/D8C = IF CUR_SOH GT PRE_SOH THEN (CUR_SOH-PRE_SOH) ELSE 0; OVER
NEGVALUE/D8C
ACROSS PROD_COLOUR
ACROSS PROD_SIZE
COLUMNS L AND M AND S
END


The above code gives me something like the following labels:
|
| [] [] []
| [][] [][] [][][]
| [][][][][][][][][]
\-------------------
Red Green Blue

I can switch it to show the following:
|
| [] [] []
| [][] [][] [][][]
| [][][][][][][][][]
\-------------------
L L L M M M S S S

But what I'm really after is:

|
| [] [] []
| [][] [][] [][][]
| [][][] [][][] [][][]
\---------------------
L M S L M S L M S
Red Green Blue

If anyone had any ideas on how to do this I'd really apreciate it.
I've looked through the help documentation and could find anything helpful on double axis labels.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.61
Win7 / Server2003 / Server2008
August 01, 2011, 08:15 PM
Waz
Have you thought about a 3D graph ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 01, 2011, 09:36 PM
Cubesmith
Hi Waz, thanks for the suggestion.

I gave some thought to a 3D graph however the information I'm trying to display really needs to be shown as a stacked bar graph.

A 3D graph would take up a fair amount of screen space and wouldn't match the look and feel of our other graphs.

Surely if we can build a double across graph we can show double labels.


WebFOCUS 7.61
Win7 / Server2003 / Server2008
August 01, 2011, 09:56 PM
Waz
Where are my manners...



A couple of suggestions.

With your posted code, and your text graphs, use the code tags, the or
[CODE] ... 
[/code]

Will the across values be variable ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

August 01, 2011, 10:07 PM
Cubesmith
Sorry about that. This is my first post here though I've been lurking around for a while. I should probably pointout that I'm fairly new to webFOCUS too.

Thanks for your patience.

The PROD_SIZE will be set however the PROD_COLOUR could be any colour/combination.


WebFOCUS 7.61
Win7 / Server2003 / Server2008