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] Bar Graph - Data and Label beside bar
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Bar Graph - Data and Label beside bar
 Login/Join
 
Gold member
posted
Hello

I have this bar graph. I have to show data and a label (for each measure) on the right side of the bar, centered to each measure part.I am able to do it as a report but I am not sure how to align them with the graph as measures change dynamically. Any suggestions are appreciated. All these are part of a compound document.
 
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF
GRAPH FILE CAR
SUM
	DEALER_COST
	RETAIL_COST
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS 100
ON GRAPH SET VAXIS 400
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setCurveFitEquationDisplay(false);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setRiserWidth(30);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=DATA, COLUMN=N1, BUCKET=y-axis, $
TYPE=DATA, COLUMN=N2, BUCKET=y-axis, $
*GRAPH_SCRIPT
setDisplay(getO1Title(),false);
setDisplay(getO1Label(),false);
setDisplay(getLegendArea(),false);
setDisplay(getY1Label(),false);
setDisplay(getY1AxisLine(),false);
setDisplay(getY1MajorTick(),false);
setDisplay(getO1AxisLine(),false);
setDisplay(getO1MajorTick(),false);
setDisplay(getX1AxisLine(),false);
setDisplay(getX1MajorTick(),false);
*END
*GRAPH_JS_FINAL
"blaProperties": {
    "seriesLayout": "stacked"
},
"agnosticSettings": {
    "chartTypeFullName": "Bar_Stacked"
}
*END
ENDSTYLE
END   

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8206
All formats
 
Posts: 77 | Registered: September 13, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
You can use dataLabels object that will print the information with the bar ("bottom", "center", "insideBottom", "insideTop", "left", "outside", "right", "top", or "auto" with restriction according to graph type) but beside the bar, haven't see it yet...

See page 424 from Creating HTML5 Charts With WebFOCUS Language


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2296 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Bar Graph - Data and Label beside bar

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