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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Setting Legend Scroll on the graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Setting Legend Scroll on the graph
 Login/Join
 
Member
posted
Can somebody help me with this.

I am trying to send a legend scroll on the graph but I am getting an exception error and the graph doesnt dislpay at all when I try to add the legend scroll.

This is the code below as to how I add the legend scroll.

setLegendAutomatic(true);
setLegendScroll(2);
setLegendSeriesCount(6);
setLegendSeriesStart(0);
setLegendOrient(2);
setLegendRect(new Rectangle(-15340,-2478,5948,17550));

Any help will be greatly appreciated.

This message has been edited. Last edited by: Kerry,
 
Posts: 24 | Registered: June 16, 2006Report This Post
Member
posted Hide Post
Anybody?
 
Posts: 24 | Registered: June 16, 2006Report This Post
Expert
posted Hide Post
What's the error?

What version are you running?

I'm not sure what scrolling legends would do, but I added your lines of code to an existing graph and got not errors. By the way, the code did not make any change to the graph.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Francis,

I am not getting any error. The graph shows fine, however, I dont get the legend scroll to display on the graph.

The problem I am having is, I am having a lot of legends and I am not able to display all of them at once. So I wanted to use a legend scroll to display sum and scroll to display others.

Thanks for your help.
 
Posts: 24 | Registered: June 16, 2006Report This Post
Member
posted Hide Post
Oh, and I am running 7.1.3.
 
Posts: 24 | Registered: June 16, 2006Report This Post
Expert
posted Hide Post
Are you sure that 7.1.3 supports scrolling legends?

I don't have WebFOCUS 7 so I can't verify that.

Perhaps the Perspective Java thingy supports scrolling legends, but WebFOCUS does not.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Yes it does, here is the link to the features:
http://documentation.informationbuilders.com/masterinde...wf713graph/index.htm

But I couldnt get it to show up on my graph.
 
Posts: 24 | Registered: June 16, 2006Report This Post
Expert
posted Hide Post
The dreaded phrase "Open a case with tech support" comes to mind!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks for trying to help!
I will see what I can do.
 
Posts: 24 | Registered: June 16, 2006Report This Post
Silver Member
posted Hide Post
It's not clear what you are trying to do as far as the graph output but I was under the impression that scrolling legends would only work using the Applet approach.
 
Posts: 41 | Registered: January 06, 2006Report This Post
Member
posted Hide Post
EJL,

Run the code below:

****************************************

GRAPH FILE CAR
PRINT
RCOST AS ''
ACROSS MODEL AS 'MODEL'
BY COUNTRY
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET VAXIS 330
ON GRAPH SET HAXIS 560
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD AS OUTFILE FORMAT HTML
ON GRAPH SET GRAPHSTYLE *
setSeriesType(0,0);
setSeriesType(1,0);
setMarkerDisplay(true);
setUseSeriesShapes(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,2);
setAxisAssignment(1,1);
setSeriesType(1,2);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setLegendDisplay(true);
setTextJustHoriz(getTitle(),1);
setFontSizeAbsolute(getTitle(),true);
setFontSize(getTitle(),11);
setTextJustHoriz(getSubtitle(),1);
setFontSizeAbsolute(getSubtitle(),true);
setFontSize(getSubtitle(),10);
setFontSizeAbsolute(getFootnote(),true);
setFontSize(getFootnote(),9);
setFontStyle(getFootnote(),0);
setLegendTextAutofit(true);
-*
-*setLegendMarkerSizeMax(500);
-*setLegendMarkersPerRow(7);
-*
setFontSizeAbsolute(getY1Title(),true);
setFontName(getY1Label(),"Dialog");
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setTextJustHoriz(getO1Label(),1);
setY1TitleString("CAR");
setX1TitleString("MODEL");
setO1LabelAutofit(true);
setTextRotation(getO1Label(),0);
ENDSTYLE
END
-RUN
-EXIT


*********************************************

Now my program has a lot of legends, something like 24 and I cant show all the legends down at the bottom of the graph(ENGLAND, FRANCE..). So I wanted to add a legend scroll to show, let say, 6 legends and the user could scroll to view the rest.

Does this make sense now?
 
Posts: 24 | Registered: June 16, 2006Report This Post
Silver Member
posted Hide Post
But isn't the result of this going to be a static image displayed in a browser? What I think you need to do to get a dynamic graph is to use client side processing.

I've only played around with the WF graph stuff and found it not very clear on many things so maybe my understanding of what's going on isn't complete.
 
Posts: 41 | Registered: January 06, 2006Report This Post
<JG>
posted
This is a bug in the new graph engine and you need to open a case with support.

switch back to the old engine and it works

SET GRAPHENGINE=OLD
 
Report This Post
Member
posted Hide Post
Thanks JG!
That did take care of the scroll to appear on the graph. However, I am not able to scroll ( as EJL pointed out ).

Any idea on how I could get the scroller to work, or any documentation that would help me figure that out?

Thanks again all for your ideas.
 
Posts: 24 | Registered: June 16, 2006Report This Post
<JG>
posted
All I added to your code was

SET GRAPHENGINE=OLD

and

setLegendDisplay(true);
setLegendAutomatic(true);
setLegendScroll(2);
setLegendSeriesCount(2);
setLegendSeriesStart(0);
setLegendOrient(0);
setLegendRect(new Rectangle(-15340,-2478,5948,17550));
setFillColor(getLegendScrollerThumb(),new Color(0,255,0));

It's import that you use FORMAT HTML otherwise its a static image.

Also its a drag activated scroller not a point and click one.
 
Report This Post
Member
posted Hide Post
Awesome! It works perfect.
Thank you very much (yea, I didnt have the FORMAT HTML).
 
Posts: 24 | Registered: June 16, 2006Report This Post
Gold member
posted Hide Post
Texascyclone,
Can you please send us the working code with HTML format?

Thanks,
Suji.


WebFOCUS 7.7.02(Production)
WebFOCUS 7.7.02(Test region)
Oracle backend (10g)and Windows Frontend.
HTML,PDF,EXL2K,FLEX,AHTML
 
Posts: 68 | Registered: June 07, 2007Report This Post
<JG>
posted
Picking up a 3 1/2 year old post and asking someone to send you code is very very lazy.

If you bother to read the post then all you need to do is take the original code make the amendments as posted
you have the answer.

The forum is to help where help is genuinely needed.
Not to do the work for someone who can't be bothered
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Setting Legend Scroll on the graph

Copyright © 1996-2020 Information Builders