Focal Point
[SOLVED] Controlling the Max Value in bar or gauge graphs

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

November 12, 2008, 04:39 PM
dcj
[SOLVED] Controlling the Max Value in bar or gauge graphs
I'm creating a series of bar graphs and gauges for a dashboard display. The question I have is can I control what value the graphs max value or the gauges last value.

For example I have 100 techs and 26 of them would be displayed using one bar in a graph. I want the graph to display 100 as the top most value, but the graphs top value is only a few values larger than 26.

In the gauge, The same thing, it sets the gauge to like 30. I want the max value to be 100 and the needle to be on 26.

How can I control the max value?

Thanks

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


wf: 7.6.4
App. and reporting server: UNIX/AIX 5.3
November 12, 2008, 08:56 PM
Waz
For a Gauge, youy can set each band to a range
      setDisplay(getGaugeBand1(),true);
      setDisplay(getGaugeBand2(),true);
      setGaugeBandMin(getGaugeBand1(), 0);
      setGaugeBandMax(getGaugeBand1(), 4);
      setGaugeBandMin(getGaugeBand2(), 5);
      setGaugeBandMax(getGaugeBand2(), 9);


For a Bar Graph , try

 setY1ScaleMin(value);
setY1ScaleMax(value);


Do yourself a favour and check out the manuals for graphs, e.g. for 7.1.x look here


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!

November 14, 2008, 10:13 AM
dcj
Thanks Waz; works perfect.


wf: 7.6.4
App. and reporting server: UNIX/AIX 5.3