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]Wrap HTML5 Chart Label Text with more than one Bucket=Row
Go
New
Search
Notify
Tools
Reply
  
[CLOSED]Wrap HTML5 Chart Label Text with more than one Bucket=Row
 Login/Join
 
Platinum Member
posted
Hey All,

I need to export a JSChart to PDF via "SET GRAPHENGINE=JSCHART" and I'm very close. However my label in the last BY field is very long and I'd like to wrap it. I'm unsure how to do this via JSON/JSCHART when using BUCKET=row. Hoping someone can provide advice. Here's my CAR example below. I'd like to wrap text for the "BY CAR" field.

 

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET GRAPHENGINE=JSCHART
SET EMBEDHEADING=OFF
SET GRAPHDEFAULT=OFF
-DEFAULTH &WF_STYLE_UNITS='INCHES';
-DEFAULTH &WF_STYLE_HEIGHT='7.25';
-DEFAULTH &WF_STYLE_WIDTH='10.5';
-DEFAULTH &WF_TITLE='WebFOCUS Report';

GRAPH FILE CAR
SUM
	DEALER_COST
BY COUNTRY
BY HIGHEST SEATS
BY MODEL
BY CAR
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
    TOPMARGIN=0.050000,
	ORIENTATION=LANDSCAPE,
$
TYPE=DATA, COLUMN=N1, BUCKET=page, $
TYPE=DATA, COLUMN=N2, BUCKET=row, $
TYPE=DATA, COLUMN=N3, BUCKET=row, $
TYPE=DATA, COLUMN=N4, BUCKET=row, $
TYPE=DATA, COLUMN=N5, BUCKET=y-axis, $
*GRAPH_SCRIPT
*GRAPH_JS_FINAL
"fill": {
		"color": "white"
		},
"pieProperties": {
    "holeSize": "0%"
},
"blaProperties": {
    "orientation": "horizontal"
},
"agnosticSettings": {
    "chartTypeFullName": "Bar_Clustered_Horizontal"
}
*END
ENDSTYLE
END
-RUN


 

This message has been edited. Last edited by: Brandon Andrathy,


WebFOCUS 8204
 
Posts: 146 | Registered: July 10, 2018Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Wrap HTML5 Chart Label Text with more than one Bucket=Row

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