I am trying to do a Stacked Bar Graph with 3 fields. I want the Sum of each field to appear for EACH of it's section...but it adds them up bottem to top. Is there a way around this?
GRAPH FILE FGRAPH
"Hourly Call Volume"
SUM ACDCALLS ABNCALLS VOICE
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D ON
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
Try clicking on the Properties Tab, then on the Settings Subtab. Place a check mark in the first box, "Show Data Values".
Is that what you're looking for?
I didn't post the rest of my Sytlesheet.
I'm getting Data Values...the problem is it adds them up. The first Value on the Stack is correct, the Second and Third are cumulative totals. I want each value on the stack to represent the Field.
Interesting. I received similar results. I did notice that the values are represented on MouseOver, but they are still aggregated at top.
I was able to get the values to represent correctly by slightly modifying the graph layout (basically not using stacked).
I made one value of the Y axis a bar, another value a line. Not exactly what you are trying to do. If I find something, I will post. Sorry I couldn't help.
you need another API call which is - setStackedDataValueSum(false);
JC that was it! Thanks so much.
Denver Thanks for trying.
Is there any good resource to reference all these API calls?
If you look in the devstudio bin subdirectory there is an old version called JavaGraphAPI.pdf about 900 pages.
Or better still download the new 5.3 version from IBI's doc services wf53graph.pdf (DN4500605.0904) over 1300 pages
Thanks. I was hoping for the Readers Digest Version.
JG...do you Know how to move the data on the Bar?
It is printing on the top and some are over lapping.
where x is a value from 0 to 5 (0 is the default).
I would think either 3 , 4 or 5 would suit you.
That worked Great. You are the Champ!
second that. JG stands for Java Guru !
I too have created a stacked bar graph and using JG guru's setStackedDataValuesSum(false) worked like a charm, but now I need to increase the font size. Does anybody know any code or how or where I can go to get the "Show Data Value" to increase their font size?
WebFOCUS 7.1.3 on Win 2000
Imagine what you can do when you do some research. Found my own answer.
setTextFormatPreset(getDataText (2), 5);
setTextFormatPreset(getDataText (1), 6);
setTextFormatPreset(getDataText (0), 2);
setFontSizeAbsolute(getDataText (1), true);
setFontSizeAbsolute(getDataText (2), true);
setFontSizeAbsolute(getDataText (0), true);
setFontSize(getDataText (2), 14);
setFontSize(getDataText (1), 14);
setFontSize(getDataText (0), 14);
WebFOCUS 7.1.3 on Win 2000
|Powered by Social Strata|