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] Graph: How to get the grid in front of the series?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph: How to get the grid in front of the series?
 Login/Join
 
Expert
posted


I'm hoping to have the grid appear in front of the three series in this graph (grey area, white area, blue line).

This message has been edited. Last edited by: Francis Mariani,


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
Expert
posted Hide Post
No takers?

A different approach: Is it possible to make the white area series transparent, but also 'cut into' the grey area series - I'd like to see the grid behind the white area series.

Or is there an area series where I can specify a maximum and minimum?


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
Expert
posted Hide Post
Hi Francis,

Dare I ask if you're using the GUI or do you just need the code? Wink

T



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, 2004Report This Post
Expert
posted Hide Post
Going by your normal "modus operandi" I am guessing that you need the code.

So in your setFillColor(); for your series just add the additional fourth element for transparency - say 200 - so that your code looks like this -
setFillColor(getSeries(1),new Color(255,243,172,200));

For those that use the GUI, within the advanced graph editor, click on the "Chart Editor" tab and then select the series in which you are interested. Then look for the "Series color Transparency" attribute and change it from the default of 255.

T



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, 2004Report This Post
Expert
posted Hide Post
Tony, thanks! That did it!



-* Series 0 - Top Band
setSeriesType(getSeries(0),3);                              // set series type for series 0 to 3 - 'riser area' - area
setFillColor(getSeries(0),new Color(200,200,200,170));      // set series 0 line color, including trasparency


-* Series 1 - Bottom Band
setSeriesType(getSeries(1),3);                              // set series type for series 1 to 3 - 'riser area' - area
setFillColor(getSeries(1),new Color(255,255,255,130));      // set series 1 line color, including trasparency


-* Series 2 - Investment Portfolio %
setSeriesType(getSeries(2),2);                              // set series type for series 2 to 2 - 'riser marker' - line
setFillColor(getSeries(2),new Color(0,127,192));            // set series 2 line color
setMarkerShape(getSeries(0),2);                             // set marker shape
setLineWidth(getSeries(2),4);                               // define the thickness of a line object


I might play with the colours a bit, but the graph now clearly shows the grid.

I may be the last cowboy programmer, but I do follow the book. I looked up opacity and transparency in the WebFOCUS 'Graphics' Version 7 Release 7.03 manual and for transparency there was only one hit: setGaugeAlphaChannel() - Sets the transparency of a gauge object. I looked for a newer manual and couldn't find a newer Version 7 manual. Where is this fourth colour attribute documented?

Cheers and thanks,


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
Expert
posted Hide Post
oh that's beautiful




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
quote:
Where is this fourth colour attribute documented?

How did I now that you would come back with that? Wink

The answer to your question? Well, I just happen to have known where the transparency was set in the GUI (yes, I know, me-GUI-really?) and it was a simple case of locating where in the code this was set.

Also, in WF8 graphics I have often used the transparency value as the fourth parameter and therefore it was really confirming that 7.7.03+ also used that extension of the attributes.

Personally, I miss Jennifer from Doc services jumping in and giving us the detail Smiler


T



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, 2004Report This Post
Expert
posted Hide Post
Thanks Tony.

susannah, isn't it?!


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
Expert
posted Hide Post
i just tried the 4th parm in 7.6.8 and it works!

oh i'm going to be busy for a few days now.... Smiler




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Such a feeling you get when helping others! Smiler

T
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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] Graph: How to get the grid in front of the series?

Copyright © 1996-2020 Information Builders