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     how to turn off the color key in the graph legend? [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
how to turn off the color key in the graph legend? [SOLVED]
 Login/Join
 
Master
posted
I have coded the graph captioned below as an example:

quote:

GRAPH FILE CAR
SUM SALES
BY MODEL
ACROSS COUNTRY

ON TABLE PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT ON
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405

ON GRAPH SET LOOKGRAPH VBAR

ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBIColorToWhite.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setPlace(true);
setCurveFitEquationDisplay(false);
setDisplay(getDataText(), true);
setFillColor(getDataText(),new Color(0,0,225);
-*
-** Position totals relative to &XBAR
-*
setDataTextPostion(0);
setDataTextRadiusDefault(30);
-*
-** Use setSeriesLabel
setSeriesLabel(0,"");
-*setSeriesLabel(1,"Apples");
-*setSeriesLabel(2,"Oranges");
-*setSeriesLabel(3,"Cherries");
-*setSeriesLabel(4,"Bananas");

-*
-** Control fonts of X-axes
-*
setFontName(get01Label(0),"TimesNewRoman");
setAutoFit(get01Label(0),false);
setFontSizeAbsolute(get01Label(0),true);
setFontSize(get01Label(0),12);
-** Control fonts of Y-axes
setFontName(getY1Label(0),"TimesNewRoman");
setAutoFit(getY1Label(0),false);
setFontSizeAbsolute(getY1Label(0),true);
setFontSize(getY1Label(0),12);
ENDSTYLE
END
-RUN
-EXIT



I am aware of using the setSeriesLabel command to change the legendText in Graph, but when I do so, it continues to display the color of the data line in the legend.

Does anyone know how to disable the color key in the legend? Frowner

Thanks!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Master
posted Hide Post
I created a small graph using graph assistant this morning.
I discovered that the command to enable display of the graph
legend is setLegendDisplay(true);.

Unfortunately my graphs - coded by hand with help from
focalpoint and research - did not contain this command, so
the default setting must be setLegendDisplay(true);.

I disabled the display of my legend by setting it to false.

setLegendDisplay(false); will disable legend display in graph.


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
Interesting, I didn't think you were trying to turn the legend off in you original post.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     how to turn off the color key in the graph legend? [SOLVED]

Copyright © 1996-2020 Information Builders