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     Changing the font size and style for %s displayed over bars in a Bar Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Changing the font size and style for %s displayed over bars in a Bar Graph
 Login/Join
 
Gold member
posted
I have a bar graph that has percentages displayed over each bar. I was experiencing a problem where part of the chart title overlayed one of the percentages that appears over a bar. In order to move the chart title up, I included the following set commands. This works fine, however, in order to reposition the chart title with the new Rectangle command, I had to delete the setPlace(true) command. When I did this, the font size and style for the percentages that appear over the bars are now a bigger font size and appear in bold. I need to unbold the percentages and make them a smaller font size. I am using Webfocus 7.1.7 text editor. Thanks.

setTitleDisplay(true);
setSubtitleDisplay(true);
setRect(getTitle(),new Rectangle(-4888,11000,89806,3939));

This message has been edited. Last edited by: Michele,
 
Posts: 70 | Registered: April 04, 2007Report This Post
Virtuoso
posted Hide Post
Michele

quote:
setDataValue()
This method sets a data value for a specific data object (riser) in a graph.
Syntax:
void setDataValue(IdentObj id, double newValue );
where:
id
Is an object ID returned by a getObjectID() method (for example, getSeriesGroup()).
newValue
Is a data value to be assigned to the object.
Return: void;
Example:
setDataRange(1,1,2,2);
setDataTextDisplay(true);
setDataTextPosition(0);
setDataTextRadius(0,0,20);
setDataTextRadius(0,1,20);
setDataTextRadius(1,0,20);
setDataTextRadius(1,1,20);
setDataValue(getSeriesGroup(0,0),100);
setDataValue(getSeriesGroup(0,1),50);
setDataValue(getSeriesGroup(1,0),25);
setDataValue(getSeriesGroup(1,1),5);
setDepthRadius(0);


see the pdf documentation wf713graph.pdf that can be downloaded from the IBI web.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
Thanks. I'm not quite sure how to incorporate the set commands that you list into my existing code. I was, however, able to unbold the percentages and change the font size. Now my dilemma has to do with the Y axis label "Percent Change". This label is not displayed in bold and I would like it to display in bold. Pasted below is the code that I currently have that was generated through the edit feature in the Graph Editor. Unfortunately, I was not able to get the Y axis label to display in bold.

setFontName(getO1Label(0),"Arial");
setAutofit(getO1Label(), false);
setDataTextFormat(2);
setY1TitleString("Percent Change");
setTitleDisplay(true);
setSubtitleDisplay(true);
setRect(getTitle(),new Rectangle(-4888,12000,29806,3939));
setFontSizeVC(getTitle(),888);
setFontSizeVC(getX1Label(),888);
setFontSizeVC(getY1Title(),888);
setFontSizeAbsolute(getX1Label(),true);
setFontSize(getX1Label(),8);
setX1LabelDisplay(true);
setGridStep(getY1MajorGrid(),0.04);
setFontSizeAbsolute(getDataText(),true);
setFontSize(getDataText(),10);
setScaleMax(getY1Axis(),0.2);
setScaleMin(getY1Axis(),-0.08);
setRect(getSubtitle(),new Rectangle(-14340,12453,29850,1539));
setAutofit(getO1Label(),false);
setO1AxisSide(0);
setFontSizeAbsolute(getLegendText(),true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),16);
setRect(getLegendArea(),new Rectangle(10014,-9694,5622,20800));
setRect(getTitle(),new Rectangle(-13807,11428,29806,3939));
setBorderColor(getX1MinorGrid(),new Color(133,133,133));
setBorderColor(getY1MinorGrid(),new Color(133,133,133));
setRect(getSubtitle(),new Rectangle(-15940,12295,29850,1539));
setFillType(getColorByHeight(),2);
setGradientDirection(getColorByHeight(),1);
setGradientNumPins(getColorByHeight(),2);
setGradientPinPosition(getColorByHeight(),0.0,0);
setGradientPinLeftColor(getColorByHeight(),new Color(255,255,255),0);
setGradientPinRightColor(getColorByHeight(),new Color(0,0,255),0);
setGradientPinPosition(getColorByHeight(),1.0,1);
setGradientPinLeftColor(getColorByHeight(),new Color(255,0,0),1);
setGradientPinRightColor(getColorByHeight(),new Color(255,255,255),1);
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setAxisAssignment(1,0);
setAxisAssignment(2,0);
setAxisAssignment(3,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),2);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setTextFormatPreset(getX1Label(),2);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setTitleString("12 Month Rolling Trend");
setTextJustHoriz(getTitle(),1);
setTitleAutofit(true);
setFontSizeAbsolute(getLegendText(),true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontStyle(getY1Label(),1);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setTextJustHoriz(getO1Label(),1);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),11);
setTextRotation(getO1Label(),0);
setPlace(false);

setDataTextFormat(2);
setY1TitleString("Percent Change");
setTextJustHoriz(getY1Title(),1);
setY1TitleAutofit(true);
setFontStyle(getY1Title(),12);
ENDSTYLE
 
Posts: 70 | Registered: April 04, 2007Report 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     Changing the font size and style for %s displayed over bars in a Bar Graph

Copyright © 1996-2020 Information Builders