Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]DataText on Bar chart
Go
New
Search
Notify
Tools
Reply
  
[CLOSED]DataText on Bar chart
 Login/Join
 
Gold member
posted
Hi,

Issue: When I run below code, some part of data labels appear on the bars i.e.overlaps with bar. when i put few charts together on the html, numbers are not in readable state.
Can we introduce some space in between datatext and bar ? Or any solution?

-DEFAULTH &WF_STYLE_UNITS='INCHES';
-DEFAULTH &WF_STYLE_HEIGHT='4.21875';
-DEFAULTH &WF_STYLE_WIDTH='8.020833';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.BODY.DEALER_COST
CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setPieFeelerTextDisplay(1);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(0),new Color(0,0,255));
setColorMode(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),0);
setFillColor(getFrame(),new Color(255,255,255));
setBorderColor(getY1AxisLine(),new Color(0,0,0));
setFillColor(getY1AxisLine(),new Color(0,0,0));
setLineWidth(getY1AxisLine(),1);
setBorderColor(getO1AxisLine(),new Color(0,0,0));
setFillColor(getO1AxisLine(),new Color(0,0,0));
setLineWidth(get01AxisLine(),1);
setZeroValueDataTextDisplay(false);
setTextFormatPreset(getDataText(),0);
setDisplay(getDataText(),true);
setDataTextDisplay(true);
setDataTextPosition(0);

setTextRotation(getDataText(),1);

*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Reply With QuoteReport This Post
Member
posted Hide Post
if you are talking about the data texts overlapping on the series of bars, then please utilize any one of codes mentioned below and see which one fits to your requirement:-

setDataTextPosition(1);
or
setDataTextPosition(2);
or
setDataTextPosition(3);
or
setDataTextPosition(4);
or
setDataTextPosition(5);


WEBFOCUS 8.1
WINDOWS 7 PROFESSIONAL
ALL FORMAT OUTPUTS
 
Posts: 3 | Location: NEW DELHI | Registered: May 25, 2016Reply With QuoteReport This Post
Gold member
posted Hide Post
Thank you!
I forgot to mention I am using JSCHART format.
I tried those and didn't work.

Also, I need to mention I have few charts and report and need to put them in html. So, Even if it looks fine individually, it does not look good/readable in html/portal.

I was wondering whether these properties like setDataTextRadiusDefault(value); etc. will work with JSCHART or not?

Please let me know if I am not clear.


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Reply With QuoteReport This Post
Master
posted Hide Post
Try with dataLabels properties of JSChart. More at HTML5 Chart Documentation.
Documentation

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]DataText on Bar chart

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.