Focal Point Banner


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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
scaling in Graphs
 Login/Join
 
Silver Member
posted
Does any one know how the automatic scaling in graph decides the values to be used(or the alogorithm used to decide the max scale value and min scale value)?
Here is the description of the issue!

I am using manual scaling in my graphs(Bar /Line). But I have problem with numbers that appear on my Y-Axis due to manual setting of values.
1. It is prefrerred that 80-90% of the chart area is utilised in depicting the graph.
2. It is also required to use easily associable numbers for the major unit
eg: Y-Axis is devided as
0 - 10 -20 -30 -40 -50 ... not like 0, 11.1, 22.2, 33.3 etc
0 - 0.5 -1.0 -1.5 -2.0 -2.5 ... not like 0, 0.45, 0.90, 1.35 etc
3. Though the setting Y1MustIncludeZero prints the zero line, the number '0' is not being displayed on the Y-Axis. Only the major unit numbers are being displayed. Zero should be displayed. To my mind the alternative to solve this issue seems to be making sure Zero falls as one of the major units on the Y-Axis.

4. When I have both negative and positive values the problem seems to be compounded, because I see only methods to set the Max scale and minimum scale but not the major unit.
For example I have -50(min), 950(max). The range is 1000. If i devide to 10 units I get 100 as Major unit. But based on the values my graph should start from -100 and extend till 1000(note: but units changed to 11 based on the scenario). And also I expect to see zero in there. But even if I set min and max to these values the behaviour seems to be different from expected.

When Auto scale is true, The graph engine is able to interpret the scales much better. Any help/insight in this regard is very much appreciated!
 
Posts: 38 | Location: India | Registered: May 18, 2005Report This Post
Platinum Member
posted Hide Post
If you're already setting your Y1 min and max values manually, why don't you set the major grid steps manually too?

This command sets the major unit for the Y1 axis to 20.0 :

setGridStep(getY1MajorGrid(),20.0);

if you've already set the min value to -100, and the max value to 1100, if you set the gridstep to 100, you'll get 0 on the graph, and a decent interval.

Regards

Tewy


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders