As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi iam new to WebFOCUS i have some problems in my Gauge Chart. my requirement is i need to take the values of the chart from database. and my approach is i have calculate the values and hold in some table.but iam not able to call these values as a Yaxis values.how can i call these valuesThis message has been edited. Last edited by: kalyanswarna,
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006
As a quick throw away answer (glad you decided to follow the previous links!) try
ON TABLE SAVE FORMAT ALPHA
This is because you are summing numeric values and when these are held (in a SAVE or HOLD) they will be held in internal formats (packed decimal or binary). Saving them in ALPHA format will ensure that they are hel as alphanumeric.
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Hi, Tony thanks for your reply i tried with your suggestion(ON TABLE....) but i didn't get the solution it takes the same default values is it possible or not plz give me a reply
Thanks
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006
Put -SET &ECHO=ALL; at the top of your fex. This will expand all the code into a comment section within your HTML output. When your report (or graph) is produced, right click on the background (not the graph) to bring up the context menu and select "view source". Look through this text file to establish where you need to place your -INCLUDE SAVE.
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
As far as I know setScaleArray is not a valid API call and will never work.
Nor will the method you are using to create the array even if it were a valid call. An array is always comma delimited with double quotes for text elements.
It is not possible to set the scale tick interval via the method that you want to use.
You can set the minimum and maximum values and the interval for the grid/ticks. However they are always relative to zero.
So if you set min to 15 and max to 55 with a step of 10 your grid/ticks are 15,20,30,40,50,55. You cannot set ticks individually.
With a gauge graph you can set bands and these respect the steps, however at the moment it appears that the BandnLabel functionality does not work so you have no ability to apply custom numbers.
The best option is a band based graph having no ticks and a legend relating colours to ranges generated using annotations.
In this case the –INCLUDE method is not viable so a HOLD FORMAT ALPHA and a -READ should be used to generate the variables.
It is possible to make the coordinates of the annotations variables based on the range and values but the calculation required to make them dynamic is not worth the effort.
Look at the following based on the car file.
SET HOLDLIST = PRINTONLY -SET &L1=15; -SET &L2=25; -SET &L3=35; -SET &L4=45; -SET &L5=55; GRAPH FILE CAR SUM MPG ACROSS MODEL WHERE COUNTRY EQ 'FRANCE' ON GRAPH SET LOOKGRAPH GAUGE1 ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET GRAPHSTYLE * setGraphType(110); setGaugeMajorAutoStep(false); setGaugeMinorAutoStep(false); setScaleFromZero(false); setDisplay(getGaugeLabel(),false); setDisplay(getGaugeMajorTick(),false); setDisplay(getGaugeMinorTick(),false);