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] Bar Graph Data Value Font Size

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Bar Graph Data Value Font Size
 Login/Join
 
Member
posted
Can anybody tell me how to make the size of the bar graph data value larger while keeping the size of the graph the same? The graph fits well into my dashboard so I don't want to change the VAXIS or HAXIS but the data values are too small to read. Given the height of the bar there is plenty of room to display a larger value. Thanks!

Here is the code:

GRAPH FILE TEMP5
PRINT SAZHIST_APPL_TOTAL/D5 AS 'Applications' SAZHIST_APPROVED_TOTAL/D5
AS 'Approved' REG_TOTAL/D5 AS 'Registered'
BY SAZHIST_TERM_CODE AS 'Term Code'
HEADING
"Application Term <+0>&TERMC<+0> Date &TERMP<+0> Date ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D ON
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET VAXIS 230
ON GRAPH SET HAXIS 500
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setAxisAssignment(4,0);
setSeriesType(4,1);
setAxisAssignment(5,0);
setSeriesType(5,1);
setLegendPosition(2);
setLegendMarkerPosition(4);
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,0);
setSeriesType(1,1);
setAxisAssignment(2,0);
setSeriesType(2,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
setFontSize(getDataText(1), 14);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=12,
BACKCOLOR='NONE',
$
TYPE=DATA,
FONT='ARIAL',
SIZE=12,

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


Release 773
 
Posts: 14 | Location: Rochester | Registered: September 22, 2005Report This Post
Expert
posted Hide Post
Try changing
setFontSize(getDataText(1), 14); to setFontSizeVC(getDataText(), nnnn);

Where nnnn is a value in the virtual coordinate system of the graph. try a number of about 2000, and see.


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
Member
posted Hide Post
Waz, I didn't have any luck with this but I really appreciate the suggestion. I'll keep playing around with it.


Release 773
 
Posts: 14 | Location: Rochester | Registered: September 22, 2005Report This Post
Expert
posted Hide Post
DWatson, it seems that the command setPlace(true) is the culprit.

setPlace is a autoplacement settign that arranges the graph for you, but its it stopping the setFontSize from working.

Try commenting this out and see what happens.
/* setplace(true); */


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
Member
posted Hide Post
Waz - you are a genius - that worked great! Thanks so much for taking the time to respond to this posting!


Release 773
 
Posts: 14 | Location: Rochester | Registered: September 22, 2005Report This Post
<JG>
posted
The correct way to do it is to use the setPlace API calls

in this case

setPlaceMinFontSize(getDataText(), n);

where n is the font size that you require
 
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] Bar Graph Data Value Font Size

Copyright © 1996-2020 Information Builders